st2032a Sitronix Technology Corporation, st2032a Datasheet - Page 26

no-image

st2032a

Manufacturer Part Number
st2032a
Description
8 Bit Microcontroller With 32k Bytes Rom
Manufacturer
Sitronix Technology Corporation
Datasheet
13.2.2 PSG Tone Programming
Tone or DAC function is defined by register DACE. Write to
C1EN will enable tone generator when PSG is in tone
Ver 2.4
Address Name
$016
Bit 0:
Bit 1:
Bit 2:
Bit 3:
Bit 6~4: PCK[2~0] : clock source selection for PSG and DAC
PSGC
DACE : Tone(Noise) or DAC Generator selection bit
C0EN : PSG channel 0 (Tone) enable bit
C1EN : PSG channel 1 (Tone or Noise) enable bit
PRBS : Tone or Noise generator selection bit
1 = PSG is used as the DAC generator
0 = PSG is used as the Tone (Noise) generator
1 = PSG0 (Tone) enable
0 = PSG0 (Tone) disable
1 = PSG1 (Tone or Noise) enable
0 = PSG1 (Tone or Noise) disable
1 = Noise generator
0 = Tone generator
000 = SYSCK
X01 = SYSCK / 2
X10 = SYSCK / 4
011 = SYSCK / 8
100 = SYSCK x 2
R/W
W
W
Frequency of Channel 1 Tone = PSGCK/(1000H-PCH1[11~0])/2
PSG1[11~8]
PSG1[7~0]
PSGCK
Bit 7
C1EN
LOAD
-
-
TABLE 13-3 PSG Control Register (PSGC)
FIGURE 13-4 Tone Generator Channel 1
PCK[2]
PCK[2]
Bit 6
C1[11~8]
C1[7~0]
CLOCK
Enable
Latch
12 Bit Auto-reload Up Counter
PCK[1]
PCK[1]
Bit 5
Channel 1
PCK[0]
PCK[0]
26/54
Bit 4
function. Noise or tone function is selected by PRBS.
OUTPUT
DMD[1] DMD[0]
PRBS
Bit 3
C1EN
Bit 2
Tone out
C0EN
Bit 1
INH
DACE=0
DACE=1
Bit 0
- 000 0000
- 000 0000
Default
ST2032A
9/13/07

Related parts for st2032a