The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

4-bit Microcontroller with Driver SH6610C-based single-chip 4-bit


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



SH66L16
4-bit Microcontroller with Driver
SH6610C-based single-chip 4-bit microcontroller with driver ROM: bits (bank switched) RAM: bits (system control register, bank switched data memory RAM) Operation Voltage Range: 1.2V 1.7V CMOS pins level subroutine nesting (including interrupts) 8-bit timer with pre-divider circuit priority interrupt sources: External interrupt (falling edge) Base Timer interrupt Timer0 interrupt Port Port interrupt (falling edge) System clock source: 32.768KHz crystal selected code option. (Refer CODE OPTION) Instruction cycle time: 4/200KHz (20µs) 200KHz 4/32.768KHz (122µs) 32.768KHz crystal Base timer clock source: 32.768KHz crystal oscillator selected code option. (Refer CODE OPTION) driver: Maximum: (1/8 duty, bias) common shared with PORTF) segment shared with PORTD, Minimum: (1/4 duty, bias) Built-in voltage treble charge pump circuit Built-in alarm generator (carrier frequency: 2KHz 4KHz. selected system register) power operation modes: HALT STOP mode power consumption Bonding option multi-code software Watch timer Available CHIP FORM
General Description
SH66L16 single-chip microcontroller integrated with SH6610C core, SRAM, timer, alarm generator, driver, ports, voltage pump program ROM.
Configuration
SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 PORTD0 SEG50 PORTD1 SEG51 PORTD2 SEG52 PORTD3 SEG53 PORTE0 SEG54 PORTE1 SEG6 SEG5 SEG4 SEG3 SEG2 SEG1 COM1 COM2 COM3 COM4 COM5 PORTF0 COM6 PORTF1 COM7 PORTF2 COM8 PORTF3 CUP1
SH66L16
V2.0
SH66L16
Block Diagram
TEST OSCXI OSCI OSCO
(16K
8-BIT TIMER PORTB CORE PORTS PORTC PORTA.0 (INT) PORTA.1 (BD) PORTA.2 (BD) PORTA.3 COM1 COM8 COMMON DRIVERS (COM5 shared with PORTF) SEG1 SEG56 (SEG49 shared with PORTD PORTE) CUP1 CUP2 CUP3 CUP4
PORTA EXTERNAL
RESET1
SEGMENT DRIVERS ALARM GENERATOR
RESET0
VOLTAGE TREBLE CHARGE BUMP CIRCUIT
Description (Total pads mask type)
Designation SEG1 COM1 CUP1 CUP4 TEST RESET1 RESET OSCI OSCO OSCXI PORTA0 PORTB0 PORTC0 Description Segment signal output display SEG49 switch ports (PORTD Common signal output display COM5 switch port (PORTF) Power supply driver Connection voltage treble capacitor Test internally pull-down connection user) reset input (level edge triggering selected code option, active falling edge active, internal pull-high) reset input (level edge triggering selected code option, active falling edge active, internal pull-high) Power supply Ground Bonding option (internally pull-low) Bonding option (internally pull-high) 32.768KHz X'tal input 32.768KHz X'tal output 200KHz Oscillator input programmable I/O, PA.0 could external interrupt input PA.1, PA.2 could buzzer output PA.1 (BD), PA.2 programmable Vector interrupt (Active falling edge) programmable Vector interrupt (Active falling edge)
SH66L16
Functional Description
contains following functional blocks: Program Counter, Arithmetic Logic Unit (ALU), Carry Flag, Accumulator, Table Branch Register, Data Pointer (INX, DPH, DPM, DPL), Stacks. 1.1. (Program Counter) Program Counter used address program ROM. consists 12-bits: Page Register (PC11) Ripple Carry Counter (PC10, PC9, PC8, PC7, PC6, PC5, PC4, PC3, PC2, PC1, PC0). program counter normally increases (+1) with every execution instruction except following cases: When executing jump instruction (such JMP, BA0, BAC); When executing subroutine call instruction (CALL); When interrupt occurs; When chip INITIAL RESET. program counter loaded with data corresponding each instruction. unconditional jump instruction (JMP) 1-bit page register higher than 1.2. performs arithmetic logic operations. provides following functions: Binary addition/subtraction (ADC, SBC, ADD, SUB, ADI, SBI) address words bits program area from $0000 $3FFF. Program Counter only address program ROM. address program ROM, bank switch. There area from address $0000 through $0004 that reserved special interrupt service routines, such starting vector address. Address 0000H 0001H 0002H 0003H 0004H Instruction instruction instruction instruction instruction instruction Remarks Jump RESET service routine Jump External interrupt service routine Jump TIMER0 service routine Jump Base Timer service routine Jump service routine (PORTB, Decimal adjustment addition/subtraction (DAA, DAS) Logic operations (AND, EOR, ANDIM, EORIM, ORIM) Decision (BA0, BA1, BA2, BA3, BAZ, BAC) Logic Shift (SHR) Carry Flag (CY) holds overflow, which arithmetic operation generates. During interrupt service call instruction, carry flag pushed into stack restored back from stack RTNI instruction. unaffected RTNW instruction. 1.3. Accumulator Accumulator 4-bit register holding results arithmetic logic unit. conjunction with ALU, data transfers performed between accumulator system register, RAM, data memory. 1.4. Stack group registers used save contents (10-0) sequentially with each subroutine call interrupt. organized bits levels. saved levels maximum allowed subroutine calls interrupts. contents Stack returned sequentially with return instructions (RTNI/RTNW). Stack operated first-in, last-out basis. This 4-level nesting includes both subroutine calls interrupts requests. Note that program execution enter abnormal state number calls interrupt requests exceeds bottom stack will shifted out.
*JMP instruction replaced instruction.
SH66L16
Bank Switch Mapping Program Counter (PC11 PC0) only address space. Bank switch technique used extend address space. lower addressing space maps lower space (BANK0). upper addressing space maps seven banks (BANK upper ROM. (According Bank Register $1F) bank switch mapping follows: Address 000-7FF Space, $1FH 0000 07FF (BANK 0800-0FFF (BANK Space, $1FH 0000 07FF (BANK 1000 -17FF (BANK Space, $1FH 0000 07FF (BANK 1800 -1FFF (BANK Space, $1FH 0000 07FF (BANK 2000 -27FF (BANK Space, $1FH 0000 07FF (BANK 2800 -2FFF (BANK Space, $1FH 0000 07FF (BANK 3000 -37FF (BANK Space, $1FH 0000 07FF (BANK 3800 -3FFF (BANK
Table Data Reference Table Data stored program memory referenced using Table Branch (TJMP) Return Constant (RTNW) instructions. Table Branch Register (TBR) Accumulator placed offset address program ROM. TJMP instruction branch placed into address ((PC11 PC8) (TBR, A)). address determined RTNW return look-up value into (TBR, code bit7-bit4 placed into bit3-bit0 into Built-in contains general-purpose data memory, RAM, system register. following memory allocation map: $000 $01F: System register $020 $2FF, $370 $3FF $420 $7FF: Data memory (1872 bits, divided into banks) $300 $36F: space (112 bits) bank table: (RAMB: System Register $14H bit3) Bank Bank Bank Bank Bank Bank Bank Bank RAMB=0, RAMB=0, RAMB=0, RAMB=0, RAMB=0, RAMB=0, RAMB=0, RAMB=0, $020 $07F $080 $0FF $100 $17F $180 $1FF $200 $27F $280 $2FF $300 $37F $380 $3FF
Bank Bank Bank Bank Bank Bank Bank Bank RAMB=1, RAMB=1, RAMB=1, RAMB=1, RAMB=1, RAMB=1, RAMB=1, RAMB=1, $420 $47F $480 $4FF $500 $57F $580 $5FF $600 $67F $680 $6FF $700 $77F $780 $7FF
bank data instructions.
SH66L16
Configuration System Register: Address IRQX TL0.3 TH0.3 BTL.3 BTH.3 PA.3 PB.3 PC.3 PD.3 PE.3 PF.3 TBR.3 INX.3 DPL.3 PPULL IET0 IRQT0 TM0.2 BTM.2 TL0.2 TH0.2 BTL.2 BTH.2 PA.2 PB.2 PC.2 PD.2 PE.2 PF.2 TBR.2 INX.2 DPL.2 DPM.2 DPH.2 IEBT IRQBT TM0.1 BTM.1 TL0.1 TH0.1 BTL.1 BTH.1 PA.1 PB.1 PC.1 PD.1 PE.1 PF.1 TBR.1 INX.1 DPL.1 DPM.1 DPH.1 IRQP TM0.0 BTM.0 TL0.0 TH0.0 BTL.0 BTH.0 PA.0 PB.0 PC.0 PD.0 PE.0 PF.0 TBR.0 INX.0 DPL.0 DPM.0 DPH.0 Remarks Interrupt enable flags Interrupt request flags Timer0 Mode register (TM0) Bit3: RESET0 causes system reset RESET1 causes system reset HVL: Switch Base Timer into heavy load mode Base timer mode register (BTM) Timer0 load/counter register nibble Timer0 load/counter register high nibble Base Timer load/counter register nibble Base Timer load/counter register high nibble PORTA PORTB PORTC PORTD PORTE PORTF Table Branch Register Pseudo index register Data pointer nibble Data pointer middle nibble Data pointer high nibble Bit0: PA.1, PA.2 Alarm Bit1: Alarm carrier frequency select Bit2: display Bit3: Port pull-up control Bonding option CS1, CS0: display segment selection Bit2: display common selection Bit3: bank register Data table address data register Data table address data register Data table address data register Data table address data register PORTA output PORTB output PORTC output Alarm Envelope Control Reserved PORTD, output port Bit3: Watchdog timer reset/flag (write reset WDT) Bit1 Bank register 1000 -000 0000 0000 0000 0000 Power 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0100
RAMB RDT.3 RDT.7 RDT.11 RDT.15
RDT.2 RDT.6 RDT.10 RDT.14
RDT.1 RDT.5 RDT.9 RDT.13
RDT.0 RDT.4 RDT.8 RDT.12
0000
PA3OUT PA2OUT PA1OUT PA0OUT PB3OUT PB2OUT PB1OUT PB0OUT PC3OUT PC2OUT PC1OUT PC0OUT AEC3 AEC2 PFOUT BNK2 AEC1 PEOUT BNK1 AEC0 PDOUT BNK0
SH66L16
System Register $14H Address RAMB bond bond bond bond Select display segments Select display segments segment PORTE Select display segments segment PORTD segment PORTE Select display mode Select display mode common PORTF Data memory 3FFH Data memory 420H 7FFH Remark Bit0: Bonding option internal weak drive Bit1: Bonding option internal weak drive Bit2: display mode Bit3: BANK register Power-on 0000
SH66L16 Bonding Option
different bonding options possible user's needs. chip's program different program flows that will vary depending which bonding option used. readable contents will differ depending bonding.
SH66L16
System Register $13H Address Remark Bit0: PA.1, PA.2 ALARM output Bit1: Alarm carrier frequency select Bit2: display Bit3: Port Pull-up Control PORTA.1, PORTA.2 port PORTA.1, PORTA.2 ALARM output Alarm carrier frequency Alarm carrier frequency Control display Control display Port pull-up disable Port pull-up enable Power
PPULL
0100
System Register $15H $18H (ROM table register: RDT) Address RDT.3 RDT.7 RDT.11 RDT.15 RDT.2 RDT.6 RDT.10 RDT.14 RDT.1 RDT.5 RDT.9 RDT.13 RDT.0 RDT.4 RDT.8 RDT.12 Remarks Data table address data register Data table address data register Data table address data register Data table address data register Power 0000 0000 0000 0000
register consists 14-bit write-only address load register (RDT.13 RDT.0) 16-bit read-only table data read-out register (RDT.15 RDT.0). read table data, users should write table address register first (high nibble first then nibble), then after instruction, right data will into register automatically (write lowest nibble address into will start data read-out action). Programmer 16-bit data into address data allocation instruction "DW". (Reference UASM66 Cross Assembler User's guide)
SH66L16
System Register $1CH: Address AEC3 AEC2 AEC1 AEC0 Remark ALARM envelope control envelope envelope envelope envelope envelope Power 0000
Default carrier frequency 4KHz. selected 2KHz system register ($13H, bit1) activate ALARM function, first switch ALARM OUTPUT mode select carrier frequency. After setting equal proper envelope. When data writes into AEC, envelope counter will synchronized same time. programmer read back envelope from register make pattern changes needed. Read operation will affect alarm output waveform. programming alarm waveform shown below:
OUTPUT
Notice: Normally, Alarm carrier clock comes from Base Timer clock source condition code option When system clock selected 32.768KHZ(Crystal) code option (10), Alarm carrier clock will selected from system clock. When system clock selected 200KHz (RC) code option (11), Alarm carrier clock will also selected from system clock.
SH66L16
Driver driver contains controller, voltage generator, common signal pads, segment driver pads (1/8 duty, bias) common with segment (1/4 duty, bias). controller consists display data duty generator. data dual port that transfers data segment pads automatically without program control. SEG49 also used ports, selected bit1 bit0 system register $14. When SEG49 output port, users output Configuration Area: (Segments 1/8duty) Address COM4 300H 301H 302H 303H 304H 305H 306H 307H 308H 309H 30AH 30BH 30CH 30DH 30EH 30FH 310H 311H 312H 313H 314H 315H 316H 317H 318H 319H 31AH 31BH 31CH 31DH SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 COM3 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 COM2 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 COM1 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 338H 339H 33AH 33BH 33CH 33DH 33EH 33FH 340H 341H 342H 343H 344H 345H 346H 347H 348H 349H 34AH 34BH 34CH 34DH 34EH 34FH 350H 351H 352H 353H 354H 355H Address COM8 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 COM7 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 COM6 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 COM5 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 data write data PORTD address $0B, $0C. COM5 also used port (PORTF), selected bit2 system register $14. used data memory needed. When "STOP" instruction executed, will turned off, data same before executing "STOP" instruction. When off, both COMMON SEGMENT output low.
SH66L16
Configuration Area (Segments 1/8duty): (continued) Address COM4 31EH 31FH 320H 321H 322H 323H 324H 325H 326H 327H 328H 329H 32AH 32BH 32CH 32DH 32EH 32FH 330H 331H 332H 333H 334H 335H 336H 337H SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 SEG50 SEG51 SEG52 SEG53 SEG54 SEG55 SEG56 COM3 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 SEG50 SEG51 SEG52 SEG53 SEG54 SEG55 SEG56 COM2 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 SEG50 SEG51 SEG52 SEG53 SEG54 SEG55 SEG56 COM1 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 SEG50 SEG51 SEG52 SEG53 SEG54 SEG55 SEG56 356H 357H 358H 359H 35AH 35BH 35CH 35DH 35EH 35FH 360H 361H 362H 363H 364H 365H 366H 367H 368H 369H 36AH 36BH 36CH 36DH 36EH 36FH Address COM8 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 SEG50 SEG51 SEG52 SEG53 SEG54 SEG55 SEG56 COM7 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 SEG50 SEG51 SEG52 SEG53 SEG54 SEG55 SEG56 COM6 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 SEG50 SEG51 SEG52 SEG53 SEG54 SEG55 SEG56 COM5 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 SEG50 SEG51 SEG52 SEG53 SEG54 SEG55 SEG56
SH66L16
Connection Diagram
1.5V
4.5V PANEL DUTY BIAS
CUP1 CUP2 CUP3 CUP4 (4.5V) (3.375V)
LOGIC CIRCUITS
(3.0V) (2.250V) (1.5V) (1.125V)
2200pF
0.1µF
1.5V
4.5V PANEL DUTY BIAS
CUP1 CUP2 CUP3 CUP4 (4.5V)
LOGIC CIRCUITS
(3.0V) (1.5V)
2200pF
0.1µF
Notice: pump circuit frequency 4KHz regardless option system clock. Normally, driver clock comes from Base Timer clock source condition code option 01). Thus display even STOP mode. When system clock selected 32.768KHZ (Crystal) code option (10), driver clock will selected from system clock. this case, will turned while "STOP" instruction executing. When system clock selected 200KHz (RC) code option (11), driver clock will also selected from system clock. this case, will turned while "STOP" instruction executing.
SH66L16
System Register $13H: Address System Register $14H: Address Remark Bit2: display mode display mode COM5 PORTF Select display segments Select display segments segment PORTE Select display segments segment PORTD segment PORTE Power -000 Remark Bit2: display Power
Program Notice: Writing system register selecting display mode must under condition "LCD OFF". Otherwise will regarded illegal operation. Since pump circuits need more current while starting please confirm before turning Base Timer clock source oscillator condition code option (00). condition code option (01).
SH66L16
Waveform output waveform duty bias shown below.
32Hz COM1
COM2
COM3
SH66L16
output waveform duty bias shown below.
Select COMX SEGX Select Light SEGX Unselect Unlight Unlight Unlight Unselect
Notice: frame frequency 65.1Hz under condition code option (11) because driver clock fetched from system clock (200KHz (FLCD (system clock/6)/512) frame frequency 64Hz under condition code option (10) because driver clock fetched from system clock (32.768KHz Crystal) (FLCD system clock/512) frame frequency 64Hz under condition code option because driver clock fetched from Base Timer clock source (32.768KHz Crystal 32KHz (FLCD Base Timer clock/512)
SH66L16
Port SH66L16 CMOS ports: PORTA, PORTB PORTC. Each pins contains pull-up controllable program. PORT control register (PAXOUT, PBXOUT PCXOUT) controls ON/OFF buffer output buffer. These ports accessed read/write system register. users output value port time. PORTA,
register PULL PULL PMOS PULL PULL PMOS
PORT CONTROL REGISTER PORTA1, PORT DATA REGISTER
PORT CONTROL REGISTER PORT DATA REGISTER
PORTA0, PORTB PORTC
DATA INPUT
RD-INPUT
DATA INPUT
RD-INPUT
ALARM OUTPUT PORTA1, (for reference only) PORTA0, PORTB, PORTC (for reference only)
When (system register $13H bit0), PA.1 PA.2 used alarm outputs.
CS1,CS0 register PULL PULL PMOS register PULL PULL PMOS
PORT CONTROL REGISTER PORTD, PORT DATA REGISTER
PORT CONTROL REGISTER PORTF PORT DATA REGISTER
DATA INPUT
RD-INPUT
DATA INPUT
RD-INPUT
SEGMENT PORTD, (for reference only)
COMMON PORTF (for reference only)
Since PORTD, shared with segment49 common5 8,individually, when CS1& system register 01H, PD.0 PD.3 used seg49 When CS1& system register 00H, PD.0 PD.3 used seg49 PE.0 PE.3 seg53 When system register "0", PF.0 PF.3 used com5 Controlling Pull-up These ports contain pull-up controlled program. System register $13H bit3 (PPULL) controls ON/OFF pullup simultaneously. Pull also controlled port data registers (PA, each port also. (Write turn pull-up MOS.) pull-up turned ON/OFF individually. Port Interrupts PORTB, PORTC interrupts (falling edge) controlled Port register. means that interrupt request (IEx port high low) been touched that condition other input port bits high level. External PortA.0 shared external interrupt (active low).
SH66L16
Timer SH66L16 8-bit timer count-up, consisting 8-bit counter 8-bit pre-loaded register. addition, other base timer provides real time clock function timekeeper. Timer0 provides following functions: Programmable interval timer Read counter value Interrupt overflow from Timer0 Configuration Operation: Timer0 consists 8-bit write-only timer load register (TL0L, TL0H), 8-bit read-only timer counter (TC0L, TC0H). counter load register both have order digit high order digit. Writing data into timer load register (TL0L, TL0H) initialize timer counter. Load register programming: low-order digit should written first, then high-order digit. timer counter automatically loaded with contents load register when high order digit written counter counts overflow from $00. Timer Load Register: Since register would control physical READ WRITE operations. Table Timer0 Mode Register ($02) TM0.2 TM0.1 TM0.0 Prescaler Divide Ratio
Please follow these rules: Write Operation: nibble first High nibble update counter Read Operation: High nibble first nibble followed Timer0 Interrupt: timer overflow will generate internal interrupt request, when counter counts overflow from $00. interrupt enable flag enabled, then timer interrupt service routine will start. This also used wake from HALT mode. Timer0 programmed several different clock sources setting Timer Mode Register (TM0). Timer0 Mode Register: Timer Mode Registers (TM0) 4-bit registers used timer control shown Table Mode Register selects input pulse sources timer.
Clock Source System clock System clock System clock System clock System clock System clock System clock System clock
SH66L16
Base Timer Configuration Operation: Base timer generates different frequency interrupts real time clock based value register BTM, shown Table heavy load register, HVL, used switch 32.769K Crystal oscillator into heavy load mode that makes oscillation easier startup period more current needed. Table Base Timer Mode Register ($03) BTM.2 BTM.1 BTM.0 Interrupt Period Stop (initial) 0.5Hz 16Hz 32Hz Clock Source 32KHz 32KHz 32KHz 32KHz 32KHz 32KHz 32KHz 32KHz
achieve above interrupt periods, system register (BTL BTH) must both. Notice: Please enable 32.768K oscillator before turning since clock comes from Base Timer clock source condition code option (00). condition code option (01). example using Base Timer:
Initial (stop) (disable) (enable) (0.5 BTH, Warm BInterrupt? Warm Done
(reduce current)
Notice: Normally, condition code option 01), initial value Bregister 00H.It means that Base Timer controlled ON/OFF software writing BTM. Meanwhile, OSCI/OSCO (Crystal oscillator also turned ON/OFF this value. When system clock selected 32.768KHz (Crystal) code option (10), Bregister initial value 00H. means that Base Timer controlled ON/OFF software writing BTM. Bregister written system operation, device will stop 32.768KHz crystal oscillator. this case, clock source Alarm carrier driver will selected from system clock. When system clock selected 200KHz (RC) code option (11), Bregister initial value 00H. means that Base Timer controlled ON/OFF software writing BTM. Bregister written system operation, device will stop 200KHz oscillator. this case, clock source Alarm carrier driver will also selected from system clock.
SH66L16
Interrupt Four interrupt sources available SH66L16: External interrupt share with PA.0) Base time interrupt Timer0 interrupt Port's falling edge detection interrupt configuration system register $00H $01H: Address IRQX IET0 IRQT0 IEBT IRQBT IRQP Remarks Interrupt enable flags Interrupt request flags
Interrupt request begins when IRQx this time, interrupt will activate vector address will commence from priority corresponding interrupt source. When interrupt occurs, flags will saved stack memory jump interrupt service vector address. After interrupt occurs, interrupt enabled flags (IEx) automatically reset interrupt disabled. IRQx, which caused interrupt, must reset software interrupt service routine. When again, SH66L16 supply multi-level interrupts. External Interrupt External interrupt shared with bit0 PORTA. When bit3 system register (IEX) 1and PA.0 INPUT, external interrupt will enabled, falling edge signal PA.0 will generate external interrupt. Base time Interrupt, Timer0 Interrupt, Port Interrupts input clock Timer0 based clock. programming Timer interrupt, Port interrupts refer SH6610C SPEC. Vector Address Interrupt Priority Priority (Most) (Least) Interrupt Source RESET
TMR0 BPBC
SH66L16
Interrupt Servicing Sequence Diagram:
Inst. cycle
Instruction Execution
Instruction Execution
Instruction Execution
Interrupt Generated
Interrupt Accepted
Vector Generated Stacking
Fetch Vector address Reset IE.X
Start vector address
Interrupt Nesting: During SH6610C interrupt service, user enable INTERRUPT enabled flag before returning from interrupt. servicing sequence diagram shows next interrupt next nesting interrupt occurrences. interrupt request ready instruction execution enable, then interrupt will start immediately after next instruction executions. However, instruction instruction disables interrupt request enable flag, then interrupt service will terminated. System Clock Oscillation Circuit system clock generator produces clock pulses supplied on-chip peripherals. Instruction cycle time 200KHz clock 32.768KHz clock
OSCXI 200K OSCI OSCO OSCO 200K OSCI OSCXI
Crystal
CODE OPTION
CODE OPTION
OSCXI
200K
OSCXI
OSCI Crystal OSCO
OSCI
OSCO
CODE OPTION
CODE OPTION
SH66L16
HALT STOP After execution HALT, SH66L16 will enter HALT. HALT state, will stop operating, peripheral circuit (timer) will operate. After execution STOP, SH66L16 will enter STOP. STOP state, entire chip (including system oscillator) will stop operating. HALT state, SH66L16 will wake interrupt occurs. STOP state, SH66L16 will wake port interrupt occurs Binterrupt occurs. Notice: Normally, condition code option 01), 32.768KHz clock activated setting BTM.2-BTM.0, Base Timer keeps running even STOP mode. Thus, driver also output waveforms, since clock fetched from Base Timer clock source. condition code option 11), driver output waveforms STOP mode because it's clock source fetched from system clock. Either does Alarm carrier clock. this case, SH66L16 will wake only port interrupt occurs while STOP mode. Warm-up Timer warm-up timer eliminates initial oscillation instability following cases: Power-on reset; Wake-up from STOP. warm-up timer will count system clock cycles when 32.768KHz crystal oscillator used system clock source. warm-up timer will count system clock cycles when 200KHz oscillator used system clock source. Software warm-up needed Base Timer start Watch Timer SH66L16 Watch-Dog-Timer. input clock watchdog timer fetched from system clock. will STOP mode. SH66L16 will generate RESET condition when Watchdog times-out. Watchdog enabled disabled permanently code option. prevent timing generating device RESET condition, users should write bit3 system register before timing-out. time-out period approx. 20ms (VDD 1.5V 200KHz oscillator). longer time-out periods desired, prescaler with division ratio 1:2048 assigned under software controlled writing register ($02). System Register Address Remark Bit3: Watchdog timer reset/flag (write reset WDT)
0.02ms SYSTEM CLOCK 200KHz
Internal
SCALER_1
/1024
Time Period 20ms
PRESCALER
/128
/512
/2048
Final Time period
SH66L16
Prescaler Divide Ratio: TM0.2 Notice: enabled, code option, Watchdog Timer will cleared when Power-On initial. cleared only Watchdog Timer time-out occurred both normal operation mode HALT mode. Watchdog Timer cleared when device wakes from STOP mode, regardless source wake-up. Status Condition Power-On reset cause reset during normal operation cause reset HALT mode reset during normal operation HALT mode reset interrupt wake-up STOP mode Condition TM0.1 TM0.0 Prescaler divide ratio 1:32 1:128 1:512 1:2048 (Power initial) Timer-out period 20.48ms 40.96ms 81.92ms 163.84ms 655.36ms 2,621ms 10,484ms 41,936ms
Program Notice: system clock changed code option, time-out period Watchdog Timer (approx. 20ms) will also changed, regardless value prescaler divide ratio. prescaler with division ratio 1:2048 prolong time-out periods writing register. Since register shared with Timer0, same prescaler value Timer0. changed some proper use, WDT's time-out periods will also changed.
SH66L16
Instructions instructions cycle one-word instructions. characteristics memory-oriented operation. Arithmetic Logical Instruction Accumulator Type Mnemonic ADCM ADDM SBCM SUBM EORM ANDM Immediate Type Mnemonic ADIM SBIM EORIM ORIM ANDIM Instruction Code 01000 iiii xxxx 01001 iiii xxxx 01010 iiii xxxx 01011 iiii xxxx 01100 iiii xxxx 01101 iiii xxxx 01110 iiii xxxx Function Flag Change Instruction Code 00000 0bbb xxxx 00000 1bbb xxxx 00001 0bbb xxxx 00001 1bbb xxxx 00010 0bbb xxxx 00010 1bbb xxxx 00011 0bbb xxxx 00011 1bbb xxxx 00100 0bbb xxxx 00100 1bbb xxxx 00101 0bbb xxxx 00101 1bbb xxxx 00110 0bbb xxxx 00110 1bbb xxxx 11110 0000 0000 Function Flag Change
[3]; shift right
assembler ASM66 V1.0, EORIM mnemonic EORI. However, EORI same operation identical with EORIM. Same ORIM with respect ORI, ANDIM with respect ANDI. Decimal Adjust Mnemonic Instruction Code 11001 0110 xxxx 11001 1010 xxxx Function Decimal adjust add. Decimal adjust sub. Flag Change
SH66L16
Transfer Instruction Mnemonic Instruction Code 00111 0bbb xxxx 00111 1bbb xxxx 01111 iiii xxxx Function Flag Change
Control Instruction Mnemonic CALL RTNW RTNI HALT STOP TJMP Where, Program counter Accumulator Complement accumulator Carry flag Data memory page Stack Table Branch Register (bbb) Immediate data Logical exclusive Logical Logical bank (bbb: 111) Instruction Code 10010 xxxx xxxx 10000 xxxx xxxx 10011 xxxx xxxx 10001 xxxx xxxx 10100 xxxx xxxx 10101 xxxx xxxx 10110 xxxx xxxx 10111 xxxx xxxx 11000 xxxx xxxx 11010 000h llll 11010 1000 0000 11011 0000 0000 11011 1000 0000 1110p xxxx xxxx 11110 1111 1111 11111 1111 1111 (Include (PC11-PC8) (TBR) (AC) Function (Not include hhhh; llll Flag Change
Operation
SH66L16
Absolute Maximum Ratings*
Supply Voltage -0.3V +3.0V Input Voltage .-0.3V 0.3V Operating Ambient Temperature +70°C Storage Temperature -55°C +125°C
*Comments
Stresses above those listed under "Absolute Maximum Ratings" cause permanent damage this device. These stress ratings only. Functional operation this device these other conditions above those indicated operational sections this specification implied intended. Exposed absolute maximum rating conditions extended periods affect device reliability.
Electrical Characteristics (VDD 1.5V, 25°C, FOSC 200KHz, unless otherwise specified) Parameter Operating Voltage Operating Current Standby Current Standby Current Reset Current Lighting Input High Voltage Input High Voltage Input Voltage Input Voltage Output High Voltage Output Voltage Output High Voltage Output Voltage Output High Voltage Output Voltage Output High Voltage Output Voltage Pull-up Resistor RESET Pull-up Resistor RESET Pull-up Resistor Symbol ISB1 ISB2 IREST ILCD VIH1 VIH2 VIL1 VIL2 VOH1 VOL1 VOH2 VOL2 VOH3 VOL3 VOH4 VOL4 1000 0.85 Min. Typ. Max. 0.15 Unit output pins unload execute instruction, exclude Basetimer, Alarm current output pins unload (HALT mode) exclude Basetimer, Alarm current output pins unload (STOP mode), off, Alarm off, Basetimer clock Chip current when RESET available panel loaded. pump frequency PORTA, PORTB, PORTC OSCI (Driven external clock) (reference only) RESET TEST (schmitt trigger input) PORTA, PORTB, PORTC OSCI (Driven external clock) (reference only) RESET TEST (schmitt trigger input) PORTA, (IOH 0.3mA) PORTA, (IOL 0.3mA) (set PA.1and PA.2 ALARM output), 0.3mA (set PA.1and PA.2 ALARM output), 0.3mA SEGx, -6µA SEGx, COMx, -12µA COMx, 12µA PORT Pull-up resistor (VOH -10µA) RESET RESET1 level trigger option RESET RESET1 edge trigger option Conditions
SH66L16
Electrical Characteristics (VDD 1.5V, 25°C, FOSC 32.768KHz, unless otherwise specified) Parameter Operating Voltage Operating Current Standby Current Standby Current Lighting Input High Voltage Input High Voltage Input Voltage Input Voltage Output High Voltage Output Voltage Output High Voltage Output Voltage Output High Voltage Output Voltage Output High Voltage Output Voltage Pull-up Resistor Symbol ISB1 ISB2 ILCD VIH1 VIH2 VIL1 VIL2 VOH1 VOL1 VOH2 VOL2 VOH3 VOL3 VOH4 VOL4 0.85 Min. Typ. Max. 0.15 Unit output pins unload execute instruction, exclude Alarm current output pins unload (HALT mode) exclude current. (Not heavy load mode) output pins unload (STOP mode), off, current panel loaded. pump frequency PORTA, PORTB, PORTC OSCI (Driven external clock) (reference only) RESET TEST (schmitt trigger input) PORTA, PORTB, PORTC OSCI (Driven external clock) (reference only) RESET TEST (schmitt trigger input) PORTA, (IOH 0.3mA) PORTA, (IOL 0.3mA) (set PA.1and PA.2 ALARM output), 0.3mA (set PA.1and PA.2 ALARM output), 0.3mA SEGx, -6µA SEGx, COMx, -12µA COMx, 12µA PORT Pull-up resistor (VOH -10µA) Conditions
Electrical Characteristics (VDD 1.5V, 25°C, FOSC 200KHz, unless otherwise specified) Parameter Frequency Variation Symbol Min. Typ. Max. Unit Conditions Include supply voltage chip chip variations
SH66L16
Typical Oscillator Resistor Frequency: (Reference only)
1.5V
Frequency (KHz) 1.5V
Resistor (Kohm)
SH66L16
Code Option: Addresses: $4000 Body data: 0110 1010 0001 0110 (6A16) Addresses: $4001 Data: CKWR 1000 0000 0000 (System Clock selection) Code OSCI/OSCO 32KHz Crystal 32KHz 32KHz Crystal 200KHz Connection OSCXI 200KHz 200KHz
Where: (default) 200KHz system clock with 32.768KHz (Crystal) Basetimer 200KHz system clock with 32KHz (RC) Basetimer 32.768KHz Crystal system clock (The Basetimer clock source will fetched from system clock used.) 200KHz system clock (The Basetimer clock source will fetched from system clock used.)
(Watch control) (Reset triggering selection) Code Descriotion enable (default) disable RESET level triggering (low active) (default) RESET edge triggering (falling edge)
SH66L16
Application Circuits (for reference only)
SH66L16 chip substrate connects system ground. AP1: 1.5V OSC: 200KHz LCD: 4.5V, duty, bias PORTB I/O; PORTA.1, Buzzer output.
2200pF 0.1µF CUP3,
2200pF CUP1, PORTA.1 PORTA.2 BUZZER
PORTC RESET1 RESET0 PORTB OSCXI OSCI 12pFx2 X'tal OSCO TEST
SH66L16
SH66L16
AP2: 1.5V OSC: 200KHz 32KHz LCD: 4.5V, duty, bias PORTB I/O; PORTA.1, Buzzer output.
2200pF 0.1µF CUP3, PORTC RESET1 470Khom OSCXI 1.8Mhom OSCO OSCI TEST PORTF RESET0 PORTB CUP1, PORTA.1 PORTA.2 PORTD PORTE BUZZER
SH66L16
SH66L16
Bonding Diagram
SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48 SEG49 PORTD0 SEG50 PORTD1 SEG51 PORTD2 SEG52 PORTD3 SEG53 PORTE0 SEG54 PORTE1 SEG6 SEG5 SEG4 SEG3 SEG2 SEG1 COM1 COM2 COM3 COM4 COM5 PORTF0 COM6 PORTF1 COM7 PORTF2 COM8 PORTF3 CUP1
SH66L16
2646
(0,0)
3220
Substrate connects
Location
Designation [55] [56] PORTC3 PORTC2 PORTC1 PORTC0 PORTB3 PORTB2 PORTB1 PORTB0 PORTA3 PORTA2 PORTA1 PORTA0 RESET1 RESET TEST OSCI OSCO -1410 -1280 -1160 -1040 -920 -805 -690 -575 -460 -345 -230 -115 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 -1157.5 -1252.5 -1252.5 -1252.5 -1252.5 -1252.5 Designation OSCXI CUP4 CUP3 CUP2 CUP1 1040 1160 1280 1410 1540 1540 1540 1540 1540 1540 1540 1540 1540 1540 1540 1540 1540 1540 1540
unit: -1252.5 -1157.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
SH66L16
Location (continued)
Designation (GND) (VDD) [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] 1540 1540 1540 1540 1540 1540 1410 1040 1280 1160 1040 -115 -230 -345 -460 -575 -690 -805 632.5 752.5 872.5 992.5 1122.5 1252.5 1252.5 -1252.2 -1252.2 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 Designation [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] -920 -1040 -1160 -1280 -1410 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 -1540 1252.5 1252.5 1252.5 1252.5 1252.5 1252.5 1122.5 992.5 872.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 -872.5 -992.5 -1122.5 -1252.5
SH66L16
Ordering Information
Part SH66L16H Package CHIP FORM

Other recent searches


Q24T15050 - Q24T15050   Q24T15050 Datasheet
NE134 - NE134   NE134 Datasheet
RS485 - RS485   RS485 Datasheet
MUX8509 - MUX8509   MUX8509 Datasheet
MC68EN302 - MC68EN302   MC68EN302 Datasheet
M38D29FFHP - M38D29FFHP   M38D29FFHP Datasheet
A6595KA - A6595KA   A6595KA Datasheet
A6595KLW - A6595KLW   A6595KLW Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive