sh6614d SinoWealth Micro-Electronics Corp. Ltd, sh6614d Datasheet - Page 17

no-image

sh6614d

Manufacturer Part Number
sh6614d
Description
4k 4-bit Microcontroller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
Note:
The designer provides two crossing tables as an appendix since the designer prefers PSG clk = 32.768K or PSG
clk = 112.5K.
PSG as a noise generator
Fine noise is created by CH2. If the user wants to create the single noise, then make the CH1 music tone output. Otherwise, the
user can mix the wide-band noise and the CH1 music tone into one output through the MIXER. Lastly, the user 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 the user 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, the user can read the corresponding output
envelope frequency (the 1Hz, 4Hz, 8Hz, 32Hz).
Alarm control register (OSC = 32KHz or 262KHz)
Figture: 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. The user 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, the 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 X 6) = 37.92KHz.
Or select C1.6 ~ C1.0 = 78, so that N = 4 and the PSG output frequency = 455KHz/1/ (2 X 4) = 56.87KHz.
$19
C2.3
X
X
X
0
1
C2.2
X
X
X
0
1
C2.1
X
X
X
0
1
C2.0
17
X
X
X
0
1
Alarm output control
32Hz output
DC envelop
1Hz output
4Hz output
8Hz output
SH6614D

Related parts for sh6614d