sh66k12 SinoWealth Micro-Electronics Corp. Ltd, sh66k12 Datasheet

no-image

sh66k12

Manufacturer Part Number
sh66k12
Description
Mask 4-bit Microcontroller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
Features
General Description
SH66K12 is a single-chip microcontroller integrated with an SH6610C 4-bit CPU core, SRAM, timer, alarm generator, LCD
driver, I/O port, and program ROM.
Pad Configuration
SH6610C-based single-chip 4-bit microcontroller with
LCD driver
ROM: 2048 X 16 bits
RAM: 256 X 4 bits (Data memory)
Operation voltage: 2.5V - 5.4V
16 CMOS I/O pins
- CMOS or Open Drain (code option)
4 level subroutine nesting (including interrupts)
Two 8-bit timer/counter with pre-divider circuit
Oscillator warm-up timer
4 priority interrupt sources:
- External interrupt (falling edge)
- Timer0 interrupt
- Timer1 interrupt
- PortB interrupt (falling edge)
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
39
40
41
42
43
44
45
46
47
48
49
50
51
52
G
38
S
E
2
1
G
S
E
1
7
37
S
E
G
1
2
S
E
G
1
8
36
T
E
S
T
3
S
E
G
1
9
35
R
E
S
E
T
4
G
S
E
2
0
34
SH66K12
B0
V
5
D
D
S
E
G
2
1
MASK 4-bit Microcontroller with LCD Driver
33
P
O
R
A
6
T
0
G
S
E
2
2
32
P
O
R
A
7
T
1
S
E
G
2
3
31
O
8
P
R
T
A
G
2
S
E
2
4
30
1
9
O
G
P
R
T
A
3
S
E
2
5
29
10
O
R
S
E
G
P
T
B
0
2
6
28
11
Oscillator
- 32.768KHz crystal or 262K RC (code option)
Instruction cycle time:
- 4/32.768KHz (≈ 122µs) for 32.768KHz OSC clock
- 4/262KHz (≈ 15µs) for 262KHz OSC clock
LCD driver:
- 4 X 26 (1/4 duty, 1/3 bias or 1/3 duty, 1/2 bias)
Two low power operation modes: HALT or STOP mode
Built-in alarm generator carrier frequency:
- 2KHz or 4KHz (code option)
Low power consumption (Iop < 10µA, 32.768KHz, 3V)
Bonding option for multi-code software
Available in CHIP FORM
C
O
M
P
O
R
T
B
1
1
27
12
M
C
O
22
P
O
R
T
B
2
2
26
25
24
23
B1
21
20
19
18
17
16
15
14
13
COM3
COM4
OSCI
OSCO
GND
PORTD3
PORTD2
PORTD1
PORTD0
PORTC3
PORTC2
PORTC1
PORTC0
PORTB3
SH66K12
V1.0

Related parts for sh66k12

sh66k12 Summary of contents

Page 1

... External interrupt (falling edge) - Timer0 interrupt - Timer1 interrupt - PortB interrupt (falling edge) General Description SH66K12 is a single-chip microcontroller integrated with an SH6610C 4-bit CPU core, SRAM, timer, alarm generator, LCD driver, I/O port, and program ROM. Pad Configuration SEG16 39 SEG15 ...

Page 2

... P Ground pin I Share with Bonding option, internally pull-high O Oscillator output pin, connected to crystal oscillator I Oscillator input pin, connected to crystal or external resistor O Common signal output for LCD display 2 SH66K12 TEST OSCI OSC OSCO PORTB, PORTC PORTD PORTA.0 (INT) PORTA.1(BD) PORTA.2 (BD) PORTA.3 COMMON ...

Page 3

... JMP instruction Jump to RESET service routine JMP instruction Jump to External interrupt service routine JMP instruction Jump to TIMER0 service routine JMP instruction Jump to TIMER1 service routine JMP instruction Jump to PB service routine (PORTB (TBR, AC)). The address is determined by RTNW to return look-up 3 SH66K12 Function ...

Page 4

... DPH.0 R/W Data pointer for INX high nibble Bit0: set PA.1, PA.2 as Alarm output Bit1: HEAVY LOAD Mode HLM PAM R/W Bit2: LCD off or LCD on Bit3: set LCD segment as output AEC1 AEC0 R/W Alarm Envelope Control - DUTY R/W Bit0: change LCD duty to 1/4 duty, 1/3 bias - - - Reserved 4 SH66K12 Description ...

Page 5

... Bit1: Bonding option 1, internal weak drive bond to GND 1 B0 bond bond to GND and B0 bond to V GND PCB V GND PCB SH66K12 Bonding Option 5 SH66K12 Remarks Power-on Pull low Pull high Yes ...

Page 6

... X 2Hz envelope X X 4Hz envelope X X 8Hz envelope Option setting 4KHz or 2KHz φ4 φ6 φ7 φ8 φ9 φ10 φ11 6 SH66K12 Remarks Power on Remarks RD $14 To Sound 16Hz 8Hz 4Hz 2Hz 1Hz $14 Option setting 32KHz or 262KHz Yes Yes ...

Page 7

... AEC = $0 PAM = 1 AEC = $8 PAM = 1 AEC = $C PAM = 1 AEC = $A PAM = 1 AEC = $F PAM = 1 Bit 0 R/W - DUTY R/W Bit0: LCD duty control LCD driver = 1/4 duty, 1/3 bias - 0 LCD driver = 1/3 duty, 1/2 bias Bit 2 COM3 - - - - - - - - 7 SH66K12 Description Power on Yes Bit 1 Bit 0 COM2 COM1 - DATA_BIT - DATA_BIT - DATA_BIT - DATA_BIT ...

Page 8

... SEG17 SEG17 SEG18 SEG18 SEG19 SEG19 SEG20 SEG20 SEG21 SEG21 SEG22 SEG22 SEG23 SEG23 SEG24 SEG24 SEG25 SEG25 SEG26 SEG26 8 SH66K12 Bit 0 COM1 SEG1 SEG2 SEG3 SEG4 Bit 0 COM1 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 ...

Page 9

... I/O PORT SH66K12 has 16 I/O pins. Each I/O pins are bit programmable. I/O pins are CMOS (Default) or Open Drain by code option. (a) PORTA, PORTB, PORTC and PORTD Each of these ports contains 4 bit I/O pins. Port I/O mapping address is shown as follows: Address Bit3 $08 PORT A.3 $09 PORT B.3 $0A PORT C.3 $0B PORT D.3 If ports are pull-high internally weak drive. The equivalent circuit is below: 6 ...

Page 10

... SH66K12 Clock Source System clock System clock System clock System clock System clock System clock System clock System clock Clock Source System clock System clock System clock System clock System clock System clock ...

Page 11

... PORTA will generate an external interrupt). 8. System Clock SH66K12 has one clock source. OSC is 32.768KHz crystal or 262KHz RC determined by code option. The OSC generates the basic clock pulses that provide the system clock to supply CPU and on-chip peripherals (TIMER0, TIMER1, LCD). ...

Page 12

... There are 3 types of system reset. 1. Hardware reset input 2. Power on reset 3. Low Power Detection reset Hardware Program counter CY Data memory AC Timer counter Timer load register Interrupt Enable Flags Interrupt Request Flags LPD [3:0] After power-on reset $000 Undefined Undefined Undefined 0101 12 SH66K12 ...

Page 13

... AC, Mx ← ← AC, Mx ← AC, Mx ← Mx ⊕ I AC, Mx ← AC, Mx ← Mx & I Function AC; Mx ← Decimal adjust for add AC; Mx ← Decimal adjust for sub 13 SH66K12 Flag Change Flag Change CY ...

Page 14

... CY ← X (Not include p) PC ← ST; TBR ← hhhh; A ← llll PC CY;PC ← ST ← X (Include p) PC ← (PC11-PC8) (TBR) ( Operation I Immediate data ⊕ Logical exclusive OR | Logical OR & Logical AND bbb RAM bank TBR Table Branch Register 14 SH66K12 Flag Change Flag Change CY ...

Page 15

... V 2.8 V 0.2 V µ A 6.5 7.5 15 SH66K12 = 32.768KHz, unless otherwise specified) Conditions All output pins unload execute NOP instruction All output pins unload (HALT mode) exclude LCD current All output pins unload (STOP mode) exclude LCD current PORTA, PORTB, PORTC, PORTD PORTA, PORTB, PORTC, PORTD = 15 µ ...

Page 16

... SB1 * 0 SB1 SB2X SB1 16 SH66K12 = 32.768KHz, unless otherwise specified) OSC Conditions All output pins unload execute NOP instruction All output pins unload (HALT mode) exclude LCD current All output pins unload (STOP mode) exclude LCD current PORTA, PORTB, PORTC, PORTD PORTA, PORTB, PORTC, PORTD = 15 µ ...

Page 17

... Typ. Max. Unit reduces to Isb1 after instruction executing reduces to Isb3 after instruction executing  F(3.0)-F(2.4)  /F(3.0), RC oscillator (for reference only variation caused by process variation (for reference only 5.0V DD 300 500 F (KHz) 17 SH66K12 Condition V Conditions Conditions 700 900 ...

Page 18

... GND V DD3 COM2 V DD2 COM2 V DD1 COM1 GND V DD3 V DD2 COM3 V DD1 GND V DD3 V DD2 COM4 V DD1 GND SEGn+1 V DD3 SEGn SEGn V DD2 V DD1 GND SEGn+1 V DD3 V DD2 V DD1 GND V DD3 COM4 - SEGn V DD2 V DD1 GND -V DD1 -V DD2 -V DD3 18 SH66K12 Unlight ...

Page 19

... COM1 V DD1 GND COM2 V DD2 COM1 COM2 V DD1 GND SEGn+2 V DD2 COM3 V DD1 GND SEGn+1 V DD2 COM4 V DD1 GND SEGn V DD2 SEGn V DD1 GND V DD2 SEGn+1 V DD1 GND V DD2 COM1 - SEGn V DD1 GND -V DD2 -V DD2 OFF 1ms or more 19 SH66K12 Unlight ...

Page 20

... Application Circuits (for reference only) SH66K12 chip substrate connects to system ground. AP1 OSC: 262K RC (code option) LCD: 1/4 duty, 1/3 bias PORTA - D: I AP2 OSC: 32.768KHz crystal (code option) LCD: 1/3 duty, 1/2 bias PORTB - D: I/O PORTA.0: external interrupt PORTA.1, PORTA.2: ALARM output (carrier frequency: 2KHz or 4KHz code option) ...

Page 21

... OSC: 32.768KHz crystal (code option) LCD: 1/3 duty, 1/2 bias PORTB.1 = Output When V is higher than V reducing V DD LCD can regulate the voltage. DD DD1 LCD 1/2 bias V DD1 RESET 10K - 50K OSCI SH66K12 PORTB.1 OSCO V DD GND TEST V DD1 SH66K12 20p 32768Hz 20p ...

Page 22

... SH66K12 COM3 25 COM4 24 OSCI 23 OSCO B1 22 GND 21 PORTD3 20 PORTD2 1970µm 19 PORTD1 18 PORTD0 17 PORTC3 16 PORTC2 15 PORTC1 14 PORTC0 12 13 PORTB3 P ...

Page 23

... Ordering Information Part No. SH66K12H Package CHIP FORM 23 SH66K12 ...

Page 24

... Replace Notice: When user replaces SH66K12 with SH6612 (mask) or SH6612A (mask), please pay attention to the different between them. The different is: Item SH66K12 LCD driving current No select Reset pin internal Enable / Disable select by pull-up resister mask option. SH6612 Low / Normal select by Low / Normal / High /Higher mask option ...

Page 25

... Data Sheet Revision History Version 1.0 Original Content 25 SH66K12 Date Oct. 2009 ...

Related keywords