* Operating voltage : 2.5V – 5.5 V.
* Maximum CPU operating frequency : 2MHz at 2.7V
* Dual oscillators :
- RC or 32.768 KHz crystal oscillator for LCD display and watch timer.
- RC oscillator for system clock.
* 40 segments and 8 commons output for LCD driver.
- 1/4 bias, 1/8 duty and 64Hz frame frequency.
- 16 levels contrast control.
* I/O port.
STK55C324
- 8 I/O pins with selectable wake up interrupt.
- Two output pins. These two pins can be set as sound channel DAC outputs.
* Built in 160 bytes data RAM and 40 bytes display RAM.
* Built in 32K bytes ROM for program.
* One 8-bit timer with 8 predefined input clock.
* Two sound generators with 7-bit D/A output.
* Four interrupt sources :
- Built-in 150K OHM pull-up resistors for I/O port.
- RC or 32768Hz crystal oscillation for LCD driver.
2. APPLICATION :
* Calculator
* Hand-held game
* Small instrument
* Toy
LCD Controller 1 /24 Issue date: 13 August, 1999
Page 2
Syntek Semiconductor Co., Ltd.
control
32768Hz
C0-C7
S0-S39
3. BLOCK DIAGRAM :
OSC1OSC2
STK55C324
RC oscillator
ROM
32Kx8
RAM
160x8
LCD RAM
40x8
Address
8-bit CPU
A0-A15IRQ
Clock
Generator
CONTRAST
LCD driver with
4-bit contrast
8-bit Timer
decoder
D0-D7
Two sound generator
Port 1
P10-P17SOUND1SOUND2
LCD Controller 2 /24 Issue date: 13 August, 1999
with 7-bit D/A
Page 3
Syntek Semiconductor Co., Ltd.
4. PIN DESCRIPTION :(Total 66 pads)
Pin nameI/OFunction description
COM0-COM7OLCD common output pins
SEG0-SEG39OLCD segment output pins
P10-P17I/O8-bit I/O pins for port 1
OSC1IMain system oscillator input pin for chip
OSC2OMain system oscillator output pin for resistor
XOSC1I32.768K Hz crystal oscillator input
XOSC2O32.768K Hz crystal oscillator output
SOUND1OSound channel 1 output with volume control. This pin is
CMOS output when sound channel is disabled.
STK55C324
SOUND2OSound channel 2 output with volume control. This pin is
CMOS output when sound channel is disabled.
/RESISystem reset pin with 150K pull-up resistor.
CONTRASTIBias voltage input pin. Add a resistor to Vdd can
change the LCD contrast.
VDDPower input
VSSSignal ground
5. ADDRESS ARRANGEMENT
1) RAM
0000-003C for LCD output data storage. The memory address which are not specified in the table are
* 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.
Bit 0 = 1 Sleep mode 1
1 = 1 Sleep mode 2
In sleep mode 1, both of the main system oscillator and 32.768KHz sub-system oscillator will be
stopped. So, all functions are stopped and only external interrupt can wake up this chip. The LCD
display will be turn off while getting into sleep mode 1. If the LCD is turned on after wake-up
immediately, then some garbage may display on the LCD. It is better to turn off the LCD by software
before enter sleep mode 1. After wake up, the software has to delay several ms before turn on the
LCD because the crystal will take several mS to stable.
In sleep mode 2, only main system oscillator will be stopped. So, the following functions will still keep
working.
* The LCD will be kept on.
* The fix-time timer will keep going.
* The NMI, port 1, 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 1 : = 0 Set fix-time timer interrupt at 2 Hz
= 1 Set fix-time timer interrupt at 1 Hz
LCD Controller 4 /24 Issue date: 13 August, 1999
Page 5
Syntek Semiconductor Co., Ltd.
4 : = 0 CPU clock is system clock.
= 1 CPU clock is 32.768K Hz.
7-5 : Reserved.
The default values for each bit is zero.
1003 IRQ flag register. Read & write.
Read function :
Bit 0 : = 1 Fix-time timer interrupt, IRQ1.
1 : = 1 Timer interrupt, IRQ2.
2 : = 1 External interrupt, IRQ3.
Write function :
Bit 0 : = 0 Clear fix-time timer interrupt.
1 : = 0 Clear timer interrupt.
STK55C324
2 : = 0 Clear external interrupt.
* Before firmware exits the interrupt routine, the interrupt flag must be cleared. Otherwise, the IC will
get into interrupt again.
* Write 0 to clear the corresponding IRQ but do not use ‘STZ $1003’ to clear all interrupts at the
same time. Following instructions are recommended
LDA$1003
STAIRQBuff
EOR#0FFH
STA$1003;Clear all active interrupts at the same time
LDAIRQBuff
AND#1
BEQnext_irq
* Do NOT use TRB to test and clear this register. Following instructions are recommended.
LDA$1003
AND#1;Check IRQ 1
BEQnext_irq
STA$1003;Clear the active interrupt.
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 values for each bit is zero. A pull-up resistor can be added to the pin by code option.
LCD Controller 5 /24 Issue date: 13 August, 1999
Page 6
STK55C324
Syntek Semiconductor Co., Ltd.
But the pull-up resistor will be disabled if this pin is set as output.
1008 Volume control for sound channel 1. Write only.
Bit 7-1 : Volume for sound channel 1. $FF is the maximum volume. If bit 1 of $1013 is zero, then bit
1 will output to SOUND 1 pin.
1009 Volume control for sound channel 2. Write only.
Bit 7-1 : Volume for sound channel 2. $FF is the maximum volume. If bit 3 of $1013 is zero, then bit
1 will output to SOUND 2 pin.
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.
* If port 1 are used as key inputs, there are several interrupts will be generated during key pressing
or release. This is caused by key bounce. It is suggested to disable the port1 interrupt after port 1
interrupt is detected and enable the port 1 interrupt after key released. Or enable port 1 interrupt
before entering sleep or standby mode and disable port 1 interrupt after IC wakeup.
* The default values 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 IRQ2 will happen.
* Valid values are from 1 to 255. Zero is prohibited.
* If CPU read this register, the value will be 1 to 255. Please note that the CPU will never read a
zero from timer.
* The time elapse = ($100D)/timer clock
100E Timer 1 clock select and contrast setting. 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
LCD Controller 6 /24 Issue date: 13 August, 1999
Page 7
Syntek Semiconductor Co., Ltd.
3 : Reserved
7-4 : LCD contrast control. The minimum contrast value is zero and the maximum contrast value
is 0FH. The default state is maximum contrast.
The default values of bit 3-0 are unknown.
100F Control register. Write only.
Bit1 : = 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.
STK55C324
= 1 LCD on.
6 : = 0 Disable fix-time timer interrupt.
= 1 Enable fix-time timer interrupt.
* The default values for each bit is zero.
1010 Sound generator clock select. Write only.
Bit 2-0 : Sound generator 1 clock select.
6-4 : Sound generator 2 clock select.
= 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.
1011 Sound generator 1 data. Write only.
* Before writing $1011, the program should select timer clock ($1010) first.
* After sound generator is enabled, it will start to count down. When it counts to zero, the it will
count from the initial value again.
* Valid values are from 1 to 255. Zero is prohibited.
LCD Controller 7 /24 Issue date: 13 August, 1999
Page 8
Syntek Semiconductor Co., Ltd.
Bit 1(3) of $1013
* The time elapse = ($1011)/timer clock/2
1012 Sound generator 2 data. Write only.
* Before writing $1012, the program should select timer clock ($1010) first.
* After sound generator is enabled, it will start to count down. When it counts to zero, it will count
from the initial value again.
* Valid values are from 1 to 255. Zero is prohibited.
* The time elapse = ($1012)/timer clock/2
1013 Sound channel control register. Write only.
Bit 0 : = 0 Disable sound generator 1.
= 1 Enable sound generator 1.
1 : = 0 Set SOUND 1 to CMOS output pin.
STK55C324
= 1 Set SOUND 1 to sound channel 1 DAC output.
2 : = 0 Disable sound generator 2.
= 1 Enable sound generator 2.
3 : = 0 Set SOUND 2 to CMOS output pin.
= 1 Set SOUND 2 to sound channel 2 DAC output.
The default values for each bit is zero.Please follow the item 6.4 for sound channel operation.
Bit 1 of $1008($1009)
Sound generator output
Bit 0(2) of $1013
0
$1008($1009)
S
0
OUTD/A
1
0
1
OUT
SOUND1(2)
S
6. FUNCTION DESCRIPTION
6.1 The reset state of control registers:
AddressValue after reset
$1002
$1003
LCD Controller 8 /24 Issue date: 13 August, 1999
XXX00000
XXXXX000
Page 9
Syntek Semiconductor Co., Ltd.
STK55C324
$1004
$1005
$1008
$1009
$100C
$100D
$100E
$100F
$1010
$1011
$1012
$1013
6.2 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
XXH
00H
XXXXXX0X
XXXXXX0X
00H
XXH
FXH
00H
XXH
XXH
XXH
00H
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.
IRQ3 - Port 1 interrupt.
* All interrupts will wake up CPU from standby mode.
* NMI, IRQ1 and IRQ3 will wake up CPU from sleep mode 2.
* Only IRQ3 will wake up CPU from sleep mode 1.
* When port 1 is in input mode and pin interrupt enable, a low signal from pin will generate IRQ3.
* When the CPU acknowledge the interrupt, following things will be done:
a) The interrupt mask flag will be set by CPU
b) The return address and status register will be pushed to stack.
* When the CPU return from interrupt routine by RTI instruction following things will be done:
a) The return address and status register will be pulled from stack.
b) The interrupt mask flag will be cleared.
LCD Controller 9 /24 Issue date: 13 August, 1999
Page 10
STK55C324
Syntek Semiconductor Co., Ltd.
* It is not necessary to add SEI and CLI instructions in interrupt routine. If a CLI instruction is added
in the interrupt routine, then another interrupt may be inserted during current interrupt routine and may
cause stack overflow.
6.4 Sound channel operation :
6.4.1 If two sound channels are used and the SOUND1 and SOUND2 are tied together, then please follow
below instructions to make two sound channels work.
1). All channels off.
a. Set $1013 to zero.
b. Set $1008 and $1009 to zero .
2). Channel 1 output tone and channel 2 output voice or turn off .
a. Set $1013 to 0BH.
b. Set $1009 to zero to turn off or set the volume according to the voice data.
c. Set $1008 to the desired volume.
d. Set sound generator to the desired frequency.
3). Channel 2 output tone and channel 1 output voice or turn off.
a. Set $1013 to 0EH.
b. Set $1008 to zero to turn off or set the volume according to the voice data.
c. Set $1009 to the desired volume.
d. Set sound generator to the desired frequency.
4). Channel 1 output voice or turns off and channel 2 output voice or turns off.
a. Set $1013 to 0AH.
b. Set $1009 to zero to turn off or set the volume according to the voice data..
c. Set $1008 to zero to turn off or set the volume according to the voice data.
Note : If both of these two channels are off, then $1013 should be set to zero. (see item 1)
5). Two channels output tone.
a. Set $1013 to 0FH.
b. Set $1008 and $1009 to the desired volumes.
c. Set sound generators to the desired frequency.
6.4.2 If only one channel is used or two channels are used but they are not tied together, then follow below
instructions.
1). Channel off.
a. Set SOUND output to CMOS output (bit 1 or bit 3 of $1013 to zero).
b. Set volume to zero ($1008 or $1009).
2). Channel output tone.
a. Set SOUND output to DAC output (bit 1 or bit 3 of $1013 to one).
b. Set sound generator to the desired frequency.
c. Set the channel volume ($1008 or $1009).
d. Enable sound generator (bit 0 or bit 2 of $1013 to one).
3). Channel output voice.
a. Set SOUND output to DAC output (bit 1 or bit 3 of $1013 to one).
b. Disable sound generator (bit 0 or bit 2 of $1013 to zero).
LCD Controller 10 /24 Issue date: 13 August, 1999
Page 11
STK55C324
Syntek Semiconductor Co., Ltd.
c. Set the volume according to the voice data ($1008 or $1009).
7. 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
LCD Controller 11 /24 Issue date: 13 August, 1999
Page 12
Syntek Semiconductor Co., Ltd.
V
MHz
Hz
A
AµA
AµAµAµA
AµAµAµA
V
V
A
A
V
V
V
V
8. ELECTRICAL CHARACTERISTIC :
ParameterSymbolConditionMinTyp.Max Unit
Supply VoltageVdd2.53.05.5
Main system frequency∅sysVdd=2.7V0.112
Crystal frequency∅cry32768
STK55C324
Operating currentIddVdd=3V,∅sys=120Khz
Vdd=3V,∅sys=1Mhz
Sleep mode 1 currentIslp1Vdd=3V, LCD off
Vdd=5V, LCD off
Sleep mode2 current
(32768KHz using crystal)
Sleep mode2 current
(32768KHz using RC)
Input high voltageVihVdd=5.0V2.0
Input low voltageVilVdd=5.0V-0.60.8
Input high leakage currentIihVih=Vdd-1µ
Input low leakage currentIilVil=0V1µ
Islp2Vdd=3V,LCD on
Vdd=3V,LCD off
Vdd=5V, LCD on
Vdd=5V, LCD off
Islp2Vdd=3V,LCD on
Vdd=3V,LCD off
Vdd=5V,LCD on
Vdd=5V,LCD off
120
1
0.2
0.5
15
4
65
15
25
8
87
31
mA
µ
µ
µ
µ
Output high voltage
(For SEGx and COMx)
Output low voltage
(for SEGx and COMx)
Output high voltage
(for other pins)
Output low voltage
(for other pins)
LCD Controller 12 /24 Issue date: 13 August, 1999
Voh1Ioh=-30µAVlcd
-0.2
Vol1Iol=40µA00.2
Voh2Ioh=-2mAVdd-
0.4
Vol2Iol=2mA00.4
Vlcd
Vdd
Page 13
2.0uA
1.5uA
1.0uA
Islp1
0.5uA
0.0uA
STK55C324
Syntek Semiconductor Co., Ltd.
Sleep mode 1 current
2V3V4V5V6V
Vdd
150uA
100uA
Islp2
30uA
20uA
Islp2
10uA
Sleep mode 2 (LCD on, 32768KHz crystal)
50uA
0uA
2V3V4V5V6V
Vdd
Sleep mode 2 (LCD off, 32768KHz crystal)
0uA
2V3V4V5V6V
Vdd
LCD Controller 13 /24 Issue date: 13 August, 1999
Page 14
10
5
fsys (Mhz)
0
2V3V4V5V6V
STK55C324
Syntek Semiconductor Co., Ltd.
Max. operating frequency
Vdd
LCD Controller 14 /24 Issue date: 13 August, 1999
Page 15
STK55C324
Syntek Semiconductor Co., Ltd.
9. LCD WAVEFORM :
1/64 sec
Vlcd
3/4 Vlcd
COM02/4 Vlcd
1/4 Vlcd
Vss
Vlcd
3/4 Vlcd
COM12/4 Vlcd
1/4 Vlcd
Vss
Vlcd
3/4 Vlcd
COM22/4 Vlcd
1/4 Vlcd
Vss
•
•
•
Vlcd
3/4 Vlcd
COM72/4 Vlcd
1/4 Vlcd
Vss
Vlcd
3/4 Vlcd
SEGx2/4 Vlcd
1/4 Vlcd
Vss
There are two LCD matrix DOTs active at (SEGx,COM1) and (SEGx,COM7)
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
Operating current : _____ mA Operating frequency : _____ Hz
Sleep current :
2The operating current is acceptableSet S3 off. Measure the
3The sleep current is acceptable.Same as item 2.
4The CPU frequency is correct.Check TP1.
5The 32768Hz frequency is correctCheck XOSC2.
6The pull-up resistance is greater than
200K ohm.
Set S2 to INT. CPU and run
the program.
current on TP2.
LCD Controller 24 /24 Issue date: 13
August, 1999
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.