3.5
To accomplish the generation of fairly complex envelope patterns,
Envelope
two independent methods of control are provided in the PSG: first, it
is possible to vary the frequency of the envelope using registers R13
Generator
and R14; and second, the relative shape and cycle pattern of the
envelope can be varied using register R15. The following paragraphs
Control
explain the details of the envelope control functions, describing first
the envelope period control and then the envelope shape/cycle
(Registers R13, R14, R15)
control.
3.5.1
ENVELOPE PERIOD CONTROL (Registers R13, R14)
The frequency of the envelope is obtained in the PSG by first
counting down the input clock by 256, then by further counting down
the result by the programmed 16-bit Envelope Period value. This
16-bit value is obtained in the PSG by combining the contents of the
Envelope Coarse and Fine Tune registers, as illustrated in the
following:
Note that the 16-bit value programmed in the combined Coarse and
Fine Tune registers is a period value-the higher the value in the
registers, the lower the resultant envelope frequency.
Note also, that as with the Tone Period, the lowest period Value is
0000000000000001 (divide by 1); the highest period value is
1111111111111111 (divide by 65,536
10
).
The envelope frequency equations are: