Skip to content

Commit b47b2ad

Browse files
bbbbbravivace
andauthored
MBC7: Note about HALT and sensor relying on PHI/ cart clock (#596)
--------- Co-authored-by: Antonio Vivace <avivace4@gmail.com>
1 parent 529270a commit b47b2ad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/MBC7.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ registers. Reads return $FF. Other writes do not appear to do anything
4040
(Partially unconfirmed). Note that you cannot re-latch the accelerometer
4141
value without first erasing it; attempts to do so yield no change.
4242

43+
Once the latch for a sample update has been triggered the CPU should not be
44+
put into HALT for at least 1.2 µs since HALTing turns off the PHI cartridge
45+
signal (the System Clock) which the MBC7 accelerometer sensor relies on.
46+
If that clock is turned off too soon the X and Y values will have significantly
47+
more noise in the sampled data.
48+
4349
### Ax2x/Ax3x - Accelerometer X value (Read Only)
4450

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

135141
## External links
136142

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

0 commit comments

Comments
 (0)