ST2202A
Default
TABLE 14-3 PSG Control Register (PSGC)
Bit 6 Bit 5 Bit 4 Bit 3 Bit 2
Address Name R/W
Bit 7
Bit 1
Bit 0
Wꢀ
$016 PSGC
Wꢀ
ꢁꢀ
ꢁꢀ
PCK[2]ꢀ PCK[1]ꢀ PCK[0]ꢀ PRBSꢀ C1ENꢀ
PCK[2]ꢀ PCK[1]ꢀ PCK[0]ꢀ DMD[1]ꢀ DMD[0]ꢀ
C0ENꢀ DACE=0ꢀ ꢀ ꢁꢀ000ꢀ0000ꢀ
INHꢀ DACE=1ꢀ ꢀ ꢁꢀ000ꢀ0000ꢀ
ꢀ
Bitꢀ0:ꢀ ꢀ ꢀ DACE :ꢀTone(Noise)ꢀorꢀDACꢀGeneratorꢀselectionꢀbitꢀ
1ꢀ=ꢀPSGꢀisꢀusedꢀasꢀtheꢀDACꢀgeneratorꢀ
0ꢀ=ꢀPSGꢀisꢀusedꢀasꢀtheꢀToneꢀ(Noise)ꢀgeneratorꢀ
ꢀ
Bitꢀ1:ꢀ ꢀ ꢀ C0EN :ꢀPSGꢀchannelꢀ0ꢀ(Tone)ꢀenableꢀbitꢀ
1ꢀ=ꢀPSG0ꢀ(Tone)ꢀenableꢀ
0ꢀ=ꢀPSG0ꢀ(Tone)ꢀdisableꢀ
ꢀ
Bitꢀ2:ꢀ ꢀ ꢀ C1EN :ꢀPSGꢀchannelꢀ1ꢀ(ToneꢀorꢀNoise)ꢀenableꢀbitꢀ
1ꢀ=ꢀPSG1ꢀ(ToneꢀorꢀNoise)ꢀenableꢀ
0ꢀ=ꢀPSG1ꢀ(ToneꢀorꢀNoise)ꢀdisableꢀ
ꢀ
Bitꢀ3:ꢀ ꢀ ꢀ ꢀ PRBS :ꢀToneꢀorꢀNoiseꢀgeneratorꢀselectionꢀbitꢀ
1ꢀ=ꢀNoiseꢀgeneratorꢀ
0ꢀ=ꢀToneꢀgeneratorꢀ
ꢀ
ꢀ
14.3 Noise Generator Control
14.3.1 General description
NoiseꢀgeneratorꢀisꢀshownꢀinꢀFIGUREꢀ14ꢁ5,ꢀwhichꢀbaseꢀfrequencyꢀisꢀcontrolledꢀbyꢀPSG1[5~0].ꢀ
ꢀ
ꢀ
16ꢁStageꢀWhiteꢀNoiseꢀGenerator
NoiseꢀPrescaler
OUTPUT
Noiseꢀout
NCK
PSG1[5~0]
PSGCK
C1N[5~0] OUTPUT
CLOCK
CLOCK
NCKꢀFrequencyꢀ=ꢀPSGCK/(40HꢁPSG1[5~0])
ꢀ
FIGURE 14-5 Noise Generator
14.3.2 Noise Generator Programming
DACEꢀdefinesꢀnoiseꢀorꢀDACꢀfunction.ꢀWritingꢀaꢀ“1”ꢀtoꢀC1ENꢀ
willꢀenableꢀnoiseꢀgeneratorꢀwhenꢀPSGꢀisꢀinꢀnoiseꢀmode.ꢀ
Verꢀ2.5ꢀ
35
/75
ꢀ
9/16/2008ꢀ