KS88C2416/P2416/C2432/P2432
PRODUCT OVERVIEW
1
PRODUCT OVERVIEW
KS88-SERIES MICROCONTROLLERS
Samsung's KS88 series of 8-bit single-chip CMOS microcontrollers offers a fast and efficient CPU, a wide range of integrated peripherals, and various mask-programmable ROM sizes. Among the major CPU features are: — Efficient register-oriented architecture — Selectable CPU clock sources — Idle and Stop power-down mode release by interrupt — Built-in basic timer with watchdog function A sophisticated interrupt structure recognizes up to eight interrupt levels. Each level can have one or more interrupt sources and vectors. Fast interrupt processing (within a minimum of four CPU clocks) can be assigned to specific interrupt levels.
KS88C2416/P2416/C2432/P2432 MICROCONTROLLER
The KS88C2416/P2416/C2432/P2432 single-chip CMOS microcontroller are fabricated using the highly advanced CMOS process, based on Samsung’s newest CPU architecture. The KS88C2416 is a microcontroller with a 16-Kbyte mask-programmable ROM embedded. The KS88C2432 is a microcontroller with a 32-Kbyte mask-programmable ROM embedded. The KS88P2416 is a microcontroller with a 16-Kbyte one-time-programmable ROM embedded. The KS88P2432 is a microcontroller with a 32-Kbyte one-time-programmable ROM embedded. Using a proven modular design approach, Samsung engineers have successfully developed the KS88 C2416/P2416/C2432/P2432 by integrating the following peripheral modules with the powerful SAM8 core: — Six programmable I/O ports, including five 8-bit ports and one 5-bit port, for a total of 45 pins. — Eight bit-programmable pins for external interrupts. — One 8-bit basic timer for oscillation stabilization and watchdog functions (system reset). — Two 8-bit timer/counter and two 16-bit timer/counter with selectable operating modes. — Watch timer for real time. — 8-input A/D converter — Serial I/O interface The KS88C2416/P2416/C2432/P2432 is versatile microcontroller for camera, LCD and ADC application, etc. They are currently available in 80-pin TQFP and 80-pin QFP package
OTP
The KS88P2416/P2432 are OTP (One Time Programmable) version of the KS88C2416/C2432 microcontroller. The KS88P2416 microcontroller has an on-chip 16-Kbyte one-time-programmable EPROM instead of a masked ROM. The KS88P2432 microcontroller has an on-chip 32-Kbyte one-time-programmable EPROM instead of a masked ROM. The KS88P2416 is comparable to the KS88C2416, both in function and in pin configuration. The KS88P2432 is comparable to the KS88C2432, both in function and in pin configuration.
1-1
PRODUCT OVERVIEW
KS88C2416/P2416/C2432/P2432
FEATURES
Memory • • • • • • • • • • • • • • • • • • • • • • • • ROM: 32-Kbyte (KS88C2432/P2432) ROM: 16-Kbyte (KS88C2416/P2416) RAM: 1056-Byte (KS88C2432/P2432, KS88C2424/P2424) RAM: 544-Byte (KS88C2416/P2416, KS88C2408/P2408) Data memory mapped I/O Crystal, ceramic, RC (main) Crystal for subsystem clock Main system clock frequency 1-10 MHz (3 MHz at 1.8 V, 10 MHz at 2.7 V) Subsystem clock frequency: 32.768 kHz CPU clock divider (1/1, 1/2, 1/8, 1/16) Idle (only CPU clock stops) Stop (System clock stops) 6 level 8 vector 8 internal interrupt 2 level 8 vector 8 external interrupt 45 configurable I/O pins Overflow signal makes a system reset. Watchdog function Programmable 8-bit timer Interval, capture, PWM mode Match/capture, overflow interrupt Programmable 8-bit timer Carrier frequency generator Programmable 16-bit timer Match interrupt generates Watch Timer • • • • • • • • • • • • • • • • • • • • • • • • • Real-time and interval time measurement Clock generation for LCD Four frequency outputs for buzzer sound Maximum 16-digit LCD direct drive capability Display modes: static, 1/2 duty (1/2 bias) 1/3 duty (1/2 or 1/3 bias), 1/4 duty (1/3 bias) Eight analog input channels 50 µs conversion speed at 1 MHz fADC clock 10-bit conversion resolution 8-bit transmit/receive mode 8-bit receive mode LSB-first/MSB-first transmission selectable Internal/external clock source LCD display voltage supply S/W control en/disable 3.0 V drive Programmable detection voltage (2.2 V, 2.4 V, 3.0 V, 4.0 V) En/Disable S/W selectable 400 ns at 10 MHz (main) 122 us at 32.768 kHz (subsystem) -40 °C to 85 °C 1.8 V to 5.5 V 80-pin QFP 80-pin TQFP KS88C2424 (ROM 24 Kbyte)
LCD Controller/Driver
Oscillation Sources
A/D Converter
8-Bit Serial I/O Interface
Two Power-Down Modes
Interrupts
Voltage Booster
45 I/O Pins Basic Timer
Voltage Detector
Instruction Execution Times
8-Bit Timer/Counter A
Operating Temperature Range Operating Voltage Range Package Type
8-Bit Timer/Counter B
16-Bit Timer/Counter 0
16-Bit Timer/Counter 1 • • • Programmable 16-bit timer Interval, capture, PWM mode Match/capture, overflow interrupt
KS88C2432’s ROM version device KS88C2416’s ROM version device • KS88C2408 (ROM 8 Kbyte)
1-2
KS88C2416/P2416/C2432/P2432
PRODUCT OVERVIEW
BLOCK DIAGRAM
XIN XTIN TAOUT/TAPWM/P3.1 TACLK/P3.2 TACAP/P3.3 8-Bit Timer/ Counter A 8-Bit Timer/ Counter B 16-Bit Timer/ Counter 0 VLC0-VLC2 T1CAP/P1.0 T1CLK/P1.1 T1OUT/T1PWM/P1.2 P0.0-P0.7/ INT0-INT7 P1.0-P1.7 AVREF AVSS P2.0-P2.7/ ADC0-ADC7 P3.0-P3.4 16-Bit Timer/ Counter 1 I/O Port 0 I/O Port 1 A/D Converter I/O Port 4 I/O Port 2 I/O Port 3 544/1056 Byte Register File 16/32-Kbyte ROM I/O Port 5 P5.0-P5.7 SAM88 RC CPU LCD Driver COM0-COM3 SEG0-SEG15 SEG16-SEG31
RESET
XOUT XTOUT
BUZ/P1.4 Voltage Detector
VVLDREF
TBPWM/P3.0
OSC/
RESET
Basic Timer
Watch Timer
Voltage Booster
CB CA
I/O Port and Interrupt Control
Serial I/O Port
SI/P1.7 SO/P1.5 SCK/P1.6
P4.0-P4.7
Figure 1-1. KS88C2416/2432 Block Diagram
1-3
PRODUCT OVERVIEW
KS88C2416/P2416/C2432/P2432
PIN ASSIGNMENT
SEG26/P5.2 SEG27/P5.3 SEG28/P5.4 SEG29/P5.5 SEG30/P5.6 SEG31/P5.7 P3.0/TBPWM P3.1/TAOUT/TAPWM P3.2/TACLK P3.3/TACAP/SDAT P3.4/SCLK VDD VSS XOUT XIN TEST XTIN XTOUT
RESET
P0.0/INT0 P0.1/INT1 P0.2/INT2 P0.3/INT3 P0.4/INT4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41
SEG25/P5.1 SEG24/P5.0 SEG23/P4.7 SEG22/P4.6 SEG21/P4.5 SEG20/P4.4 SEG19/P4.3 SEG18/P4.2 SEG17/P4.1 SEG16/P4.0 SEG15 SEG14 SEG13 SEG12 SEG11 SEG10
KS88C2416/P2416/ C2432/P2432
(80-QFP-1420C)
SEG9 SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG1 SEG0 COM3 COM2 COM1 COM0 VLC2 VLC1 VLC0 CA CB AVSS AVREF P2.7/ADC7/VVLDREF P2.6/ADC6 P2.5/ADC5
Figure 1-2. KS88C2416/2432 Pin Assignment (80-QFP)
1-4
P0.5/INT5 P0.6/INT6 P0.7/INT7 P1.0/T1CAP P1.1/T1CLK P1.2/T1OUT/T1PWM P1.3 P1.4/BUZ P1.5/SO P1.6/SCK P1.7/SI P2.0/ADC0 P2.1/ADC1 P2.2/ADC2 P2.3/ADC3 P2.4/ADC4
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
KS88C2416/P2416/C2432/P2432
PRODUCT OVERVIEW
PIN DESCRIPTIONS
Table 1-1. KS88C2416/2432 Pin Descriptions Pin Names P0.0–P0.7 Pin Type I/O Pin Description I/O port with bit programmable pins; Schmitt trigger input or output mode selected by software; software assignable pull-up. P0.0–P0.7 can be used as inputs for external interrupts INT0–INT7 (with noise filter and interrupt control). I/O port with bit programmable pins; Input or output mode selected by software; Open-drain output mode can be selected by software; software assignable pull-up. Alternately P1.0–P1.7 can be used as SI, SO, SCK, BUZ, T1CAP, T1CLK, T1OUT, T1PWM I/O port with bit programmable pins; normal input and AD input or output mode selected by software; software assignable pull-up. I/O port with bit programmable pins. Input or push-pull output with software assignable pull-up. Alternately P3.0–P3.3 can be used as TACAP, TACLK, TAOUT, TAPWM, TBPWM I/O port with bit programmable pins. Push-pull or open drain output and input with software assignable pull-up. P4.0–P4.7 can alternately be used as outputs for LCD SEG Have the same characteristic as port 4 Circuit Type D–4 Pin Numbers (note) 20–27 Share Pins INT0–INT7
P1.0–1.7
I/O
E–2
28-35
SI, SO, SCK, BUZ, T1CAP T1CLK T1OUT T1PWM
P2.0–P2.7
I/O
F–10 F–18
36–42, 43
ADC0–ADC6 VVLDREF (ADC7) TACAP TACLK TAOUT TAPWM TBPWM
P3.0–P3.4
I/O
D–2
7–11
P4.0–P4.7
I/O
H–14
71–78
SEG16–SEG23
P5.0–P5.7
I/O
H–14
79–6
SEG24–SEG31
1-5
PRODUCT OVERVIEW
KS88C2416/P2416/C2432/P2432
Table 1-1. KS88C2416/2432 Pin Descriptions (Continued) Pin Names ADC0–ADC6 ADC7 AVREF AVSS INT0–INT7
RESET
Pin Type I – – I I I
Pin Description A/D converter analog input channels A/D converter reference voltage A/D converter ground External interrupt input pins System reset pin (pull-up resistor: 250 kΩ) 0 V: Normal MCU operating 5 V: Test mode 12 V: for OTP writing Serial OTP interface pins; serial data and clock Power input pins for CPU operation (internal) and Power input for OTP Writing Main oscillator pins Serial I/O interface clock signal Voltage detector reference voltage input Timer A Capture input Timer A External clock input Timer A output and PWM output Timer B PWM output Timer 1 Capture input Timer 1 External clock input Timer 1 output and PWM output LCD common signal output LCD segment output LCD segment output LCD Segment output LCD power supply 0.5, 1, 2 or 4 kHz frequency output for buzzer sound with 4.19 MHz main system clock or 32768 Hz subsystem clock Capacitor terminal for voltage booster
Circuit Type F–10 F–18 – – D–4 B –
Pin Numbers (note) 36–42 43 44 45 20–27 19 16
Share Pins P2.0–P2.6 P2.7 – – P0.0–P0.7 – –
TEST
SDAT, SCLK VDD, VSS
O –
D–2 –
10, 11 12, 13
P3.3, P3.4 –
XOUT, XIN SCK, SO, SI VVLDREF TACAP TACLK TAOUT/TAPWM TBPWM T1CAP T1CLK T1OUT/T1PWM COM0–COM3 SEG0–SEG15 SEG16–SEG23 SEG24–SEG31 VLC0–VLC2 BUZ
– I/O I I I O O I I O O O O O O O
– E–2 F–18 D–2 D–2 D–2 D–2 E–2 E–2 E–2 H H H–14 H–14 – E–2
14, 15 33–35 43 10 9 8 7 28 29 30 51–54 55