sh66k12 SinoWealth Micro-Electronics Corp. Ltd, sh66k12 Datasheet - Page 6

no-image

sh66k12

Manufacturer Part Number
sh66k12
Description
Mask 4-bit Microcontroller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
System Register $13:
HEAVY LOAD Mode (HLM): This mode is designed for the 32KHz crystal oscillator, so that the oscillation can be maintained in
a noisy power environment. The power might drop suddenly when the ALARM is driving a speaker. The HLM is designed to
control this power variation. The consumption of power will increase during the use of the HLM mode, but it will not affect the RC
oscillator.
Note: The HLM needs about 5 instruction cycles to set-up the oscillation for 32.768KHz crystal oscillator.
System Register $14 (AEC):
Default carrier frequency is 4KHz. Can be selected to 2KHz by code option.
WRITE mode: controls the envelope selection.
READ mode can read out current envelope waveforms.
Below is the ALARM functional block equivalent circuit diagram. To activate the ALARM function, first switch the PAM to
ALARM OUTPUT mode. After setting PAM equal to 1, then set the proper envelope. When the data writes into AEC, the
envelope counter will be synchronized at the same time. The programmer can read back the envelope from AEC register and
make any pattern changes needed by programmer. The Read operation will not affect the alarm output waveform.
Address
Address
$13
$14
OSCO
OSCI
/4
Bit 3
AEC3
O/S
Bit 3
X
X
X
X
X
X
0
1
X
X
X
0
1
φ1
LCDOFF
Bit 2
AEC2
Bit 2
φ2
X
X
X
X
0
1
X
X
X
X
X
0
1
φ3
Bit 1
HLM
AEC1
φ4
Bit 1
X
X
X
X
X
X
0
1
X
X
X
0
1
4KHz or 2KHz
φ6
Option setting
Bit 0
PAM
AEC0
Bit 0
φ7
X
1
X
X
X
X
X
0
X
X
X
0
1
φ8
R/W
R/W
φ9
R/W
R/W
6
φ10
Bit0: set PA.1, PA.2 as ALARM output
Bit1: HEAVY LOAD Mode
Bit2: LCD Power Control
Bit3: set seg1 - 4 as output ports
PORTA.1, PORTA.2 as I/O port
PORTA.1, PORTA.2 as ALARM output
No Heavy Load
HEAVY LOAD mode
LCD on
LCD off
Seg1 - 4 as LCD output
Seg1 - 4 as output ports
ALARM envelope control
DC envelope
1Hz envelope
2Hz envelope
4Hz envelope
8Hz envelope
φ11
32KHz or 262KHz
Option setting
16Hz
R
Remarks
Remarks
8Hz 4Hz
R
R
2Hz
R
1Hz
R
RD $14
SH66K12
WR $14
To Sound
Power on
Power On
Mixer
Yes
Yes
Yes
Yes
Yes

Related parts for sh66k12