CPU Test Mode: Difference between revisions
m (make this less confusing) |
(Removes the 2A03 PIT information (now on its own page). Notes 2A03 pin 30 does nothing.) |
||
Line 1: | Line 1: | ||
== 2A03E | Pin 30 on the 2A03 provides special functionality in some revisions of the chip and is normally grounded. | ||
== 2A03E == | |||
The schematic for the [//nesdev.org/Playchoice.pdf Playchoice 10] permits the supervisor CPU to stop the 2A03E by driving pin 30 high, and then can reset it (both driving pin 30 low and 2A03E /RESET low). Testing pin 30 by itself (with a button) just crashes the CPU. It's unclear if it can be used for anything else. | The schematic for the [//nesdev.org/Playchoice.pdf Playchoice 10] permits the supervisor CPU to stop the 2A03E by driving pin 30 high, and then can reset it (both driving pin 30 low and 2A03E /RESET low). Testing pin 30 by itself (with a button) just crashes the CPU. It's unclear if it can be used for anything else. | ||
Line 6: | Line 8: | ||
== 2A03G / 2A03H Test Mode == | == 2A03G / 2A03H Test Mode == | ||
Pin 30 of the | Pin 30 of the 2A03G and 2A03H can be activated to enable a special test mode for the APU. This activates registers for testing the APU at $4018-$401A at the expense of deactivating the joypad input registers at $4016-$4017: | ||
R$4018: [BBBB AAAA] - current instant DAC value of B=pulse2 and A=pulse1 (either 0 or current volume) | R$4018: [BBBB AAAA] - current instant DAC value of B=pulse2 and A=pulse1 (either 0 or current volume) | ||
R$4019: [NNNN TTTT] - current instant DAC value of N=noise (either 0 or current volume) | R$4019: [NNNN TTTT] - current instant DAC value of N=noise (either 0 or current volume) | ||
Line 14: | Line 16: | ||
(pulse+noise always output current volume, triangle/DPCM no longer advance) | (pulse+noise always output current volume, triangle/DPCM no longer advance) | ||
== | == 2A03 == | ||
Pin 30 has no function in the original version of the 2A03. | |||
== See also == | == See also == | ||
* Forum: [http://forums.nesdev.org/viewtopic.php?f=9&t=9197 Breaking NES apart | * Forum: [http://forums.nesdev.org/viewtopic.php?f=9&t=9197 Breaking NES apart] | ||
* See: [[:File:Apu address.jpg]] | * See: [[:File:Apu address.jpg]] | ||
* See: [[CPU pin out and signal description]] | * See: [[CPU pin out and signal description]] |
Revision as of 23:05, 10 September 2022
Pin 30 on the 2A03 provides special functionality in some revisions of the chip and is normally grounded.
2A03E
The schematic for the Playchoice 10 permits the supervisor CPU to stop the 2A03E by driving pin 30 high, and then can reset it (both driving pin 30 low and 2A03E /RESET low). Testing pin 30 by itself (with a button) just crashes the CPU. It's unclear if it can be used for anything else.
2A07A
Pin 30 is an external /RDY input, its inverse effectively being ANDed together with the internal signal from the 2A03's DMA hardware. It's suspected the 2A03E is actually the same, but we don't have any evidence yet.
2A03G / 2A03H Test Mode
Pin 30 of the 2A03G and 2A03H can be activated to enable a special test mode for the APU. This activates registers for testing the APU at $4018-$401A at the expense of deactivating the joypad input registers at $4016-$4017:
R$4018: [BBBB AAAA] - current instant DAC value of B=pulse2 and A=pulse1 (either 0 or current volume) R$4019: [NNNN TTTT] - current instant DAC value of N=noise (either 0 or current volume) and T=triangle (anywhere from 0 to 15) R$401A: [.DDD DDDD] - current instant DAC value of DPCM channel (same as value written to $4011) W$401A: [L..T TTTT] - set state of triangle's sequencer to T, and lock all channels if L=1 (pulse+noise always output current volume, triangle/DPCM no longer advance)
2A03
Pin 30 has no function in the original version of the 2A03.
See also
- Forum: Breaking NES apart
- See: File:Apu address.jpg
- See: CPU pin out and signal description