sh66l16a SinoWealth Micro-Electronics Corp. Ltd, sh66l16a Datasheet

no-image

sh66l16a

Manufacturer Part Number
sh66l16a
Description
16k 4-bit Low Power Micro-controller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
Features
General Description
SH66L16A is a single-chip 4-bit micro-controller. This device integrates a SH6610C CPU core; RAM, ROM, Timer, Base Timer,
Alarm generator, LCD driver, I/O ports, and voltage tripler charge pump circuit. The SH66L16A is suitable for financial check
back calculator application.
SH6610C-based single-chip 4-bit micro-controller with
LCD driver
ROM: 16K X 16 bits
RAM: 2016 X 4 bits
Operation Voltage:
24 CMOS Bi-directional I/O Pins (including 12 shared with
4-Level Stack (Including Interrupts)
Powerful Interrupt Sources:
Oscillator (Code Option):
- 32 System Control Register
- 1872 Data Memory
- 448 bits LCD RAM
V
SEG/COM pins)
- External interrupt (Low active)
- Timer0 interrupt
- Base Timer interrupt
- PORTB & PORTC interrupts (Low active)
OSCX:
- RC oscillator:
OSC:
- Crystal oscillator: 32.768kHz
DD
= 1.2V - 1.7V (Typical 1.5V)
200kHz
16K 4-bit Low Power Micro-controller with LCD Driver
1
Base timer clock source (Code Option):
Instruction Cycle Time (4/f
Two Low Power Operation Modes: HALT And STOP
Reset
LCD Driver:
56SEG X 4COM (1/4 Duty, 1/3 Bias)
56SEG X 8COM (1/8 Duty, 1/4 Bias)
Built-in Voltage Tripler Charge Pump Circuit
Built-in Alarm Generator
Low power consumption
Read Rom Data Table function (RDT)
Bonding option for multi-code software
Available in CHIP FORM
OSC:
- Crystal Oscillator:
- RC oscillator:
OSCX:
- RC oscillator:
- Built-in Watchdog Timer (WDT) (Code Option)
- Built-in Power-on Reset (POR)
- Built-in Low Voltage Reset (LVR) (Code Option)
32.768kHz
32kHz
200kHz
OSC
)
SH66L16A
V1.0

Related parts for sh66l16a

sh66l16a Summary of contents

Page 1

... General Description SH66L16A is a single-chip 4-bit micro-controller. This device integrates a SH6610C CPU core; RAM, ROM, Timer, Base Timer, Alarm generator, LCD driver, I/O ports, and voltage tripler charge pump circuit. The SH66L16A is suitable for financial check back calculator application. 16K 4-bit Low Power Micro-controller with LCD Driver ...

Page 2

... SEG6 44 SEG5 43 SEG4 42 SEG3 41 SEG2 40 SEG1 39 COM1 38 COM2 37 COM3 36 COM4 35 COM5/PORTF.0 34 COM6/PORTF.1 33 COM7/PORTF.2 32 COM8/PORTF CUP1 SH66L16A ...

Page 3

... Interrupt Circuit Watchdog Timer PORTA (4 Bits) Low Voltage Reset PORTB (4 Bits) PORTC (4 Bits) PORTD (4 Bits) Power on Reset PORTE (4 Bits) PORTF (4 Bits) Timer0 Base Timer Alarm 3 SH66L16A RESET0 RESET1 OSCO OSCI OSCXI CUP4 - SEG1 - 48 COM1 - 4 PORTA.0/INT0 PORTA.1/BD PORTA.2/BD PORTA.3 PORTB PORTC ...

Page 4

... OSC output pin, connected to a crystal. (No output in RC mode) I OSCX input pin, connected to an external resistor Bit programmable I/O, External interrupt (PORTA.0) (Active low level) I/O PORTA.1 (BD) and PORTA.2 ( I/O Bit programmable I/O, Vector interrupt (Active low level) I/O Bit programmable I/O, Vector interrupt (Active low level) P: Power; 4 SH66L16A Description ) can be Alarm output BD ...

Page 5

... Bank 2 Bank 3 Bank 4 RAMB=0, B=3 RAMB=0, B=4 $180 - $1FF $200 - $27F Bank 10 Bank 11 Bank 12 RAMB=1, B=3 RAMB=1, B=4 $580 - $5FF $600 - $67F 5 SH66L16A (TBR, AC)). The and DPL (4-bit). The addressing Bank 5 Bank 6 RAMB=0, B=5 RAMB=0, B=6 $280 - $2FF $300 - $37F Bank 13 Bank 14 RAMB=1, B=5 ...

Page 6

... Bit2-0: PORTF, PORTE, PORTD input/output control register PECR PDCR R/W Bit3: Watchdog timer overflow flag/reset register (Write 1 to reset WDT) BNK1 BNK0 R/W Bit2-0: ROM Bank register 6 Remarks RESET 0 causes system reset RESET 1 causes system reset CS1, CS0: LCD display segment select register SH66L16A ...

Page 7

... SH66L16A ROM Space, ROM Space 0000 - 07FF 0000 - 07FF (BANK 0) (BANK 0) 3000 -37FF 3800 -3FFF (BANK 6) (BANK 7) ...

Page 8

... PACR.0 0000 PBCR.1 PBCR.0 0000 PCCR.1 PCCR.0 0000 AEC1 AEC0 0000 - - 00/1-- ## PECR PDCR 1000 BNK1 BNK0 -000 8 SH66L16A Reset Pin Reset WDT Reset 0000 0000 0000 0000 0/1000 # u000 0uuu 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ...

Page 9

... Reset” is issued. If the “ Low Voltage Reset selection” code option is equal to “ Disable ”, the LVRF flag, Bit2 of the system register $1D will be always cleared to 0 even when the value of V 4.2. Others Initial States Others Program Counter (PC) CY Accumulator (AC) Data Memory After any Reset $0000 Undefined Undefined Undefined 9 SH66L16A voltage is less than the LVR ...

Page 10

... System Clock and Oscillator SH66L16A has two on-chip oscillation circuits OSC and OSCX. The OSCX oscillator generates the basic clock pulses that provide the system clock to supply CPU and on-chip peripherals. If the “ System Clock selection” code option is equal 0,0 (200kHz RC as system clock with 32.768kHz Crystal for the Base Timer 0,1 (200kHz RC as system clock with 32kHz RC for the Base Timer 1,1 (200kHz RC as system clock (The Base Timer clock source will be fetched from the system clock used ...

Page 11

... Bit1: Alarm carrier frequency control register AF PAM R/W Bit2: LCD pump ON/OFF control register 1: LCD pump OFF Bit3: Port Pull-High Control register X X R/W Port Pull-high resistor disable (Power on initial R/W Port Pull-high resistor enable 11 SH66L16A Remarks V DD Weak Pull high V DD I/O Pad GND Remarks 0: LCD pump ON ...

Page 12

... Pull-high the PORTA.0 (Use external pull-high resistance or set PPULL to “1”). In order to correctly return from the external (PORTA.0) interrupt-processing subroutine, the low level applying on the PORTA.0 must be released before the relative IRQ flag clearing and IE resetting. Otherwise possible to reenter the active interrupt. IEP Falling Port Interrupt Edge Detector IRQP 12 SH66L16A ...

Page 13

... Timer SH66L16A has one 8-bit timer. 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 14

... R/W 4Hz R/W 8Hz R/W 16Hz R/W 32Hz 14 SH66L16A Remarks Clock Source 32kHz RC or 32.768kHz Crystal or 200kHz RC 32kHz RC or 32.768kHz Crystal or 200kHz RC 32kHz RC or 32.768kHz Crystal or 200kHz RC 32kHz RC or 32.768kHz Crystal or 200kHz RC 32kHz RC or 32.768kHz Crystal or 200kHz RC 32kHz RC or 32.768kHz Crystal or 200kHz RC 32kHz RC or 32.768kHz Crystal or 200kHz RC ...

Page 15

... The Example of using the Base Timer: Initial BTM = 0 (stop) HVL = 0 (disable) HVL = 1 (enable) BTM = 001 (0.5 Hz) BTH, BTL = 0 Warm Up BTM Interrupt? No Yes Warm Up Done HVL = 0 (reduce current) BTM = 1, 2.... Hz 15 SH66L16A ...

Page 16

... 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 8Hz 4Hz 2Hz 1Hz Alarm Output Waveform 16 SH66L16A Remarks ) BD Remarks ...

Page 17

... Interrupt Four interrupt sources are available on SH66L16A: - External interrupt (INT0 share with PORTA.0) - Timer0 interrupt - Base Timer interrupt - PORTB & PORTC interrupts (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 18

... SEG20 $34B SEG21 SEG21 $34C SEG22 SEG22 $34D SEG23 SEG23 $34E SEG24 SEG24 $34F SEG25 SEG25 $350 SEG26 SEG26 $351 18 SH66L16A Bit 3 Bit 2 Bit 1 COM8 COM7 COM6 SEG1 SEG1 SEG1 SEG2 SEG2 SEG2 SEG3 SEG3 SEG3 SEG4 SEG4 SEG4 SEG5 SEG5 ...

Page 19

... SEG50 $369 SEG51 SEG51 $36A SEG52 SEG52 $36B SEG53 SEG53 $36C SEG54 SEG54 $36D SEG55 SEG55 $36E SEG56 SEG56 $36F 19 SH66L16A Bit 3 Bit 2 Bit 1 COM8 COM7 COM6 SEG27 SEG27 SEG27 SEG28 SEG28 SEG28 SEG29 SEG29 SEG29 SEG30 SEG30 SEG30 SEG31 SEG31 ...

Page 20

... SEG22 $331 SEG23 SEG23 $332 SEG24 SEG24 $333 SEG25 SEG25 $334 SEG26 SEG26 $335 SEG27 SEG27 $336 SEG28 SEG28 $337 20 SH66L16A Bit 3 Bit 2 Bit 1 COM4 COM3 COM2 SEG29 SEG29 SEG29 SEG30 SEG30 SEG30 SEG31 SEG31 SEG31 SEG32 SEG32 SEG32 SEG33 SEG33 ...

Page 21

... Bit 0 R/W AF PAM R/W Bit2: LCD pump ON/OFF control register X X R/W LCD pump R/W LCD pump OFF (Power on initial) Bit1 Bit0 R R/W Bit3: LCD display ON/OFF control register - - R/W LCD display ON (Power on initial R/W LCD display OFF Remarks Remarks SH66L16A ...

Page 22

... Select SEG49 - 52 as PORTD Select SEG53 - 56 as PORTE Select LCD display 8 com mode (Power on initial) Select LCD display 4 com mode Select COM5 - 8 as PORTF Data memory address range: 020H - 3FFH (Power on initial Data memory address range: 420H - 7FFH 22 SH66L16A Remarks ...

Page 23

... LCD display on (set PUMP OFF = 0 and DPL_OFF = 0 ) ....... LCD display off (set PUMP OFF = 0 and DPL_OFF = the "System Clock selectiom" code option is equal 1 1,1 23 SH66L16A Wake up (By RESET or other INT) STOP LCD pump off BTM = 000B Pump off (set PUMP OFF = 1 ...

Page 24

... Frame VP1 VP2 VP4 VP5 GND 1/2 Frame VP1 VP2 VP4 VP5 GND VP1 VP2 VP4 VP5 GND VP1 VP2 VP4 VP5 GND Select VP1 VP3 V DD GND VP1 VP3 Light V DD GND VP1 VP3 Unlight V DD GND 24 SH66L16A Unselect Unlight Unlight ...

Page 25

... In the HALT mode, SH66L16A can be waked up if any interrupt occurs. In the STOP mode, SH66L16A can be waked up if port interrupt occurs. SH66L16A can also be waked up by the Base Timer interrupt if the OSC oscillator and the Base Timer have been enabled before entering the STOP mode with the “ System Clock selection” ...

Page 26

... Period 0.122ms 20ms/125ms Internal SCALER_1 /1024 /1 Prescaler divide ratio 1:1 1:2 1:4 1:8 1:32 Prescaler divide ratio 1:1 1:2 1:4 1:8 1:32 26 Remarks TM0 PRESCALER / /32 /128 /512 /2048 Final WDT Time out period Timer-out period 20.48ms 40.96ms 81.92ms 163.84ms 655.36ms Timer-out period 16ms 32ms 64ms 128ms 512ms SH66L16A ...

Page 27

... WDT’s time-out period will also be changed. Prescaler divide ratio 1:1 1:2 1:4 1:8 1:32 1:128 1:512 1:2048 (Power on initial) Prescaler divide ratio 1:1 1:2 1:4 1:8 1:32 1:128 1:512 1:2048 (Power on initial) Condition 27 SH66L16A Timer-out period 20.48ms 40.96ms 81.92ms 163.84ms 655.36ms 2,621ms 10,484ms 41,936ms Timer-out period 125ms 250ms 500ms 1s 4s 16s 64s 256s ...

Page 28

... CS1 CS0 Default bonding option bond to GND bond bond to GND & B0 bond PCB PCB SH66L16A Remarks Remarks DD DD GND GND ...

Page 29

... R (Reset triggering type selection RESET level triggering (Low active) (Default RESET edge triggering (Falling edge) (d) P (PORTA input only selection Disable (Default Enable (e) L (Low Voltage Reset selection Disable LVR (Default Enable LVR (f) S (Single solar supply application selection Disable (Default Enable 29 SH66L16A ...

Page 30

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

Page 31

... ( ( ( ( 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 SH66L16A CY ...

Page 32

... OSC µ A 0.5 All output pins unloaded (STOP mode), LCD off V = 1.5V (Excluding bonding option current) DD Chip current when RESET is available, V µ (Excluding bonding option current) µ panel loaded. LCD pump frequency = 4k 32 SH66L16A Conditions ≤ 200kHz = 1. 1.5V DD ...

Page 33

... Conditions = 1.5V DD INT , , TEST (Schmitt trigger input) RESET = 1. 1.5V DD INT , , TEST (Schmitt trigger input) RESET = 1. -0.3mA 0.3mA 1. -6µ -12µ 0.3mA 0.3mA 1. 6µ 12µ 1. 1.5V DD Conditions = 200kHz OSCX SH66L16A = 1. 1.5V = -10 µ ...

Page 34

... RC Oscillator Characteristics Graphs (for reference only) RC Oscillator Characteristics Graphs (OSCX Resistor vs. Frequency) 600 500 400 300 200 100 Oscillator Characteristics Graphs (OSC Resistor vs. Frequency) 45.0 40.0 35.0 30.0 25.0 20.0 1 1.5V DD 200 350 500 650 800 Resistor (Ω 1.5V DD 1.6 1.7 1.8 1.9 Resistor (MΩ) 34 950 1100 1250 1400 2 2.1 2.2 2.3 2.4 SH66L16A ...

Page 35

... RC Oscillator Characteristics Graphs (200kHz RC Operating Voltage vs. Frequency) 202 201 200 199 198 197 1 RC Oscillator Characteristics Graphs (32kHz RC Operating Voltage vs. Frequency) 32.5 32.0 31.5 31.0 30.5 30 560 kΩ 1.1 1.2 1.3 1.4 1 2.0 MΩ 1.1 1.2 1.3 1.4 1 SH66L16A 1.6 1.7 1.8 1.9 1.6 1.7 1.8 1.9 ...

Page 36

... D D 560kohm PORTB OSCXI OSCI Crystal OSCO GND TEST LCD 0.1µ CUP1, 2 CUP3 PORTA.1 V2 PORTA.2 V3 PORTD V4 PORTE V5 PORTC RESET1 SH66L16A RESET0 V DD 560Khom PORTB OSCXI OSCO 2.0Mhom OSCI PORTF GND TEST 36 0.1µF BUZZER 20 KEY 0.1µF BUZZER 20 KEY SH66L16A ...

Page 37

... COM6 1540 35 COM5 1540 36 COM4 1540 37 COM3 1540 38 COM2 1540 39 COM1 1540 40 SEG1 1540 41 SEG2 1540 42 SEG3 1540 SH66L16A unit: µm Y -1157.5 -1252.5 -1252.5 -1252.5 -1252.5 -1177.5 -1032.5 -892.5 -752.5 -632.5 -517.5 -402.5 -287.5 -172.5 -57.5 57.5 172.5 287.5 402.5 517.5 632.5 752.5 ...

Page 38

... SH66L16A Designation X SEG30 -1160 SEG31 -1280 SEG32 -1410 SEG33 -1540 SEG34 -1540 SEG35 -1540 SEG36 -1540 SEG37 -1540 SEG38 -1540 SEG39 -1540 SEG40 -1540 SEG41 ...

Page 39

... Ordering Information Part No. SH66L16AH Package Chip form 39 SH66L16A ...

Page 40

... Data Sheet Revision History Revision No. 1.0 Original History 40 SH66L16A Date Jan. 2008 ...

Related keywords