sh6616 SinoWealth Micro-Electronics Corp. Ltd, sh6616 Datasheet - Page 9

no-image

sh6616

Manufacturer Part Number
sh6616
Description
16k 4-bit Microcontroller
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
6. Programmable Sound Generator (PSG)
2-Channel PSG is provided. Channel 1 is a 7-bit pseudo random counter. Channel 2 is a 15-bit pseudo random counter. Mode bits
C1M, C2M determine which of the two counters will be a noise or a tone generator. To reduce power consumption, disable the
sound effect generator during both STOP and HALT.
Channel 2 TONE mode is same as Channel 1. (15-bit pseudo-random counter). This eliminates some programming codes.
PSG subblock diagram
Address
$1A
$1B
$13
$14
$15
$16
$17
$18
$19
P.1
0
0
1
1
C2.11
VOL1
RC_OSC
Bit 3
C1.3
C1M
C2.3
C2.7
C2M
(2MHz)
-
-
P.0
0
1
0
1
C2.10.
C2.14
VOL0
Bit 2
C1.2
C1.6
C2.2
C2.6
-
-
1/128
1/256
1/512
1/64
CH2EN
C2.13
Prescaler Divide Ratio
Bit 1
C1.1
C1.5
C2.1
C2.5
C2.9
P1.1
P2.1
32KHz
16KHz
8KHz
4KHz
P.0
SELECTOR
(1AH, 1BH)
1
2
4
8
PSG-CLK
CH1EN
C2.12
Bit 0
C1.4
C2.4
C2.8
C1.0
C2.0
P1.0
P2.0
9
PSG-CLK
P.1
R/W
W
W
W
W
W
W
W
W
W
(1AH, 1BH)
1/N
Clock Source
System Clock
System Clock
System Clock
System Clock
PSG Channel 1 low digit
PSG Channel 1 high digit
PSG Channel 2 low digit
PSG Channel 2
PSG Channel 2
PSG Channel 2 high digit
Bit 0: PSG Channel 1 enable
Bit 1: PSG Channel 2 enable
Bit 2, Bit 3: Volume Control
(Initially 0, no sound)
PSG 1 Prescaler
PSG 2 Prescaler
TONE
Remarks
Actual Clock
32 KHz
16 KHz
8 KHz
4 KHz
SH6616

Related parts for sh6616