KS88C4708/C4716/P4716 (Preliminary Spec)
PRODUCT OVERVIEW
1
PRODUCT OVERVIEW
SAM87RC PRODUCT FAMILY
Samsung's new SAM87RC family 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. Timer/counters with selectable operating modes are included to support real-time operations. Many SAM87RC microcontrollers have an external interface that provides access to external memory and other peripheral devices. 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 six CPU clocks) can be assigned to one interrupt level at a time.
KS88C4708/C4716 MICROCONTROLLER
The KS88C4708/C4716 single-chip 8-bit microcontroller is designed for useful 10-bit resolution A/D converter, UART, PWM application field. Its powerful SAM87RC CPU architecture includes. The internal register file is logically expanded to increase the on-chip register space. The KS88C4708/C4716 has 8/16 K bytes of on-chip program ROM. Following Samsung's modular design approach, the following peripherals are integrated with the SAM87RC core: — Large number of programmable I/O ports (42 SDIP: 34 pins, 44 QFP: 36 pins) — One asynchronous UART module — Analog-to-digital converter with eight input channels and 10-bit resolution — One 8-bit basic timer for watchdog function — One 8-bit timer/counter with three operating modes (Timer 0) — One general-purpose 16-bit timer/counters with three operating modes (Timer 1) The KS88C4708/C4716 is a versatile general-purpose microcontroller that is ideal for use in a wide range of electronics applications requiring complex timer/counter, PWM, capture, and UART. It is available in a 42-pin SDIP or 44-pin QFP package.
OTP
The KS88P4716 is an OTP (One Time Programmable) version of the KS88C4708/C4716 microcontroller. The KS88P4716 microcontroller has an on-chip 16-Kbyte one-time-programmable EPROM instead of a masked ROM. The KS88P4716 is comparable to the KS88C4708/C4716, both in function in D.C. electrical characteristics and in pin configuration.
1-1
PRODUCT OVERVIEW
KS88C4708/C4716/P4716 (Preliminary Spec)
FEATURES
CPU • SAM87RC CPU core UART • • Memory • • 272-byte general purpose register area 8/16-Kbyte internal program memory A/D Converter • Instruction Set • • 79 instructions IDLE and STOP instructions added for power-down modes • • Eight analog input pins 10-bit conversion resolution 20 µs conversion time (10 MHz CPU clock) One UART module Full duplex serial I/O interface with three UART modes
Buzzer Frequency Output • 200 Hz to 20 kHz signal can be generated
Instruction Execution Time • 333 ns at 12 MHz fOSC (minimum) Oscillator Frequency • Interrupts • • • 14 interrupt sources and 14 vectors Eight interrupt levels Fast interrupt processing Operating Temperature Range • – 40°C to + 85°C • 1 MHz to 12 MHz external crystal oscillator Maximum 12 MHz CPU clock
General I/O • • • Five I/O ports (total 36 pins) Four bit-programmable ports Two n-channel open-drain output port
Operating Voltage Range • 1.8 V to 5.5 V
Package Types • 42-pin SDIP, 44-pin QFP
Timer/Counters • • • One 8-bit basic timer for watchdog function One 8-bit timer/counter with three operating modes (timer 0) One 16-bit general-purpose timer/counters with three operation modes (timer 1)
1-2
KS88C4708/C4716/P4716 (Preliminary Spec)
PRODUCT OVERVIEW
BLOCK DIAGRAM
P0.0-P0.7
P1.0-P1.5 T0, T1CK, T1, BUZ, RxD, TxD
Basic Timer
Port 0
Port 1
XIN XOUT T0(CAP) T0(PWM)
OSC
Timer 0
Port I/O and Interrupt Control
Port 2
P2.0-P2.7 INT0-INT7
T1(CAP) T1(PWM)
Timer 1 Port 3 P3.0-P3.7 ADC0-ADC7
SAM87RC CPU
ADC0-ADC7 ADC
P1.4/RxD P1.5/TxD
UART P4.0-P4.3
P1.3/BUZ
BUZ
8/16-Kbyte ROM
272-byte Register File
Port 4 P4.4-P4.5
Figure 1-1. Block Diagram
1-3
PRODUCT OVERVIEW
KS88C4708/C4716/P4716 (Preliminary Spec)
PIN ASSIGNMENTS
P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0.1 P0.0 P4.3 P4.2 VDD VSS XOUT XIN TEST P4.1 P4.0
RESET
P2.0/INT0 P2.1/INT1 P2.2/INT2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
KS88C4708 KS88C4716 (42-SDIP-600)
42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22
P1.0/T0 P1.1/T1CK P1.2/T1 P1.3/BUZ P1.4/RxD P1.5/TxD P3.7/ADC7 P3.6/ADC6 P3.5/ADC5 P3.4/ADC4 P3.3/ADC3 P3.2/ADC2 P3.1/ADC1 P3.0/ADC0 AVSS AVREF P2.7/INT7 P2.6/INT6 P2.5/INT5 P2.4/INT4 P2.3/INT3
Figure 1-2. Pin Assignment Diagram (42-Pin SDIP Package)
1-4
KS88C4708/C4716/P4716 (Preliminary Spec)
PRODUCT OVERVIEW
44 43 42 41 40 39 38 37 36 35 34
P4.4 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 P1.0/T0(CAP/PWM) P1.1/T1CK P1.2/T1(CAP/PWM) P1.3/BUZ
P0.1 P0.0 P4.3 P4.2 VDD VSS XOUT XIN TEST P4.1 P4.0
1 2 3 4 5 6 7 8 9 10 11
KS88C4708 KS88C4716 (44-QFP-1010)
33 32 31 30 29 28 27 26 25 24 23
P1.4/RxD P1.5/TxD P3.7/ADC7 P3.6/ADC6 P3.5/ADC5 P3.4/ADC4 P3.3/ADC3 P3.2/ADC2 P3.1/ADC1 P3.0/ADC0 AVSS
Figure 1-3. Pin Assignment Diagram (44-Pin QFP Package)
P2.0/INT0 P2.1/INT1 P2.2/INT2 P2.3/INT3 P2.4/INT4 P2.5/INT5 P2.6/INT6 P2.7/INT7 P4.5 AVREF
RESET
12 13 14 15 16 17 18 19 20 21 22
1-5
PRODUCT OVERVIEW
KS88C4708/C4716/P4716 (Preliminary Spec)
Table 1-1. KS88C4708/C4716 Pin Descriptions Pin Name P0.0–P0.7 Pin Type I/O Pin Description Nibble-programmable I/O port for Schmitt trigger input or push-pull, open-drain output. Pull-up resistors are assignable by software. Bit-programmable I/O port for Schmitt trigger input or push-pull output. Pull-up resistors are assignable by software. Port 1 pin can also by used as alternative function (T0, T1CK, T1, BUZ, RxD, TxD) Bit-programmable I/O port for Schmitt trigger input or push-pull output. Pull-up resistors are assignable by software. Port 2 pins can also be used as external interrupt. Bit-programmable I/O port for Schmitt trigger input or push-pull output. Pull-up resistors are assignable by software. Port 3 pins can also be used as A/D converter by software. Bit-programmable I/O port for Schmitt trigger input or push-pull, open-drain output. Pull-up resistors are assingable by software. Push-pull output only Crystal or ceramic oscillator signal for system clock. System reset signal input pin. Test signal input pin (for factory use only; muse be connected to VSS) A/D converter reference voltage input and ground Voltage input pin and ground Timer 0 capture input or PWM output pin Timer 1 external clock input pin Timer 1 capture input or PWM output pin 200 Hz-20 KHz frequency output for buzzer sound UART receive and transmit input or output UART transmit output External interrupt input A/D converter input Circuit Number E Pin Number 8-1 (2-1, 43-38) 42-37 (37-32) Share Pins –
P1.0–P1.5
I/O
D
T0, T1CK, T1, BUZ, RxD, TxD INT0INT7
P2.0–P2.7
I/O
D
19-26 (13-20)
P3.0–P3.7
I/O
F
29-36 (24-31)
ADC0ADC7
P4.0–P4.3
I/O
E
17-16, 10-9 (11-10, 4-3) (44, 21) 14, 13 (8, 7) 18 (12) 15 (9) 27, 28 (22, 23) 11, 12 (5, 6) 42 (37) 41 (36) 40 (35) 39 (34) 38 (33) 37 (32) 19-26 (13-20) 29-36 (24-31)
–
P4.4–P4.5 XIN, XOUT
RESET
O – I I – – I/O I I/O O I/O O I I
C – B – – – D D D D D D E F
– – – – – – P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P2.0-P2.7 P3.0-P3.7
TEST AVREF, AVSS VDD, VSS T0 T1CK T1 BUZ RxD TxD INT0-INT7 ADC0ADC7
NOTE: Pin numbers shown in parentheses "( )" are for the 44-pin QFP package.
1-6
KS88C4708/C4716/P4716 (Preliminary Spec)
PRODUCT OVERVIEW
PIN CIRCUIT DIAGRAMS
VDD
VDD
P-Channel In N-Channel
Data
P-Channel Out
Output DIsable
N-Channel
Figure 1-4. Pin Circuit Type A
Figure 1-6. Pin Circuit Type C
VDD VDD Pull-Up Resistor In
Pull-up Enable Data Output DIsable Circuit Type C In/Out
Schmitt Trigger Data
Figure 1-5. Pin Circuit Type B
Figure 1-7. Pin Circuit Type D
1-7
PRODUCT OVERVIEW
KS88C4708/C4716/P4716 (Preliminary Spec)
VDD PNE 47 K Pull-up Enable P-CH Data Output DIsable N-CH In/Out
VDD
Schmitt Trigger
Figure 1-8. Pin Circuit Type E
VDD
Pull-up Enable Data Output DIsable Data Circuit Type C In/Out
TO ADC
Figure 1-9. Pin Circuit Type F
1-8
KS88C4708/C4716/P4716 (Preliminary Spec)
ELECTRICAL DATA
14
OVERVIEW
ELECTRICAL DATA
In this chapter, KS88C4708/C4716 electrical characteristics are presented in tables and graphs. The information is arranged in the following order: — Absolute maximum ratings — Input/output capacitance — D.C. electrical characteristics — A.C. electrical characteristics — Oscillation characteristics — Oscillation stabilization time — Data retention supply voltage in stop mode — UART timing characteristics in mode 0 — A/D converter electrical characteristics
14-1
ELECTRICAL DATA
KS88C4708/C4716/P4716 (Preliminary Spec)
Table 14-1. Absolute Maximum Ratings (TA = 25 °C) Parameter Supply Voltage Input Voltage Output Voltage Output Current High Symbol VDD VI VO I OH I OL All ports All output ports One I/O pin active All I/O pins active Output Current Low One I/O pin active Total pin current for ports 1, 2, and 3 Total pin current for ports 0 and 4 Operating Temperature Storage Temperature TA TSTG – – Conditions – Rating – 0.3 to + 6.5 – 0.3 to VDD + 10 – 0.3 to VDD + 0.3 – 18 – 60 + 30 + 100 + 200 – 40 to + 85 – 65 to + 150
°C °C
Unit V V V mA
mA
14-2
KS88C4708/C4716/P4716 (Preliminary Spec)
ELECTRICAL DATA
Table 14-2. D.C. Electrical Characteristics (TA = − 40 °C to + 85 °C, VDD = 1.8 V to 5.5 V) Parameter Input High Voltage Input Low Voltage Symbol VIH1 VIH3 VIL1 VIL3 Output High Voltage Output Low Voltage VOL1 VOH Test Conditions Ports 0, 1, 2, 3 ,4 and RESET XIN, and XOUT Ports 0, 1, 2, 3, 4 and RESET XIN and XOUT IOH = – 1 mA Ports 0, 1, 2, 3, 4 IOL = 15 mA Port 0, and 4 VOL2 Input High Leakage Current ILIH1 ILIH2 Input Low Leakage Current ILIL1 ILIL2 Output High Leakage Current Output Low Leakage Current Pull-up Resistor ILOH ILOL RP1 RP1 Supply Current I