SITRONIX ST20P18

ST
ST20P18
16K 8-bit Single Chip Microcontroller
Notice: Sitronix Technology Corp. reserves the right to change the contents in this document without prior notice. This is not a final specification.
Some parameters are subject to change.
1. FEATURES
8-Bit Static Pipeline CPU
ROM: 16K x 8 bits PROM(OTP)
RAM: 192 x 8 bits
32-Level Deep Stack
Operating Voltage : 2.4V ~ 5.5V
Power-on Timer(PWRT)
- Pin option to enable
General-Purpose I/O (GPIO) Ports
- 28 pins are programmable CMOS I/O (Port-A/B/C and
Port-E low nibble),20 pins (Port-A high nibble &
Port-B/C) are shared with LCD Segments
- 8 open drain output pins share with LCD COMs
- Hardware de-bounce option for Port-A
- Bit programmable pull-up for input pins
2 Input Pins
- OTP option bit to select (shared with OSCX)
30 Output Pins
- Eight are shared with LCD com and twenty are shared
with LCD Segments, two are shared with PSG
Timer / Counter
- One 8-bit timer / 16-bit event counter
- One 8-bit BASE timer
Five Powerful Interrupt Sources
- External interrupt (edge trigger) / RFC interrupt(Share
with external interrupt)
- TIMER1 interrupt
- BASE timer interrupt
- PORTA[7~0] interrupt (transition trigger)
- DAC reload interrupt
Watchdog Timer (WDT)
- With its own low power internal oscillator for reliability
- Four selectable time bases
- WDT reset CPU only
- OTP option bit to enable
Ver 1.4
1/12
- One option bit is selectable to reset or not in WAI1 and
STP mode
Dual Clock Source with Warm-up Timer
- OSCX: Low frequency crystal oscillator with 32768Hz
- OSC: High frequency RC oscillator from 500K ~ 8MHz
CPU clock 250K ~ 4MHz
On-chip Internal Oscillator for WDT
- < 5uA typical, 3V, 27℃
LCD Controller Driver
- 16 level contrast control
- 320 ( 8x40) dots ( 1/8 duty, 1/4 bias, programmable)
- 160 ( 4x40) dots ( 1/4 duty, 1/3 bias, programmable)
- Two clock source options: RC and resonator oscillator
- Keyboard scan function supported on 40 shared
segment drives
- Internal bias resistors(1/4 bias & 1/3 bias) with 32 level
driving strength control
Programmable Sound Generator (PSG)
- Tone generator
- Sound effect generator
- 16 level volume control
- Digital DAC for speech / tone
Resistor Frequency Converter (RFC)
- Up to 4 resistors measurement
- Built-in one independent 16-bits counter without
sharing with timer counter
- 3 clock sources for RFC counter: SYSCK, OSCX and
INTX
- 5 scales of clock divider for RFC counter
Carrier Wave Generator(CGR)
- Built-in one digital PLL
- Standard clock rate output for remote control
Three Power Down Modes
- WAI0 mode
- WAI1 mode
- STP mode
6/13/07
ST20P18
2. GENERAL DESCRIPTION
ST20P18 is a low-cost, high-performance, fully static, 8-bit
microcontroller designed with CMOS silicon gate
technology. It comes with 8-bit pipeline CPU core, SRAM,
timer, LCD driver, I/O port, PSG, RFC, CGR, OTP program
ROM and built-in dual oscillator. And also, some new
functions have been added in the ST20P18 to enhance the
performance of ST2016 for more system application.
Power bouncing during power-on is a major problem when
designing a reliable system. After the power returns to
normal level, the system may recover its original states and
keeps working correctly. Furthermore, the Power-on Timer
(PWRT) which is designed to provide a fixed delay time,
keep the part in reset for longer after power-up or low-V
reset released. With these two power management, the
system may operate under more stabile power supply.
A highly reliable Watchdog Timer(WDT) with its own low
power internal oscillator which does not require any external
components, provides protection against software lockup.
Moreover, the feature of “WDT reset CPU only” make it
possible to do the rapid system recovery after Watchdog
timer reset. And the option bit is selectable to reset or not in
WAI1 and STP mode for various application.
Ver 1.4
The Resistor Frequency Converter(RFC) which is also a
new function added in the ST20P18, can compare three
different sensors with the reference resistor separately. With
one independent 16-bits counter, the RFC can count and
stop automatically only if RFC is enabled. This make it easy
for the humidity or thermometric application.
More and more remote control applications are used today.
The ST20P18 also equips a Carrier Wave Generator(CGR)
to support this application with one digital PLL and provide
the standard clock rates output for remote control.
With these integrated functions inside, the ST20P18 single
chip microcontroller is a right solution for business
equipment and consumer applications. Such as watch,
calculator, LCD games, thermometer, hygrometer, IR
remote control and so on. ST20P18 is definitely a perfect
solution for implementation.
2/12
6/13/07
ST20P18
3. BLOCK DIAGRAM
Ver 1.4
3/12
6/13/07
ST20P18
4. PAD DIAGRAM
Ver 1.4
4/12
6/13/07
ST20P18
5. PAD DESCRIPTION
Pin No.
Designation
Type
12~9
SEG0/PA4 ~
SEG3/PA7
O
I/O
LCD Segment output
Port-A bit programmable I/O
8~5
SEG4- SEG7
O
LCD Segment output
Segment output port
4~1, 68~65
SEG8 -SEG15
O
64~57
SEG16-SEG23
O
SEG24/PC0 ~
SEG31/PC7
SEG32/PB0 ~
SEG39/PB7
O
I/O
O
I/O
O
O
LCD Segment output
Segment output port
LCD Segment output
Segment output port
LCD Segment output
Port-C bit programmable I/O
LCD Segment output
Port-B bit programmable I/O
LCD Common output
Open drain output port
56~49
48~41
Description
39~32
COM 0 – 7
24
RESET
I
Pad reset input (HIGH Active)
29
GND
P
Ground Input and chip substrate
16
PA0/INTX
15~9
PA 1-7
28~27
26
I/O
I
I
I
I/O
I
Port-A bit programmable I/O
Edge-trigger Interrupt.
Transition-trigger Interrupt
Programmable Timer1 clock source
Port-A bit programmable I/O
Transition-trigger Interrupt
PSGO,PSGOB
O
PSG/DAC Output
VDD
P
Power supply
22
OSCXI/PD0
I
I
21
OSCXO/PD1
O
I
25
OSCI
I
20~17
PE0~PE3
I/O
31
V2
O
OSC input pin. For 32768Hz crystal
Port-D input
OSC output pin. For 32768Hz
crystal
Port-D input
OSC input pin. Toward to external
resistor
Port-E bit programmable I/O
RFC/CGR output
Multi-level power supply for liquid
crystal drive.
23
VPP
P
OTP programming power
40
TEST
I
Chip test function. Leave it open
30
PWRT
I
Power on timer enable control pin.
Legend: I = input, O = output, I/O = input/output, P = power.
Ver 1.4
5/12
6/13/07
ST20P18
6. OTP ROM Programming Interface
6.1
Interface Description
In order to program OTP ROM, several pins have to be
reserved on the PCB which is bounding with ST20P18. These
total are 8 pins that include following list TABLE 6-1: . It just
be used to connect writer to program OTP ROM. After
programming and disconnecting from writer, they can be
used as original purpose.
TABLE 6-1: Pin assignment of interface
6.2
P18 Pad Name
(SPI Interface)
Pin Type
VPP
VPP
Power
GND
VCC
PE3
SEG4
SEG5
PE2
RESET
VSS
VDD
SSB
MOSI
MISO
SCK
RESET
Power
Power
Input
Input
Output
Input
Input
Programming Function Specification
There are reserved 5 option bits to select to apply or not
the function we needed. It includes PD input, WDT enable,
WDT stop at WAI-1 and Code Protection. To setup the
Ver 1.4
Description
High Voltage Power Supply
1) OTP Program, Program Verify, VPP=> 12V
2) OTP Read:VPP=> Floating
Ground.
Low Voltage (2.4V-5.4V) Power Supply.
SPI signal
SPI signal
SPI signal
SPI signal
SPI RESET
options should program the OTP ROM by OTP writer by
control register. The register OTP($37) is used to read
contents of the option word.
6/12
6/13/07
ST20P18
TABLE 6-2: Option ward
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Default
CP
-
-
-
WDTSTP
WDTEN
-
PD
1--- 11-1
Bit 7: CP: OTP ROM code protect.
0 =protect OTP data.
1 =Un-Protect OTP data.
Bit 3: WDTSTP: WDT stop control bit.
0 = WDT stop at WAI-1 and STP mode.
1 = WDT is always active if WDTEN is enabled.
Bit 2: WDTEN: WDT enable.
0 = WDT disable.
1 = WDT enable.
Bit 0: PD: Port function selection
0 = PD used as input port.
1 = OSC input pin for 32768Hz crystal.
TABLE 6-3: OTP option ward read back window
Address
Name
R/W
Bit 7
Bit 6
Bit 5
Bit 4
$037
OPT
R
CP
-
-
PWRT
Bit 3
Bit 2
WDTSTP WDTEN
Bit 1
Bit 0
Default
-
PD
1--1 11-1
7. Pow er On Timer
The Power-on Timer (PWRT) is offered necessary delays
on power-up to keep the chip in reset until the crystal
oscillator is stable, the typical delay time in 3v at 25℃ is
32ms, and operation in voltage 2.4V~5.5V ,60℃~ -10℃ is
4~640ms. The default state is high with one internal
pull-up resistance.
TABLE 7-4: Power on timer pin option
IC pad
PWRT
Ver 1.4
option
0
1
Description
disable power-on timer, tie to GND
enable power-on timer, tie to VCC
7/12
Default
1:input pull-up
6/13/07
ST20P18
8. Application Circuits
8.1
APPLICATION CIRCUIT UNDER 3V OPERATING VOLTAGE
VDD
Clock
LCD
I/O
ALARM
: 3V
: 32768Hz crystal and 4.0MHz RC oscillator
: 1/8 duty
: PORT A
: PSGO, PSGOB
FIGURE 8-1: APPLICATION CIRCUIT WITHOUT LCD KEYBOARD AWAKING PULSE
Ver 1.4
8/12
6/13/07
ST20P18
: 3V
: 32768Hz crystal and 4.0MHz RC oscillator
: 1/8 duty
: PORT A
: PSGO, PSGOB
25pF
VDD
Clock
LCD
I/O
ALARM
FIGURE 8-2: APPLICATION CIRCUIT WITH LCD KEYBOARD AWAKING PULSE
Note:
1. COMs and SEGs output GND level, while the LCD is turned off.
2. If LCD is turned off, Keyboard Awaking Pulses must be turned off at the
same time.
3. Connect one capacitor of 100PF to OSCI stabilize oscillation frequency.
This capacitor must be placed close to OSCI.
Ver 1.4
9/12
6/13/07
ST20P18
9. PACKAGE INFORMATION
Dimensions in Millimeters
SYMBOL
b
e
D2
E2
aaa
bbb
ccc
Ver 1.4
80L
MILLIMETER
MIN.
NOM.
MAX.
0.30
0.35
0.45
0.80 BSC.
18.4 REF
12.0 REF
TOLEREANCE OF FORM AND POSITION
0.25
0.20
0.20
10/12
6/13/07
ST20P18
10. PIN CONFIGURATION(QFP80)
S
E
N N
G
C C
1
2
S
E
G
1
3
S
E
G
1
4
S
E
G
1
5
S
E
G
1
6
S
E
G
1
7
S
E
G
1
8
S
E
G
1
9
S
E
G
2
0
S
E
G
2
1
S
E
G
2
2
S
E
G
2
3
P
C
0
/
S
E
G
2
4
P
C
1
/
S
E
G
2
5
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65
NC
NC
SEG11
SEG10
SEG 9
SEG 8
SEG 7
SEG 6
SEG 5
SEG 4
PA7/SEG 3
PA6/SEG 2
PA5/SEG 1
PA4/SEG 0
PA3
PA2
PA1
PA0/INTX
PE3
PE2
PE1
PE0
NC
NC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
O
S
C
X
O
/
P
D
1
Ver 1.4
O V R O V P
S P E S D S
C P S C D G
O
E I
X
B
T
I
/
P
D
0
P G P V C C C
S N W 2 O O O
MM M
G D R
7 6 5
T
O
11/12
C
O
M
4
NC
NC
NC
NC
PC2/SEG26
PC3/SEG27
PC4/SEG28
PC5/SEG29
PC6/SEG30
PC7/SEG31
PB0/SEG32
PB1/SEG33
PB2/SEG34
PB3/SEG35
PB4/SEG36
PB5/SEG37
PB6/SEG38
PB7/SEG39
NC
COM0
COM1
COM2
NC
NC
C
O
M
3
6/13/07
ST20P18
REVISION
Version
1.2
1.3
1.4
Page
8,9
1
10,11
Description
Date
modify Rosc 180k ohm to 226k ohm under 4Mhz condition……………2006/3/1
add
CPU clock 250K ~ 4MHz…………………………………………..2006/6/26
Move package information to page10,11…………………………………..2006/8/8
The above information is the exclusive intellectual property of Sitronix Technology Corp. and shall not be disclosed, distributed or
reproduced without permission from Sitronix. Sitronix Technology Corp. reserves the right to change this document without prior notice
and makes no warranty for any errors which may appear in this document. Sitronix products are not intended for use in life support,
critical care, medical, safety equipment, or similar applications where products failure could result in injury, or loss of life, or personal or
physical harm, or any military or defense application, or any governmental procurement to which special terms or provisions may apply.
Ver 1.4
12/12
6/13/07