sh66l08a SinoWealth Micro-Electronics Corp. Ltd, sh66l08a Datasheet

no-image

sh66l08a

Manufacturer Part Number
sh66l08a
Description
1k 4-bit Micro-controller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
Features
General Description
SH66L08A is a single-chip 4-bit micro-controller. This device integrates a SH6610C CPU core, SRAM, timer, alarm generator,
LCD driver, I/O port, voltage pump and program ROM. The SH66L08A is suitable for calculator application.
Pad Configuration
SH6610C-based single-chip 4-bit micro-controller with
LCD driver
ROM: 1024 X 16 bits
RAM: 288 X 4 bits
Operation Voltage: 1.2V - 1.7V
16 CMOS Bi-directional I/O pads (PORTC, PORTD can
switch to LCD segment)
4-Level Stack (Including Interrupts)
Two 8-bit Auto Re-Loaded Timers/Counters
Warm-Up Timer
Powerful Interrupt Sources:
- 32 System Control Register
- 256 Data memory
- 34 LCD RAM
- External interrupt (Low active)
- Timer0 interrupt
- Timer1 interrupt
- PORTB & PORTC interrupt (Low active)
PORTC0/SEG27
PORTC1/SEG28
PORTC2/SEG29
PORTC3/SEG30
PORTD0/SEG31
PORTD1/SEG32
PORTD2/SEG33
PORTD3/SEG34
PORTB1
PORTA0
PORTA1
PORTA2
PORTA3
PORTB0
SEG25
SEG26
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
9
56
17
55
18
54
19
B0
1K 4-bit Micro-controller with LCD Driver
SH66L08A
53
20
52
21
B1
1
51
22
50
23
49
24
48
25
Oscillator (Code Option)
Instruction Cycle Time (4/f
LCD Driver:
Two Low Power Operation Modes: HALT And STOP
Built-in Watchdog Timer (Code Option)
Built-in Voltage Doubler And Tripler Charge Pump
Circuit
Built-in Alarm Generator
Low power consumption
Bonding option for multi-code software
Available in CHIP FORM
- Crystal Oscillator:
- RC Oscillator:
- 34SEG X 4COM (1/4 Duty, 1/3 Bias)
- 34SEG X 3COM (1/3 Duty, 1/2 Bias)
47
26
46
27
45
28
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
COM4
COM3
COM2
COM1
32.768kHz
131kHz
OSC
)
SH66L08A
V2.0

Related parts for sh66l08a

sh66l08a Summary of contents

Page 1

... Timer1 interrupt - PORTB & PORTC interrupt (Low active) General Description SH66L08A is a single-chip 4-bit micro-controller. This device integrates a SH6610C CPU core, SRAM, timer, alarm generator, LCD driver, I/O port, voltage pump and program ROM. The SH66L08A is suitable for calculator application. Pad Configuration ...

Page 2

... PORTD (4-Bit) 1024 X 16 Bits Watchdog PORTC (4-Bit) Timer PORTB (4-Bit) Alarm Generater PORTA (4-Bit) 8-Bit Timer0 LCD 8-Bit Timer1 Reset Circuit 2 SH66L08A PORTD.3-0 (SEG31-34) PORTC.3-0 (SEG27-30)/ Port interrupt PORTB.3-0/Port interrupt PORTA.0/External interrupt PORTA.1 PORTA.2 PORTA.3 SEG1 - 26 COM1 - 4 Reset ...

Page 3

... Bit programmable I/O, PORTA.0 could be external interrupt input ( I/O PORTA.1, PORTA.2 could be buzzer output PORTA.1 (BD), PORTA I/O Bit programmable I/O, vector interrupt (Active low level) Bit programmable I/O, Vector interrupt (Active low level) I/O Shared with SEG27 - 30 I/O Bit programmable I/O. shared with SEG31 - 34 P: Power; Z: High impedance 3 SH66L08A Description INT ) ...

Page 4

... The maximum allowed for subroutine calls and interrupts are 4 levels. If the number of calls and interrupt requests exceeds 4, then the bottom of stack will be shifted out, that program execution may enter an abnormal state. Bank1 Bank2 $100 - $17F 4 SH66L08A (TBR, AC)). The Bank6 $300 - $3FF ...

Page 5

... Bit2: PORTD as LCD segment output control register Bit3: Port pull-up control register - - - Reserved - - R/W Watchdog timer overflow flag register PACR.1 PACR.0 R/W PORTA input/output control register PBCR.1 PBCR.0 R/W PORTB input/output control register PCCR.1 PCCR.0 R/W PORTC input/output control register PDCR.1 PDCR.0 R/W PORTD input/output control register - - - Reserved 5 SH66L08A Remarks ...

Page 6

... JMP* $001 JMP* $002 JMP* $003 JMP* $004 JMP* * JMP instruction can be replaced by any instruction. Remarks Jump to RESET service routine Jump to External interrupt service routine Jump to TIMER0 service routine Jump to TIMER1 service routine Jump to PBC service routine (PORTB & PORTC) 6 SH66L08A ...

Page 7

... PACR.0 0000 PBCR.1 PBCR.0 0000 PCCR.1 PCCR.0 0000 PDCR.1 PDCR.0 0000 - - ---- After any Reset $000 Undefined Undefined Undefined 7 SH66L08A Pad Reset WDT Reset 0000 0000 0000 0000 -000 -000 -000 -000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ...

Page 8

... Before selecting crystal, the user should consult the crystal manufacturer for appropriate value of external component to get best performance, visit http://www.sinowealth.com C1 Crystal OSC 1000pF (for reference only) Recommend Type (φ3x8 12.5pF φ3x8 - 32.768KHz for more recommended manufactures. 8 SH66L08A Manufacturer KDS Vectron International ...

Page 9

... PORTC data register PD.1 PD.0 R/W PORTD data register PACR.1 PACR.0 R/W PORTA input/output control register PBCR.1 PBCR.0 R/W PORTB input/output control register PCCR.1 PCCR.0 R/W PORTC input/output control register PDCR.1 PDCR.0 R/W PORTD input/output control register READ DATA IN READ 9 SH66L08A Remarks V DD Weak Pull high V DD I/O Pad GND ...

Page 10

... PORTA.0 must be released before the relative IRQ flag clearing and IE resetting. Otherwise possible to reenter the active interrupt. Bit 1 Bit 0 R/W O/S1 - R/W Bit3: Port pull-up control register X X Port Pull-high enable X X Port Pull-high disable Falling Edge Detector PBCFR 10 SH66L08A Remarks IEP Port Interrupt IRQP ...

Page 11

... Timer SH66L08A has two 8-bit timers. The timer/counter has the following features: - 8-bit up-counting timer/counter. - Automatic re-load counter. - 8-level prescaler. - Interrupt on overflow from $FF to $00. The following is a simplified timer block diagram. t SYNC osc System Prescaler COUNTER clock TM.2 TM.1 TM.0 The timers provide the following functions: - Programmable interval timer function ...

Page 12

... Interrupt Four interrupt sources are available on SH66L08A: - External interrupt (Low active) - Timer0 interrupt - Timer1 interrupt - PORTB & PORTC interrupt (Low active) Interrupt Control Bits and Interrupt Service The interrupt control flags are mapped on $00 and $01 of the system register. They can be accessed or tested by the program. ...

Page 13

... Bit2: PORTD as LCD segment output control register Bit3: Port pull-up control register 0 - PORTC as I/O port 1 - PORTC as LCD SEG27 - PORTD as I/O ports X - PORTD as LCD SEG31 - 34 1/3 duty, 1/2 bias About 43Hz About 43Hz About 21Hz 13 Remarks Remarks LCD frame frequency 1/4 duty, 1/3 bias About 32Hz About 32Hz About 16Hz SH66L08A ...

Page 14

... WDT STOP Pad RESET Frame GND 1/2Frame GND GND LCDOFF LCDOFF PUMP CIRCUIT OFF OFF OFF U PUMP CIRCUIT OFF OFF OFF U SH66L08A Display OFF OFF OFF OFF Display OFF OFF OFF U ...

Page 15

... LCD display and turn off the (sets LCDOFF = 1) LCD pump. ....... sets LCDOFF = 0 enable the Display ON LCD display and turn on the (sets LCDOFF = 0) LCD pump. ....... STOP (Pump turns off By RESET automatically) Wake up Other INT ....... 15 SH66L08A Display OFF ON ON OFF LCD pump OFF interrupt service ...

Page 16

... Wakes up after at least 200ms ....... sets LCDOFF = 1 only disable Sets Display Off : the LCD display, won't turn off (sets LCDOFF = 1) the LCD pump. ....... Display ON (sets LCDOFF = 0) ....... STOP (Pump turns off By RESET automatically) Wake up Other INT ....... 16 SH66L08A LCD pump OFF interrupt service ...

Page 17

... SEG11 31BH SEG12 SEG12 31CH SEG13 SEG13 31DH SEG14 SEG14 31EH SEG15 SEG15 31FH SEG16 SEG16 320H SEG17 SEG17 321H 17 SH66L08A Bit 3 Bit 2 Bit 1 COM4 COM3 COM2 SEG18 SEG18 SEG18 SEG19 SEG19 SEG19 SEG20 SEG20 SEG20 SEG21 SEG21 SEG21 SEG22 SEG22 ...

Page 18

... SEG11 31BH SEG12 SEG12 31CH SEG13 SEG13 31DH SEG14 SEG14 31EH SEG15 SEG15 31FH SEG16 SEG16 320H SEG17 SEG17 321H 0.1uF V = 1.5V DD 0.1uF 18 SH66L08A Bit 3 Bit 2 Bit 1 - COM3 COM2 - SEG18 SEG18 - SEG19 SEG19 - SEG20 SEG20 - SEG21 SEG21 - SEG22 SEG22 - SEG23 SEG23 - ...

Page 19

... VP2 COM2 V DD COM1 GND VP1 VP2 COM3 V DD GND VP1 VP2 COM4 V DD GND SEGn+1 VP1 SEGn VP2 SEGn V DD GND VP1 VP2 SEGn GND VP1 VP2 V DD COM4 - SEGn GND -V DD -VP2 -VP1 19 Unselect Unlight Unlight 3.9ms SH66L08A ...

Page 20

... VP2 COM3 COM1 V DD GND VP2 COM2 V COM2 DD COM1 GND VP2 SEGn+2 COM3 V DD GND VP2 COM4 V DD GND SEGn+1 VP2 SEGn SEGn V DD GND VP2 V SEGn+1 DD GND VP2 V DD COM1 - SEGn GND -V DD -VP2 20 Unselect Unlight Unlight 11.7ms 3.9ms SH66L08A ...

Page 21

... AND other envelope choice logically 1 X R/W 2Hz envelope AND other envelope choice logically X X R/W 4Hz envelope AND other envelope choice logically X X R/W 8Hz envelope AND other envelope choice logically Alarm output waveform 21 SH66L08A Remarks ...

Page 22

... Internal 0.030ms/ WDT Time (0.122ms) out Period 0.488ms SCALER_1 1/16/(4) Condition 22 Remark Timer-out period 0.5ms 1.0ms 2.0ms 4.0ms 16.0ms 64.0ms 256.0ms 512.0ms TM0 PRESCALER /512 /1024 / /32 /128 Final WDT Time out period SH66L08A ...

Page 23

... HALT and STOP Mode After the execution of HALT instruction, SH66L08A will enter the HALT mode. In the HALT mode, the CPU will stop operating. But peripheral (Timer, LCD) circuit will keep status. After the execution of STOP instruction, SH66L08A will enter the STOP mode. The whole chip (Including oscillator) will stop operating ...

Page 24

... B1, B0: Bonding option register Default bonding option bond to GND bond bond to GND & B0 bond to V GND B1 PCB GND B1 PCB SH66L08A Bonding Option 24 SH66L08A Remarks GND GND ...

Page 25

... D (Duty and bias option 1/3 duty, 1/2 bias (Default 1/4 duty, 1/3 bias W (Watch Dog Timer Disable (Default Enable S (Single solar supply application Disable (Default Enable L (PORTD input only Disable (Default Enable R (Reset type select Level trigger (Low active) (Default Edge trigger (Falling edge active) 25 SH66L08A ...

Page 26

... Function AC AC ⊕ I AC & I Function AC, Mx Decimal adjust for add AC, Mx Decimal adjust for sub 26 SH66L08A Flag Change Flag Change Flag Change CY CY ...

Page 27

... ( ( ( ( CY (Not include p) PC ST; hhhh, AC lll CY (Include p) No Operation I Immediate data ⊕ Logical exclusive OR | Logical OR & Logical AND bbb RAM bank B RAM bank TBR Table Branch Register SH66L08A CY ...

Page 28

... OL PULL-UP resistor ( -10µ Pull high resistor for RESET pad input “1” (Only in edge trigger type) Pull high resistor for RESET pad input “0” (Only in edge trigger type) No panel loaded. LCD pump frequency = 4k SH66L08A = -0.3mA = 0.3mA) ...

Page 29

... Frequency Variation ∆ F/F (RC) = 1.5V, GND = 0V 25°C, unless otherwise specified) A Min. Typ. Max. Unit µ 25°C, unless otherwise specified) A Min. Typ. Max. Unit - ± Conditions Reset current Conditions f = 32.768kHz OSC Include supply voltage and chip to chip variation OSC = 131kHz RC SH66L08A ...

Page 30

... Typical RC Oscillator Resistor vs. Frequency f 600 500 400 300 200 100 0 0 OSC Typical Voltage vs Frequency fosc 1.2 1.4 1.6 Voltage ( 1.5V) DD OSC Typical RC Oscillator Resistor vs. Frequency f 500 1000 1500 Typical RC Oscillator Resistor (komh) 30 SH66L08A 1 1.5V) OSC DD 2000 2500 3000 ...

Page 31

... Application Circuits (For reference only) SH66L08A chip substrate connects to system ground. AP1: (1) Operating voltage: 1.5V (2) Oscillator: RC: 131kHz (Code Option) (3) LCD: 3V, 1/3 duty, 1/2 bias, PORTD used as segment. (4) PORTA - C: I/O Solar Battery LED 5 - 500KΩ LCD 0.1uF CUP1 VP2 PORTA 0.1uF VP1 SH66L08A OSCI 1.8MΩ ...

Page 32

... CUP1 287.5 CUP2 402.5 VP2 517.5 VP1 637.5 COM1 760 COM2 760 COM3 760 COM4 760 SEG1 760 SEG2 760 SH66L08A Unit: µ -841 -935 -935 -935 -841 -935 -935 -935 -935 -935 -935 -935 -935 -802.5 -672.5 -547.5 -432.5 ...

Page 33

... SH66L08A Designation X SEG14 517.5 SEG15 402.5 SEG16 287.5 SEG17 172.5 SEG18 57.5 SEG19 -57.5 SEG20 -172.5 SEG21 -287.5 SEG22 -402.5 SEG23 -517.5 SEG24 -637.5 Y 935 935 ...

Page 34

... Ordering Information Part No. SH66L08AH Package CHIP FORM 34 SH66L08A ...

Page 35

... Data Sheet Revision History Version 2.0 Revised the description about the PORTB & PORTC and External interrupts. 1.0 Original Content 35 SH66L08A Date Mar. 2007 Jan. 2007 ...

Related keywords