sh66k51a SinoWealth Micro-Electronics Corp. Ltd, sh66k51a Datasheet

no-image

sh66k51a

Manufacturer Part Number
sh66k51a
Description
2k 4-bit Micro-controller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
General Description
SH66K51A is dedicated to infrared remote control transmitter with LCD applications. This chip integrates the SH6610C 4-bit
CPU core with SRAM, ROM, one 8-bit timer, one base timer, LCD driver, programmable input/output driving buffers, carrier
synthesizer, and voltage regulator. This chip integrates with a dual-oscillator to enhance the total chip performance.
Features
SH6610C-based single-chip 4-bit micro-controller
ROM: 2K X 16 bits
RAM: 128 X 4 bits (Data RAM)
Operation voltage: 1.8V - 3.6V (Typically 3.0V)
18 CMOS bi-directional I/O pins
4-level stack (including interrupts)
One 8-bit auto re-load timer/counter
One 8-bit base timer
Warm-up timer for power-on reset
Powerful interrupt sources:
- Internal interrupt (Timer0).
- Internal interrupt (Base Timer)
- External interrupts: PORTB/C (falling edge).
Dual clock source
OSC (code option):
OSCX:
- Crystal oscillator: 32.768kHz
- RC oscillator: 131kHz
- Ceramic/Crystal oscillator: 400k - 4MHz
- Built-in RC: (4MHz ± 2%)
2K 4-bit Micro-controller with LCD Driver
1
Instruction cycle time (4/f
Two low power operation modes: HALT And STOP
Reset
LCD driver:
3 X 29 dots (1/3 duty 1/3 bias)
4 X 28 dots (1/4 duty 1/3 bias)
5 X 27 dots (1/5 duty 1/3 bias)
6 X 26 dots (1/6 duty 1/3 bias)
Built-in in LCD voltage regulator
Built-in low voltage reset (LVR)
Built-in low power detect (LPD)
Built-in pull-high resistor for reset pin (code option)
Built-in remote control programmable carrier
synthesizer
Chip form, 64-pin LQFP, 44-pin QFP package
- Built-in watchdog timer (code option)
- Built-in power-on reset (POR)
- Built-in low voltage reset (LVR)
OSC
)
SH66K51A
V2.3

Related parts for sh66k51a

sh66k51a Summary of contents

Page 1

... Built-in RC: (4MHz ± 2%) General Description SH66K51A is dedicated to infrared remote control transmitter with LCD applications. This chip integrates the SH6610C 4-bit CPU core with SRAM, ROM, one 8-bit timer, one base timer, LCD driver, programmable input/output driving buffers, carrier synthesizer, and voltage regulator. This chip integrates with a dual-oscillator to enhance the total chip performance. ...

Page 2

... SH66K51A 55 LQFP64 SH66K51A 34 33 COM1 32 31 VP3 30 VP2 29 VP1 28 VSUB 27 CUP1 26 CUP2 25 RESET 24 TEST REM ...

Page 3

... SEG8/PORTD.3 SEG7/PORTD.2 SEG6/PORTD.1 SEG5/PORTD.0 SEG4/PORTC.3 SEG3/PORTC.2 SEG2/PORTC.1 SEG1/PORTC.0 PORTB.3 PORTB SH66K51A 39 QFP SH66K51A 22 COM1 21 VP3 20 VP2 19 VP1 18 VSUB 17 CUP1 16 CUP2 15 RESET 14 TEST 13 REM ...

Page 4

... OSCXI/PORTE.0 OSCO OSCI SH66K51A SH66K51A 43 SEG15 42 41 SEG16 40 SEG17 39 SEG18 38 SEG19 37 SEG20 36 SEG21 35 SEG22 34 SEG23 33 SEG24 32 SEG25 31 SEG26 30 SEG27/COM6 29 SEG28/COM5 28 COM4/SEG29 27 COM3 25 ...

Page 5

... PORTE (2 Bits) LCD Power Interrupt Circuit LCD Remot Control PORTC (4 Bits) Carrier Synthesizer PORTD (4 Bits) PORTA (4 Bits) PORTB (4 Bits) Timer0 Base Timer REM Output 5 SH66K51A RESET OSCO OSCI OSCXO/PORTE.1 OSCXI/PORTE.0 VSUB CUP[2:1] VP[3:1] SEG[9:26] COM[1:3] SEG[27:29]/COM[6:4] SEG[4:1]/PORTC [3:0] SEG[8:5]/PORTD [3:0] PORTA [3:0] ...

Page 6

... Bit programmable I/O pins, vector interrupt (Active falling edge) LCD segment Shared with bit programmable I/O pins, vector interrupt (Active falling edge) LCD segment Shared with bit programmable I/O pins LCD Segment LCD Segment 29, 28, 27. Shared with LCD Common LCD Common SH66K51A Descriptions ...

Page 7

... Bit programmable I/O pins, vector interrupt (Active falling edge) LCD Segment Shared with bit programmable I/O pins, vector interrupt (Active falling edge) LCD Segment Shared with bit programmable I/O pins LCD Segment LCD Segment 29, 28, 27. Shared with LCD Common 4, 5 and 6 LCD Common SH66K51A Descriptions ...

Page 8

... The stack nesting includes both subroutine calls and interrupts requests. 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. 8 SH66K51A ...

Page 9

... Bit2: Set PORTC as LCD segment1 - 4 Bit3: Set PORTD as LCD segment5 - 8 Control PORTA - PORTD input and output access enable PDIN R/W or disable. Used in key matrix’s application Control PORTE input and output access enable or disable. - PEIN R/W Used in key matrix’s application PACR.0 R/W PORTA input/output control 9 SH66K51A Remarks ...

Page 10

... R/W Carrier high level timer load data register CFH5 CFH4 R/W Carrier high level timer load data register - - - Reserved Instruction JMP* JMP* JMP* Jump to Timer0 interrupt service routine JMP* Jump to Base timer interrupt service routine JMP* Jump to PORTB/C interrupt service routine 10 SH66K51A Remarks Remarks Jump to Reset service routine Reserved ...

Page 11

... PBCR.1 PBCR.0 PCCR.1 PCCR.0 PDCR.1 PDCR.0 PECR.1 PECR WDT.1 WDT CFL1 CFL0 CFL5 CFL4 CFH1 CFH0 CFH5 CFH4 11 SH66K51A WDT Reset -000 -000 -000 -000 -000 -uuu 0000 uuuu xxxx xxxx xxxx xxxx ---0 ---0 -0-- -u-- 0000 0000 0000 0000 0000 0000 ...

Page 12

... Others Initial States: Others Program Counter (PC) CY Accumulator (AC) Data Memory After any Reset $000 Undefined Undefined Undefined 12 SH66K51A ...

Page 13

... Circuit Configuration SH66K51A has two on-chip oscillation circuits OSC and OSCX. OSC is a low frequency crystal (Typ. 32.768kHz (Typ. 131kHz) determined by the Code Option. This is designed for low frequency operation. OSCX also has two types: ceramic/crystal (Typ. 4MHz) or internal RC (4MHz ± 2%) determined by system register ...

Page 14

... Crystal C2 C1 Ceramic C2 Recommend Type 100pF ZT 455E - ZT 3.58M 4M* Recommend Type 12.5pF DT 38 (φ3x8 15pF 49S-4.000M-F16E 8 - 15pF 49S-8.000M-F16E 14 SH66K51A Manufacturer JingBo Electronic Shanghai JingBo Electronic Shanghai JingBo Electronic Shanghai Manufacturer KDS JingBo Electronic Shanghai JingBo Electronic Shanghai ...

Page 15

... Turn-on OSCX oscillation 1: select OSCX as system clock 1: OSCX set as RC oscillator, and set OSCXI/OSCXO as PORTE OSCX turn off OSCX turn on Low frequency operation Warm-up time Switch from OSCX to OSC Timing of System Clock Switching 15 SH66K51A Remarks High frequency operation Switch from OSC to OSCX ...

Page 16

... I/O PORT The SH66K51A provides 18 bi-directional I/O ports. The PORT data put in register $08 - $0C. The PORT control register ($18 - $1C) controls the PORT as input or output. Each I/O port has an internal pull-high resistor, which is controlled by PULLEN of $13 and the data of the port, when the PORT is used as input. ...

Page 17

... Ports as Key Matrix SH66K51A’s I/O can be made up of key matrix and PORTC - PORTD can use as LCD segment output at the same time. In this application, user should control the scanning key matrix sharing the timing of LCD display. Only when user scans the key matrix that all the Ports are used as I/O ...

Page 18

... Used in key matrix’s application Control PORTE input and output access enable or - PEIN R/W disable. Used in key matrix’s application Falling Edge Detector PORT Interrupt Block Diagram to GND emerges on the port, the following must SH66K51A Remarks to GND would DD IEP Port Interrupt IRQP DD in PBC ...

Page 19

... Low nibble followed. Prescaler Divide Ratio SH66K51A Load Reg. L Load Reg. H 8-bit timer counter Latch Reg. L Clock Source System clock System clock System clock System clock System clock System clock System clock System clock ...

Page 20

... R/W Enable the base timer Disable the base timer, clear base timer counters X X R/W and keep them as $00 Prescaler Ratio / /16 MPX / /16 4Bit Scaler 20 SH66K51A Remarks Clock Source f /8 OSC f /32 OSC f /64 OSC f /128 OSC 8 Bit base timer counter reset ...

Page 21

... Interrupt Three interrupt sources are available on SH66K51A: - Timer0 overflow interrupt - Base timer overflow interrupt - Port’s falling edge interrupt (PBC) 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. Those flags are cleared to “ ...

Page 22

... PORTD as LCD SEG Bit 1 Bit 0 R/W DUTY1 DUTY0 R/W Bit0, 1: LCD duty control 0 0 LCD driver = 1/4 duty, 1/3 bias 0 1 LCD driver = 1/3 duty, 1/3 bias 1 0 LCD driver = 1/5 duty, 1/3 bias 1 1 LCD driver = 1/6 duty, 1/3 bias = 32.768kHz/131kHz RC) 22 SH66K51A Remarks Remarks Remarks 42.7Hz 34.1Hz 32Hz 42.7Hz ...

Page 23

... SEG9 $317 SEG10 SEG10 $318 SEG11 SEG11 $319 SEG12 SEG12 $31A SEG13 SEG13 $31B SEG14 SEG14 $31C SEG15 SEG15 - 23 SH66K51A Bit3 Bit2 Bit1 COM4 COM3 COM2 SEG15 SEG15 SEG15 SEG16 SEG16 SEG16 SEG17 SEG17 SEG17 SEG18 SEG18 SEG18 SEG19 SEG19 SEG19 ...

Page 24

... SEG18 SEG18 $331 SEG19 SEG19 $332 SEG20 SEG20 $333 SEG21 SEG21 $334 SEG22 SEG22 $335 SEG23 SEG23 $336 SEG24 SEG24 $337 SEG25 SEG25 $338 SEG26 SEG26 $339 SEG27 SEG27 $33A 24 SH66K51A Bit3 Bit2 Bit1 - - - COM5 - - - SEG1 - - - SEG2 - - - SEG3 - - - SEG4 - - - SEG5 - - - ...

Page 25

... SEG18 $331 SEG19 SEG19 $332 SEG20 SEG20 $333 SEG21 SEG21 $334 SEG22 SEG22 $335 SEG23 SEG23 $336 SEG24 SEG24 $337 SEG25 SEG25 $338 SEG26 SEG26 $339 25 SH66K51A Bit3 Bit2 Bit1 - - COM6 COM5 - - SEG1 SEG1 - - SEG2 SEG2 - - SEG3 SEG3 - - SEG4 SEG4 - - SEG5 ...

Page 26

... Bit 2 $07 - LCDON When LCD is off, COM & SEG output GND in LCD application. SH66K51A built in a voltage regulator and it can generate a stable voltage for LCD when V The following is the application diagram for LCD power circuit LCDON Bit 1 Bit 0 R R/W Bit2: Set LCD display on ...

Page 27

... Bit3: Port pull high enable control REMO W Bit0: REMO output data - REM R Bit0: REM pin output status Prescaler Divide Ratio 11 System clock/2 9 System clock/2 7 System clock/2 5 System clock/2 3 System clock/2 2 System clock/2 1 System clock/2 0 System clock/2 27 SH66K51A Remarks Ratio N 2048 512 128 ...

Page 28

... High level timer load data register CARRIER SYNTHESIZER Remote Control Functional Block Diagram CFL CFH $EF $F8 $EF $F7 $F2 $F3 $EB $F9 $FE $FF $FE $FF $FE $FF 28 SH66K51A Remarks Carrier REM output REMO Carrier Duty Carrier Frequency 8/25 ≈ 1/3 40.00kHz 9/26 ≈ 1/3 38.46kHz 13/27 ≈ 1/2 37.04kHz 7/28 = 1/4 35.71kHz 1/3 = 1/3 40.00kHz 1/3 = 1/3 37.92kHz 1/3 = 1/3 ...

Page 29

... MODIFY HIGH&LOW DATA REGISTER CARRIER OUTPUT OUTPUT OUTPUT HIGH HIGH LEVEL OUTPUT LEVEL OUTPUT LOW LEVEL n1Dec = ($1E,$1D) Hex n2Dec = ($1C,$1B) Hex REM (255- n1)clock LOW interval LEVEL carrier wave period Carrier Synthesize Wave 29 SH66K51A (255- n2)clock interval ...

Page 30

... Watchdog timer-out period = Watchdog timer-out period = Watchdog timer-out period = Watchdog timer-out period = watchdog timer overflow reset X X Watchdog timer overflow = 3V SH66K51A Remarks Bit0: 2.3V LPD flag Remarks 17 /f OSC 15 /f OSC 13 /f OSC 11 /f OSC 10 /f OSC ...

Page 31

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

Page 32

... Function AC < AC, Mx < < AC, Mx < ⊕ AC, Mx < AC, Mx < AC, Mx <- Mx & I Function AC, Mx <- Decimal adjust for add AC, Mx <- Decimal adjust for sub 32 SH66K51A Flag Change Flag Change CY CY ...

Page 33

... TBR <- hhhh, AC <- lll CY, PC < <- X (Include p) PC <- (PC11-PC8) (TBR) (AC) No Operation Accumulator Carry flag Data memory bbb ROM page Stack TBR 33 SH66K51A Function Flag Change AC < <- AC Function Flag Change PC <- ST; I Immediate data ⊕ Logical exclusive OR | Logical OR & ...

Page 34

... 0 GND + 0 GND + 0 kΩ 34 SH66K51A Condition 30kHz ≤ f ≤ 4MHz OSC 30kHz ≤ f ≤ 4MHz OSC 30kHz ≤ f ≤ 4MHz OSC f = 4MHz, (OSCX as system clock) OSCX All output pins unloaded, Execute NOP instruction. V =3. 32.768kHz crystal, OSCX off OSC All output pins unloaded (HALT mode), LCD on, without LCD panel, WDT on ...

Page 35

... A Symbol Min. Typ. Max. Unit OST f 3.92 4 4.08 MHz OSCX Condition Connecting a 200kΩ resistor between VP2 and GND. Without LCD panel load. Condition Oscillator = 32.768kHz V = 2.0 - 3.6V +5℃ to +45℃ SH66K51A ...

Page 36

... Typical RC Oscillator Resistor vs. Frequency: 350 300 250 200 150 100 (2) Temperature vs. Built-in RC Oscillator Frequency: 4.03 4.01 3.99 3.97 3.95 3.93 3.91 3.89 Typical RC Oscillator Resistor vs. Frequency (V 500 1000 1500 Typical RC Oscillator Resistance: R Temperature vs. Built-in RC frequency (V - Temperature (℃) 36 SH66K51A = 3V) DD 2000 2500 3000 (kΩ) OSC = 2.0V ...

Page 37

... Temperature vs. Built-in RC frequency (V 4.09 4.07 4.05 4.03 4.01 3.99 3.97 3.95 3.93 - Temperature (℃) Temperature vs. Built-in RC frequency (V 4.10 4.08 4.06 4.04 4.02 4.00 3.98 3.96 3.94 3.92 - Temperature (℃ 3.0V 3.6V SH66K51A ...

Page 38

... GND LCD COM1-COM4/SEG29 PORTC.0 SEG5-SEG28 PORTC.1 PORTC.2 PORTC.3 PORTB.0 PORTB.1 PORTB.2 PORTB.3 PORTE.0 PORTE.1 REM PORTA.0 PORTA.1 PORTA.2 PORTA.3 RF: Temperature Sensor R1, 2: Reference Resistor R : Option Resistor OP C1, C2: 12pF (for reference only) 38 SH66K51A V DD 1.6Ω 47uF 2uF R OP ...

Page 39

... X 24 LCD PORTC.0 COM1-COM4/SEG29 PORTC.1 SEG5-SEG28 PORTC.2 PORTC.3 PORTB.0 PORTB.1 PORTB.2 PORTB.3 REM PORTA.0 PORTA.1 PORTA.2 PORTA.3 RF: Temperature Sensor R1, 2: Reference Resistor R : Option Resistor OP C1, C2: 12pF(for reference only) C3, C4: 30pF(for reference only) 39 SH66K51A V DD 1.6Ω 47uF 2uF R OP ...

Page 40

... SEG10 179.55 SEG9 64.55 SEG8/PORTD.3 -50.45 SEG7/PORTD.2 -165.45 SEG6/PORTD.1 -280.45 SEG5/PORTD.0 -395.45 SEG4/PORTC.3 -510.45 SEG3/PORTC.2 -625.45 SEG2/PORTC.1 -740.45 SEG1/PORTC.0 -777 SH66K51A unit: µ -484 -367 -250 -133 -16 101 218 335 452 569 686 803 920 1040 1051 1051 1051 1051 1051 ...

Page 41

... Ordering Information Part No. SH66K51AH SH66K51AP SH66K51AF Package Chip Form LQFP 64-Lead QFP 44 41 SH66K51A ...

Page 42

... BASIC 0.394 BASIC 0.020 BASIC 0.472 BASIC 0.472 BASIC 0.024 ± 0.006 0.039 REF 42 SH66K51A DETAIL F Dimensions in mm 1.60 (MAX) 0.05 (MIN), 0.15 (MAX) 1.40 ± 0.05 0.22 ± 0.05 0.09 (MIN), 0.20 (MAX) 10.00 BASIC 10 ...

Page 43

... HE 0.035+0.002 L -0.006 L1 0.063 Typ. y 0.004 Max. θ 0° ~ 7° DETAIL F Dimensions in mm 2.70 Max. 0.25 Min. 0.50Max. 2.00+0.2 -0.1 0.30 Typ. 0.15 ± 0.05 10.00 ± 0.10 10.00 ± 0.10 0.80 Typ. 12.40 NOM. 12.40 NOM. 13.20 ± 0.20 13.20 ± 0.20 0.88+0.05 -0.15 1.60 Typ. 0.10 Max. 0° ~ 7° SH66K51A unit: inch/mm ...

Page 44

... Data Sheet Revision History Version 2.3 Updated Regulator Output Voltage (Vp2 Output Voltage) 2.2 Append Pin Configuration (QFP44 Package) or QFP44 Outline Dimensions 2.1 Updated “Electrical Characteristics” 2.0 Updated RC Oscillator Characteristics Graphs at Page35 1.0 Original Content 44 SH66K51A Date Feb. 2008 Oct. 2007 Sep. 2007 Aug. 2007 Jul. 2005 ...

Related keywords