Skip to content

MBC7: Note about HALT and sensor relying on PHI/ cart clock #596

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/MBC7.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ registers. Reads return $FF. Other writes do not appear to do anything
(Partially unconfirmed). Note that you cannot re-latch the accelerometer
value without first erasing it; attempts to do so yield no change.

Once the latch for a sample update has been triggered the cpu should not be
put into HALT for at least 1.2 msec since HALTing turns off the PHI cartridge
signal (clock from the GB) which the MBC7 accelerometer sensor relies on.
If that clock is turned off too soon the X and Y values will have signficantly
more noise in the sampled data.

### Ax2x/Ax3x - Accelerometer X value (Read Only)

Ax2x contains the low byte of the X value (lower values are towards the
Expand Down Expand Up @@ -134,5 +140,5 @@ enable section as well (0000-1FFF)

## External links

- Source: [GBDev Forums thread by endrift](https://web.archive.org/web/20240429225227/http://gbdev.gg8.se/forums/viewtopic.php?id=448)
- Source: [GBDev Forums thread by endrift](https://web.archive.org/web/20250424080817/https://gbdev.gg8.se/forums/viewtopic.php?id=448)

Loading