sh6613 SinoWealth Micro-Electronics Corp. Ltd, sh6613 Datasheet - Page 14

no-image

sh6613

Manufacturer Part Number
sh6613
Description
4k 4-bit Microcontroller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
The designer provides two crossing tables as an appendix that is what the designer prefers PSG clk=32.768K or PSG
clk=112.5K.
PSG as noise generator
The fine noise is created by CH2. If we want to create the single noise, we can make the CH1 music tone output. Otherwise we
can mix the wide-band noise and the CH1 music tone into one output through the MIXER. Lastly we can select 4 volume levels
controlled by VOL0, VOL1.
PSG as an alarm generator
When PSG is in the alarm mode, the CH1 provides the alarm carrier frequency and the CH2 provides the alarm envelope signal.
Lastly we can select 4 volume levels controlled by VOL0, VOL1. The channel 2 low nibble C2.0~C2.3 will be the alarm control
register. Channel 1 output would modulate with an ALARM envelope control for 32KHz or 262KHz. The carrier frequency can be
programmed by PSG channel 1.In reading this alarm control register, we can read the corresponding output envelope frequency
(the 1Hz, 4Hz, 8Hz, 32Hz).
Figure: Alarm modulation output for OSC=32.768KHz or OSC=262KHz.
PSG as remote control
The remote control is only an expandable application for PSG sound. We can select the CH1 as tone output and the CH2 will
create alarm frequency envelope signal.
When PSG channel is programmed in the ALARM mode. Programmer can set ALARM mode register to "0000B". Program the
adequate frequency output to PSG output. Then use PAM1 or PAM2 control the envelope of code. In this way, remote control
function can be implemented easily.
The remote frequency =56.73KHz or 37.92KHz.
The software should select OSCX=455KHz, SEL=1 and SEL0=0, so that the PSG CLK=455KHz.
Then select channel 1 alarm mode (C1M=1), and OCT1=0,C2.0~C2.3 are set to 00H. VOL1, VOL2=1,1.
Then select C1.6~C1.0=7E, so that N=6 and the PSG output frequency=455KHz/1/(2×6)=37.92KHz.
Or select C1.6~C1.0=78,so that N=4 and the PSG output frequency=455KHz/1/(2×4)=56.87KHz.
Alarm control register (OSC=32KHz or 262KHz)
$19
C2.3
0
X
X
X
1
C2.2
0
X
X
1
X
C2.1
0
X
1
X
X
C2.0
0
1
X
X
X
Alarm output control
DC envelop
1Hz output
4Hz output
8Hz output
32Hz output
14/33
SH6613/B/C
V1.2

Related parts for sh6613