APU Misc: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
m (Created page with 'All NES APU channels have some form of frequency control. The term '''frequency''' is used where larger register value(s) correspond with higher frequencies, and the term...')
 
mNo edit summary
Line 9: Line 9:
A '''sequencer''' continuously loops over a sequence of values or events. When clocked, the next item in the sequence is generated.
A '''sequencer''' continuously loops over a sequence of values or events. When clocked, the next item in the sequence is generated.


A '''timer''' is used in each of the five channels to control the sound frequency. It contains a divider which is clocked by the [[NES CPU|CPU clock]]. The timer's period is simply the period of the divider.
A '''timer''' is used in each of the five channels to control the sound frequency. It contains a divider which is clocked by the [[CPU|CPU clock]]. The timer's period is simply the period of the divider.

Revision as of 15:14, 12 June 2009

All NES APU channels have some form of frequency control. The term frequency is used where larger register value(s) correspond with higher frequencies, and the term period is used where smaller register value(s) correspond with higher frequencies.

In the block diagrams, a gate takes the input on the left and outputs it on the right, unless the control input on top tells the gate to ignore the input and always output 0.

Some NES APU units use one or more of the following building blocks:

A divider outputs a clock every n input clocks, where n is the divider's period. It contains a counter which is decremented on the arrival of each clock. When the counter reaches 0, it is reloaded with the period and an output clock is generated. A divider can also be forced to reload its counter immediately, but this does not output a clock. When a divider's period is changed, the current count is not affected.

A sequencer continuously loops over a sequence of values or events. When clocked, the next item in the sequence is generated.

A timer is used in each of the five channels to control the sound frequency. It contains a divider which is clocked by the CPU clock. The timer's period is simply the period of the divider.