Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that SB can be written after SC #564

Open
nitro2k01 opened this issue Sep 6, 2024 · 0 comments
Open

Document that SB can be written after SC #564

nitro2k01 opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels

Comments

@nitro2k01
Copy link
Member

My original comment from Discord

This is actually safe. There's a clock generator for the serial hardware unit that's fed by the 16384 Hz tap of DIV and divides it by 2 to create 8192 Hz. This divider is reset every time SC is written. And the first pulse that shifts bits happens next negative edge of the output of the divider. So you have like 63-127 M cycles from writing SC, depending on the current phase of DIV.

https://raw.githubusercontent.com/furrtek/DMG-CPU-Inside/master/Schematics/6_SERIAL_LINK.png

Todo: test and verify that emulators and for that matter real hardware actually handle it like it appears from the DMG-CPU-inside schematic.

@nitro2k01 nitro2k01 self-assigned this Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants