st2024c Sitronix Technology Corporation, st2024c Datasheet - Page 31

no-image

st2024c

Manufacturer Part Number
st2024c
Description
24k 8-bit Single Chip Microcontroller
Manufacturer
Sitronix Technology Corporation
Datasheet
13.3 PSG Tone programming
To program tone generator, PSGO (PMCR[1]) or PSGB
(PMCR[ 0]) should be set to “1” for PB1 or PB0 in order to be
in the PSG output mode. Tone or DAC function is defined by
DACE, writing to C1EN will enable tone generator when
Ver 2.2
Address Name
$016
Bit 0:
Bit 1:
Bit 2:
Bit 3:
Bit 6~4: PCK[2~0] : clock source(PSGCK) 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
000 = SYSCK / 2
X01 = SYSCK / 4
X10 = SYSCK / 8
011 = SYSCK / 16
100 = SYSCK
1 = PSG is used as the DAC generator
0 = PSG is used as the Tone(Noise) generator
1 = PSG0 enable
0 = PSG0 disable
1 = PSG1 (Tone or Noise) enable
0 = PSG1 (Tone or Noise) disable
1 = Noise generator
0 = Tone generator
R/W
R/W
R/W
Bit 7
TABLE 13-28: PSG CONTROL REGISTER (PSGC)
-
-
PCK[2]
PCK[2]
Bit 6
PCK[1]
PCK[1]
Bit 5
31/54
PCK[0]
PCK[0]
Bit 4
PSG is in tone function. Noise or tone function is selected by
PRBS.
DMD[1]
PRBS
Bit 3
DMD[0]
C1EN
Bit 2
C0EN
Bit 1
INH
DACE=0
DACE=1
Bit 0
- 000 0000
- 000 0000
ST2024C
Default
1/31/08

Related parts for st2024c