Datasheet STK55C643 Datasheet (Syntek Semiconductor)

Page 1
Syntek Semiconductor Co., Ltd.
LCD Controller 1 / 1 ISSUE DATE: 3 March, 20000
STK55C643
STK55C643 Specification
1. FEATURES :
* Operating voltage : 2.5V - 4.0V. * Maximum CPU operating frequency : 3.5MHz at 2.7V * Dual oscillators :
- 32.768 KHz crystal oscillator for LCD display and watch timer.
- RC oscillator for system clock.
* 40 segments and 16 commons output for LCD driver.
- 1/5 bias, 1/16 duty and 64Hz frame frequency.
- 1/4 bias, 1/8 duty and 128Hz frame frequency.
* I/O port.
- 12 I/O pins.
- Port 1 with selectable interrupt. * Built in 512 bytes RAM (including LCD storage area). * Built in 48K bytes ROM for program. * One 8-bit timer with 8 predefined input clock. * Sound channel with voltage output type D/A. * Five interrupt sources :
NMI - 64 Hz interrupt IRQ1 - Stopwatch timer interrupt IRQ2 - Fix-time timer interrupt IRQ3 - Timer interrupt IRQ4 - External interrupt
* Code option :
- Built-in 150K OHM pull-up resistors for I/O port.
- 1/8 duty or 1/16 duty.
2. APPLICATION :
* Calculator * Hand-held game * Small instrument * Toy
Page 2
Syntek Semiconductor Co., Ltd.
LCD Controller 2 / 2 ISSUE DATE: 3 March, 20000
STK55C643
3. BLOCK DIAGRAM:
A0-A15 IRQ
D0-D7
P10-P17 P20-P23
8-bit CPU
Address
decoder
ROM
48Kx8
RAM
512x8
Clock
Generator
LCD driver
8-bit Timer
Port 1 Port 2
RC
oscillator
SOUND
32768Hz
C1-C16
S1-S40
OSC1 OSC2
Page 3
Syntek Semiconductor Co., Ltd.
LCD Controller 3 / 3 ISSUE DATE: 3 March, 20000
STK55C643
4. PIN DESCRIPTION : (Total 80 pads)
Pin name I/O Function description
COM1-COM16 O LCD common output pins SEG1...SEG40 O LCD segment output pins VLCD I LCD voltage input CLK256 O 256 Hz clock output P10-P17 I/O 8-bit I/O pins for port 1 P20-P23 I/O 4-bit I/O pins for port 2 OSC1 I Main system oscillator input pin for chip OSC2 O Main system oscillator output pin for resistor XOSC1 I 32.768K Hz crystal oscillator input XOSC2 O 32.768K Hz crystal oscillator output SOUND O Sound output with volume control /BUZ O Buzzer output /RES IU System reset pin with internal 150K ohm pull-up. /TEST I Test pin. Keep floating or connect to Vdd VDD Power input VSS Signal ground
5. ADDRESS ARRANGEMENT
1) RAM
0000-007F for LCD output data storage.
Memory address Pin for 1/16 duty Pin for 1/8 duty 0000-0004 COM1 COM1 0008-000C COM2 COM2 0010-0014 COM3 COM3 0018-001C COM4 COM4 0020-0024 COM5 COM5 0028-002C COM6 COM6 0030-0034 COM7 COM7 0038-003C COM8 COM16 0040-0044 COM9
Page 4
Syntek Semiconductor Co., Ltd.
LCD Controller 4 / 4 ISSUE DATE: 3 March, 20000
STK55C643
Memory address Pin for 1/16 duty Pin for 1/8 duty 0048-004C COM10 0050-0054 COM11 0058-005C COM12 0060-0064 COM13 0068-006C COM14 0070-0074 COM15 0078-007C COM16
The LSB of low byte - SEG1. The MSB of high byte - SEG40. The middle bits are in the order.
0080-00FF : for zero page area. 0100-01FF : for stack and data area.
2) ROM
4000-FFFF for program area.
FFFF, FFFE - IRQ vector. FFFD, FFFC - RES vector. FFFB, FFFA - NMI vector.
3) Others
1000 To enter stand-by mode. Write only.
* Write this address, the CPU will be hold with LCD state no change. * When in stand-by mode, the NMI and IRQ will wake up the CPU.
1001 To enter sleep mode. Write only.
= 1 Sleep mode 1 = 2 Sleep mode 2
All other values are prohibited. Do not write any other value to this register. In sleep mode 1, both of the main system oscillator and 32.768KHz sub-system oscillator will be stopped. So, all function are stopped and only external interrupt can wake up this chip. The LCD display will be turn off while getting into sleep mode 1. In sleep mode 2, only main system oscillator will be stopped. So, the following functions will still keep working.
Page 5
Syntek Semiconductor Co., Ltd.
LCD Controller 5 / 5 ISSUE DATE: 3 March, 20000
STK55C643
* The LCD will be kept on. * The watch timer and fix-time timer will keep going.
* The NMI, port 1, watch timer and fix-time timer interrupt will wake up this chip.
* CPU will keep working if clock source is 32.768K Hz.
1002 Watch timer control register. Write only.
Bit 0 : = 0 Set watch timer interrupt at 10 Hz
= 1 Set watch timer interrupt at 100 Hz
1 : = 0 Set fix-time timer interrupt at 2 Hz
= 1 Set fix-time timer interrupt at 1 Hz
2 : = 0 Normal operation.
= 1 Reset and stop stopwatch timer.
3 : = 0 Stop stopwatch register without reset.
= 1 Start stopwatch timer.
4 : = 0 CPU clock is system clock.
= 1 CPU clock is 32.768K Hz.
7-5 : Reserved. The default value for each bit is zero. Bit 2 will be cleared to zero automatically after stopwatch timer reset.
1003 IRQ flag register. Read & write.
Read function : Bit 0 : = 1 Stopwatch timer interrupt, IRQ1.
1 : = 1 Fix-time timer interrupt, IRQ2.
2 : = 1 Timer interrupt, IRQ3.
3 : = 1 External interrupt, IRQ4. Write function : Bit 0 : = 0 Clear stopwatch timer interrupt.
1 : = 0 Clear fix-time timer interrupt.
2 : = 0 Clear timer interrupt.
3 : = 0 Clear external interrupt. Note : Please do not use the STZ $1003 to clear all the interrupts at the same time.
Also, please do not use the read-modify-write instruction to clear interrupt flag. For example, LDA #1 and TRB $1003 to clear the IRQ1. Because some other interrupts may be lost if clear interrupt with above method. Following procedures are suggested.
LDA $1003
Page 6
Syntek Semiconductor Co., Ltd.
LCD Controller 6 / 6 ISSUE DATE: 3 March, 20000
STK55C643
AND #1 BEQ CheckIRQ2 EOR #$0FF STA $1003 ;clear IRQ1
·
·
·
1004 Port 1 data. Read & write.
1005 Set port 1 bit function. Write only.
* An '1' in this register will set the corresponding pin of port 1 as an output pin. * The default value for each bit is zero. A pull-up resistor can be added to the pin by
code option. But the pull-up resistor will be disabled if the output state is low.
1006 Port 2 data. Read & write.
Bit 3-0 : Port 2 data.
7-4 : Reserved.
1007 Set port 2 bit function. Write only.
* An '1' in this register will set the corresponding pin of port 2 as an output pin. * The default value for each bit is zero. A pull-up resistor can be added to the pin by
code option. But the pull-up resistor will be disabled if the output state is low.
1008 Volume control. Write only.
Volume control for SOUND output pin. $FF is the maximum volume.
100C Set port 1 bit interrupt function. Write only.
* An '1' in this register will set the interrupt function of the corresponding pin of port 1
to be enable. That is, an interrupt will be generated if a low level is detected in the pin.
* The default value for each bit is zero.
100D Timer 1 data. Read & write.
* Before writing $100D, the program should select timer clock ($100E) first. * After timer 1 been enabled, the timer will start to count down. When timer counts to
zero, the timer will count from the initial value and IRQ3 will happen.
Page 7
Syntek Semiconductor Co., Ltd.
LCD Controller 7 / 7 ISSUE DATE: 3 March, 20000
STK55C643
* The time elapse = ($100D)/timer clock
100E Timer 1 clock select. Write only.
Bit 2-0 : = 000 System clock/2
= 001 System clock/4 = 010 System clock/8 = 011 System clock/16 = 100 System clock/32 = 101 System clock/64 = 110 System clock/128 = 111 System clock/256 7-3 : Reserved
The default value is unknown.
100F Control register. Write only.
Bit 0 : = 0 Disable timer 1 output to SOUND pin.
= 1 Enable timer 1 output to SOUND pin.
1 : = 0 Disable timer 1 interrupt.
= 1 Enable timer 1 interrupt.
2 : = 0 Disable NMI.
= 1 Enable NMI.
3 : = 0 Disable timer 1.
= 1 Enable timer 1.
4 : = 0 LCD off.
= 1 LCD on.
5 : = 0 Disable watch timer interrupt.
= 1 Enable watch timer interrupt.
6 : = 0 Disable fix-time timer interrupt.
= 1 Enable fix-time timer interrupt.
7 : = 0 Disable sound output.
= 1 Enable sound output.
* The default value for each bit is zero.
Page 8
Syntek Semiconductor Co., Ltd.
LCD Controller 8 / 8 ISSUE DATE: 3 March, 20000
STK55C643
1010 Stopwatch timer value. Read only.
Bit 3-0 : 1/100 sec data in BCD value. 7-4 : 1/10 sec data in BCD value.
4) The reset status of CPU
If the /RES is keep low more than two system clocks, then the CPU will be reset. After reset, the interrupt mask flag is set, the decimal mode is cleared and the program counter will be loaded with the reset vector from address $FFFC and $FFFD. So, after initial procedure the firmware should do a ‘CLI’ instruction. Otherwise, the CPU will not acknowledge any interrupt.
5) Interrupt Sources
* There are five interrupt sources :
NMI - 64 Hz interrupt. IRQ1 - Stopwatch timer interrupt. IRQ2 - Fix-time timer interrupt. IRQ3 - Timer interrupt.
IRQ4 - Port 1 interrupt. * All interrupts will wake up CPU from standby mode. * NMI, IRQ1, IRQ2 and IRQ4 will wake up CPU from sleep mode 2. * Only IRQ4 will wake up CPU from sleep mode 1. * If want to accept IRQ in the middle of NMI loop, please reset the IRQ disable flag of the
CPU before IRQ signal come. * When port 1 is in input mode and pin interrupt enable, a low signal from pin will generate
IRQ4.
Page 9
Syntek Semiconductor Co., Ltd.
LCD Controller 9 / 9 ISSUE DATE: 3 March, 20000
STK55C643
6. ABSOLUTE MAXIMUM RATINGS
Operating temperature ........................................................................ 0 to 70
Storage temperature ...................................................................... -65 to 150
Supply voltage ............................................................................................... 7 V
Input voltage ........................................................................... -0.6 to Vdd+0.6 V
Page 10
Syntek Semiconductor Co., Ltd.
LCD Controller 10 / 10 ISSUE DATE: 3 March, 20000
STK55C643
7. ELECTRICAL CHARACTERISTIC :
Parameter Symbol Condition Min Typ. Max Unit
Supply Voltage Vdd 2.5 3.0 4
V
Main system frequency ∅sys Vdd=2.5V
Vdd=2.7V Vdd=4V
- 1 2.5
3.5 5
Mhz Mhz Mhz
Crystal frequency ∅cry 32768 Hz Operating current Idd Vdd=3V,sys=1Mhz 1 mA Standby current Istdby Vdd=3V,sys=1Mhz 0.5 mA Sleep mode 1 current Islp1 Vdd=5V, LCD off 1 µA Sleep mode2 current Islp2 Vdd=Vlcd=2.5V 19 µA (LCD On) Vdd=Vlcd=2.7V 23 µA
Vdd=Vlcd=3V 28 µA Vdd=Vlcd=3.5V 40 µA Vdd=Vlcd=4V 56 µA Vdd=Vlcd=4.5V 70 µA Vdd=2.5V,Vlcd=4V 40 µA Vdd=2.7V,Vlcd=4.4V 46 µA Vdd=3V,Vlcd=5V 57 µA Vdd=3.5V,Vlcd=6V 73 µA
Sleep mode2 current (LCD off)
Vdd=3V 5 µA
Input high voltage Vih Vdd=5.0V 2.0
V
Input low voltage Vil Vdd=5.0V -0.6 0.8
V
Input high leakage current Iih Vih=Vdd -1 µA Input low leakage current Iil Vil=0 1 µA Output high voltage (For SEGx and COMx)
Voh1 Ioh=-30µA Vlcd-
0.2
Vlcd
V
Output low voltage (for SEGx and COMx)
Vol1 Iol=40µA 0 0.2
V
Output high voltage (for other pins)
Voh2 Ioh=-2mA Vdd-
0.4
Vdd
V
Output low voltage (for other pins)
Vol2 Iol=2mA 0 0.4
V
Page 11
Syntek Semiconductor Co., Ltd.
LCD Controller 11 / 11 ISSUE DATE: 3 March, 20000
STK55C643
8. LCD WAVEFORM :
8.1 1/16 duty 1/64 sec
Vlcd 4/5 Vlcd 3/5 Vlcd
COM1 2/5 Vlcd
1/5 Vlcd
Vss
Vlcd 4/5 Vlcd 3/5 Vlcd
COM2 2/5 Vlcd
1/5 Vlcd
Vss
Vlcd 4/5 Vlcd 3/5 Vlcd
COM3 2/5 Vlcd
1/5 Vlcd
Vss
Vlcd 4/5 Vlcd 3/5 Vlcd
COM16 2/5 Vlcd
1/5 Vlcd
Vss
Vlcd 4/5 Vlcd 3/5 Vlcd
SEGx 2/5 Vlcd
1/5 Vlcd
Vss
There are two LCD matrix DOTs active at (SEGx,COM2) and (SEGx,COM16)
Page 12
Syntek Semiconductor Co., Ltd.
LCD Controller 12 / 12 ISSUE DATE: 3 March, 20000
STK55C643
8.2 1/8 duty 1/128 sec
COM1
Vlcd 3/4 Vlcd 2/4 Vlcd
COM2 1/4 Vlcd
Vss
Vlcd 3/4 Vlcd 2/4 Vlcd
COM3 1/4 Vlcd
Vss
Vlcd 3/4 Vlcd 2/4 Vlcd
COM4 1/4 Vlcd
Vss
Vlcd 3/4 Vlcd
COM8 2/4 Vlcd
1/4 Vlcd
Vss
Vlcd 3/4 Vlcd
SEGx 2/4 Vlcd
1/4 Vlcd
Vss
There are two LCD matrix DOTs active at (SEGx,COM2) and (SEGx,COM8)
Page 13
Syntek Semiconductor Co., Ltd.
LCD Controller 13 / 13 ISSUE DATE: 3 March, 20000
STK55C643
9. PAD LOCATION :
Chip size : 3280x2980 Unit : µM
PAD-No Name X Y PAD-No Name X Y 1 VSS 75.00 2348.00 41 S24 3205.00 1221.70
2 C1 75.00 2200.30 42 S25 3205.00 1343.70 3 C2 75.00 2078.30 43 S26 3205.00 1465.70 4 C3 75.00 1956.30 44 S27 3205.00 1587.70 5 C4 75.00 1834.30 45 S28 3205.00 1709.70 6 C5 75.00 1712.30 46 S29 3205.00 1831.70 7 C6 75.00 1590.30 47 S30 3205.00 1953.70 8 C7 75.00 1468.30 48 S31 3205.00 2075.70 9 C8 75.00 1346.30 49 S32 3205.00 2197.70 10 C9 75.00 1224.30 50 S33 3205.00 2319.70 11 C10 75.00 1102.30 51 S34 3205.00 2441.70
Page 14
Syntek Semiconductor Co., Ltd.
LCD Controller 14 / 14 ISSUE DATE: 3 March, 20000
STK55C643
PAD-No Name X Y PAD-No Name X Y 12 C11 75.00 980.30 52 S35 3205.00 2563.70
13 C12 75.00 858.30 53 S36 3205.00 2693.70 14 C13 75.00 736.30 54 S37 3205.00 2823.70 15 C14 75.00 614.30 55 S38 3043.60 2901.70 16 C15 75.00 492.30 56 S39 2893.80 2901.70 17 C16 75.00 361.79 57 S40 2763.80 2901.70 18 S1 75.00 209.62 58 VLCD 2635.80 2901.70 19 S2 191.00 78.30 59 CLKOUT 2494.90 2901.70 20 S3 329.60 78.30 60 TESTB 2372.90 2901.70 21 S4 452.00 78.30 61 XOSC1 2250.90 2901.70 22 S5 579.00 78.30 62 XOSC2 2128.90 2901.70 23 S6 706.20 78.30 63 OSC1 1993.90 2901.70 24 S7 828.20 78.30 64 OSC2 1871.90 2901.70 25 S8 950.20 78.30 65 VDD 1749.90 2901.70 26 S9 1072.20 78.30 66 RESB 1627.90 2901.70 27 S10 1194.20 78.30 67 SOUND 1505.90 2901.70 28 S11 1316.20 78.30 68 ZBUZ 1383.90 2901.70 29 S12 2700.00 78.30 69 P10 1261.90 2901.70 30 S13 2822.00 78.30 70 P11 1139.90 2901.70 31 S14 2944.00 78.30 71 P12 1017.90 2901.70 32 S15 3066.00 78.30 72 P13 895.90 2901.70 33 S16 3205.00 183.40 73 P14 773.90 2901.70 34 S17 3205.00 343.30 74 P15 651.90 2901.70 35 S18 3205.00 489.70 75 P16 529.90 2901.70 36 S19 3205.00 611.70 76 P17 407.90 2901.70 37 S20 3205.00 733.70 77 P20 261.80 2901.70 38 S21 3205.00 855.70 78 P21 75.00 2804.20 39 S22 3205.00 977.70 79 P22 75.00 2647.50 40 S23 3205.00 1099.70 80 P23 75.00 2492.30
Page 15
Syntek Semiconductor Co., Ltd.
LCD Controller 15 / 15 ISSUE DATE: 3 March, 20000
STK55C643
10. APPLICATION CIRCUIT :
STK55C643 A
Application circuit
A
11Tuesday, April 14, 1998
Title
Size Document Number Rev
Date:
Sheet
of
VCC
VCC
VCC
VCC
VCC
VCC
VLCD
For 3V LCD panel
For 5V LCD panel
For speaker
For buzzer
S15
S14
S13
S12
S11
S10
S9
S8
S7
S6
S5
S4
S3
S2
S16
S17
S37
S18
S19
S20
S21
S22
S23
S24
S25
S26
S27
S28
S29
S30
S31
S32
S33
S34
S35
S36
S1
C16
C15
C14
C13
C12
C11
C10
C9C8C7C6C5C4C3C2C1
S38
S39
S40
U1 KC5687
P2178P2279P23
80
VSS
1C12C23C34C45C56C67C78C89C910
C1011C1112C1213C1314C1415C1516C16
17S118
S12
29
S13
30
S14
31
S15
32
S2
19
S3
20
S4
21
S5
22
S6
23
S7
24
S8
25
S9
26
S10
27
S11
28
S1633S1734S1835S1936S2037S2138S2239S2340S2441S2542S2643S2744S2845S2946S3047S3148S3249S3350S3451S3552S3653S37
54
S38
55
S39
56
S40
57
P20
77
P10
69
P11
70
P12
71
P13
72
P14
73
P15
74
P16
75
P17
76
VLCD
58
CLKOUT
59
TEST
60
XOSC1
61
XOSC2
62
OSC1
63
OSC2
64
VDD
65
RES
66
SOUND
67
BUZ
68
BZ1
BUZZER
Q2 2N9013
LS1
SPEAKER
C3
0.1u
C4
22p C5
22p
R3 33K
Y1 32768Hz
R2
10K
D2
1N4148
D1
1N4148
C7
0.1u
+
C6 1u
+
C2
0.47u
C1
0.01u
Q1 2N9012
R1
2.2K
S[1:40] C[1:16]
Page 16
Syntek Semiconductor Co., Ltd.
LCD Controller 16 / 16 ISSUE DATE: 3 March, 20000
STK55C643
Syntek Semiconductor Co., Ltd.
Customer Information Sheet for STK55C643 971013
1. Customer's Name : ____________________
2. Project title : _________________________
3. Syntek part number : ___________________ (will be filled by Syntek)
4. Package ---------------- ( ) Chip ( ) QFP
5. Options : Oscillator type ---- ( ) RC ( ) XTAL LCD duty----------- ( ) 1/8 duty ( ) 1/16 duty
Port1P2765432103210
Pull-up
6. Customer code :
Code form ----------------- ( ) EPROM ( ) file _______________ Checksum -----------------4000-7FFF __________H
8000-BFFF __________H C000-FFFF __________H 4000-FFFF __________H
7. Operating conditions :
All the operating conditions listed below are for Syntek reference. Syntek will not guaranty on these values. Please refer to data book or contact Syntek for the
guaranty values. Operating voltage : _____-_____ V Voltage doubler : ( ) Yes ( ) No Operating current : _____ mA Operating frequency : _____ Hz Sleep current :
Mode 1 : _____ µA (LCD off) Mode 2 : _____ µA (LCD on) _____ µA (LCD off)
Others :
Customer : __________________ Salesman : __________________Date : __/__/__
Loading...