Document
www.DataSheet4U.com
KS57C2302/C2304/P2304 MICROCONTROLLER
PRODUCT OVERVIEW
1
OVERVIEW
PRODUCT OVERVIEW
The KS57C2302/C2304 single-chip CMOS microcontroller has been designed for high performance using Samsung's newest 4-bit CPU core, SAM47 (Samsung Arrangeable Microcontrollers). With features such as, LCD direct drive capability, 8-bit timer/counter, and watch timer, the KS57C2302/C2304 offers an excellent design solution for a wide variety of applications that require LCD functions. Up to 16 pins of the 64-pin QFP package, it can be dedicated to I/O. Four vectored interrupts provide fast response to internal and external events. In addition, the KS57C2302/C2304 's advanced CMOS technology provides for low power consumption and a wide operating voltage range.
OTP
The KS57C2302/C2304 microcontroller is also available in OTP (One Time Programmable) version, KS57P2304 . The KS57P2304 microcontroller has an on-chip 4-Kbyte one-time-programmable EPROM instead of masked ROM. The KS57P2304 is comparable to KS57C2302/C2304, both in function and in pin configuration.
www.DataSheet4U.com
1-1
DataSheet 4 U .com
www.DataSheet4U www.DataSheet4U.com 4U.com
www.DataSheet4U.com
PRODUCT OVERVIEW
KS57C2302/C2304/P2304 MICROCONTROLLER
FEATURES
Memory — 288 × 4-bit RAM — 2048 × 8-bit ROM (KS57C2302) — 4096 × 8-bit ROM (KS57C2304) I/O Pins — Input only: 4 pins — I/O: 12 pins — Output: 8 pins sharing with segment driver outputs LCD Controller/Driver — Maximum 16-digit LCD direct drive capability — 32 segment, 4 common pins — Display modes: Static, 1/2 duty (1/2 bias) 1/3 duty (1/2 or 1/3 bias), 1/4 duty (1/3 bias) 8-Bit Basic Timer — Programmable interval timer — Watchdog timer 8-Bit Timer/Counter — Programmable 8-bit timer — External event counter — Arbitrary clock frequency output Watch Timer — Real-time and interval time measurement — Four frequency outputs to BUZ pin — Clock source generation for LCD Bit Sequential Carrier — Support 16-bit serial data transfer in arbitrary format Package Type — 64-pin QFP Oscillation Sources — Crystal, ceramic, or RC for main system clock — Crystal or external oscillator for subsystem clock — Main system clock frequency: 4.19 MHz (typical) — Subsystem clock frequency: 32.768 kHz — CPU clock divider circuit (by 4, 8, or 64) Interrupts — Two internal vectored interrupts — Two external vectored interrupts — Two quasi-interrupts Memory-Mapped I/O Structure — Data memory bank 15 Two Power-Down Modes — Idle mode (only CPU clock stops) — Stop mode (main or sub system oscillation stops)
www.DataSheet4U.com Instruction Execution Times
Operating Temperature — – 40 °C to 85 °C Operating Voltage Range
— 0.95, 1.91, 15.3 µs at 4.19 MHz (main) — 122 µs at 32.768 kHz (subsystem)
— 2.0 V to 5.5 V at 4.19 MHz — 1.8 V to 5.5 V at 3 MHz
1-2
DataSheet 4 U .com
www.DataSheet4U www.DataSheet4U.com 4U.com
www.DataSheet4U.com
KS57C2302/C2304/P2304 MICROCONTROLLER
PRODUCT OVERVIEW
BLOCK DIAGRAM
BASIC TIMER INT0, INT1,INT2
RESET
WATCH TIMER
P2.3/BUZ
Xin XTin
Xout XTout
P1.3/TCL0 P2.0/TCLO0
8-BIT TIMER/ COUNTER 0
INTERRUPT CONTROL BLOCK
CLOCK
INSTRUCTION REGISTER LCD DRIVER/ CONTROLLER
P6.0–P6.3 / KS0–KS3
I/O PORT 6
INTERNAL INTERRUPTS INSTRUCTION DECODER ARITHMETIC AND LOGIC UNIT
PROGRAM COUNTER
BIAS VLC0-VLC2 LCDCK/P3.0 LCDSY/P3.1 COM0-COM3 SEG0-SEG23 P8.0-P8.7/ SEG24-SEG31
PROGRAM STATUS WORD INPUT PORT 1 STACK POINTER I/O PORT 2
P8.0–P8.7 SEG24–SEG31
OUTPUT PORT 8
P1.0 / INT0 P1.1 / INT1 P1.2 / INT2 P1.3 / TCL0 P2.0 / TCLO0 P2.1 P2.2 / CLO P2.3 / BUZ P3.0 / LCDCK P3.1 / LCDSY P3.2 P3.3
www.DataSheet4U.com
288 x 4-BIT DATA MEMORY 2/4 K BYTE PROGRAM MEMORY
I/O PORT 3
Figure 1-1. KS57C2302/C2304 Simplified Block Diagram
1-3
DataSheet 4 U .com
www.DataSheet4U www.DataSheet4U.com 4U.com
www.DataSheet4U.com
PRODUCT OVERVIEW
KS57C2302/C2304/P2304 MICROCONTROLLER
PIN ASSIGNMENTS
COM0 COM1 COM2 COM3 BIAS VLC0 VLC1 VLC2 VDD VSS Xout Xin TEST XTin XTout
RESET
P1.0/INT0 P1.1/INT1 P1.2/INT2
www.DataSheet4U.com
20 21 22 23 24 25 26 27 28 29 30 31 32
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12
KS57C2302 KS57C2304
(TOP VIEW)
SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 / P8.0 SEG25 / P8.1 SEG26 / P8.2 SEG27 / P8.3 SEG28 / P8.4 SEG29 / P8.5 SEG30 / P8.6 SEG31 / P8.7
Figure 1-2. KS57C2302/C2304 64-QFP Pin Assignment
1-4
P1.3 / TCL0 P2.0 / TCLO0 P2.1 P2.2 / CLO P2.3 / BUZ P3.0 / LCDCK P3.1 / LCDSY P3.2 P3.3 P6.0 / KS0 P6.1 / KS1 P6.2 / KS2 P6.3 / KS3
DataSheet 4 U .com
www.DataSheet4U www.DataSheet4U.com 4U.com
www.DataSheet4U.com
KS57C2302/C2304/P2304 MICROCONTROLLER
PRODUCT OVERVIEW
PIN DESCRIPTIONS
Table 1-1. KS57C2302/C2304 Pin Descriptions Pin Name P1.0 P1.1 P1.2 P1.3 P2.0 P2.1 P2.2 P2.3 P3.0 P3.1 P3.2 P3.3 Pin Type I Description 4-bit input port. 1-bit or 4-bit read .