KS86C4204/C4208/P4208
PRODUCT OVERVIEW
1-1
1
PRODUCT OVERVIEW
SAM87RI PRODUCT FAMILY
Samsung's SAM87Ri 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.
A address/data bus architecture and a large number of bit-configurable I/O ports provide a flexible programming
environment for applications with varied memory and I/O requirements. Timer/counters with selectable operating
modes are included to support real-time operations.
KS86C4204/C4208/P4208 MICROCONTROLLER
The KS86C4204/C4208/P4208 single-chip 8-bit microcontroller is fabricated using an advanced CMOS process. It
is built around the powerful SAM87Ri CPU core. The KS86C4204/C4208/P4208 is a versatile microcontroller, with
its A/D converter, SIO, IIC and a zero-crossing detection capability it can be used in a wide range of general
purpose applications.
Stop and Idle power-down modes were implemented to reduce power consumption. To increase on-chip register
space, the size of the internal register file was logically expanded. The KS86C4204/C4208/P4208 have 4-Kbyte or
8-Kbyte of program memory on-chip (ROM) and 208-bytes of general purpose register area RAM.
Using the SAM87Ri design approach, the following peripherals were integrated with the SAM87Ri core:
Four configurable I/O ports (24 pins)
Nine interrupt sources with one vector and one interrupt level
Two 8-bit timer/counter with various operating modes
Analog to digital converter with 12 input channels and 10-bit resolution
One synchronous SIO module
One IIC module
Two 12-bit PWM output
The KS86C4204/C4208/P4208microcontroller is ideal for use in a wide range of electronic applications requiring
simple timer/counter, PWM, ADC, SIO, IIC, ZCD and capture functions. KS86C4204/C4208/P4208 is available in
a 28/32-pin SOP and a 30-pin SDIP package.
OTP
The KS86P4208 is an OTP (One Time Programmable) version of the KS86C4204/C4208 microcontroller. The
KS86P4208 has on-chip 8-Kbyte one-time-programmable EPROM instead of masked ROM. The KS86P4208 is
fully compatible with the KS86C4204/C4208, in function, in D.C. electrical characteristics and in pin configuration.
PRODUCT OVERVIEW
KS86C4204/C4208/P4208
1-2
FEATURES
CPU
SAM87RI CPU core
Memory
208-byte general purpose register area (RAM)
4K/8K byte internal program memory (ROM)
Instruction Set
41 instructions
The SAM87RI core provides all the SAM87 core
instruction except the word-oriented instruction,
multiplication, division, and some one-byte
instruction
Instruction Execution Time
375 ns at 16 MHz fosc(minimum)
Interrupts
9 interrupt sources and 1 vector
One interrupt level
General I/O
Four I/O ports (total 24pins)
Bit programmable ports
Serial I/O
One synchronous serial I/O module
Selectable transmit and receive rates
Multi-Master IIC-Bus
Serial peripheral interface
Zero-Crossing Detection Circuit
Zero crossing detection circuit that generates a
digital signal in synchronism with an AC signal
input
Built-in reset Circuit (LVD)
Low voltage detector for safe reset
Timer/Counters
One 8-bit basic timer for watchdog function
One 8-bit timer/counter with three operating
mode
One 8-bit timer/counter
PWM module
12-bit PWM 2-ch (Max: 250KHz)
6-bit base + 6-bit extension frame
One 8-bit timer/counter
A/D Converter
12 analog input pins
10-bit conversion resolution
Buzzer Frequency Range
200 Hz to 20 kHz signal can be generated
Oscillator Freqeuncy
1-MHz to 16-MHz external crystal oscillator
Maximum 16-MHz CPU clock
RC: 4MHz(typ)
Operating Temperature Range
40
C to + 85
C
Operating Voltage Range
3.0 V to 5.5 V (LVD)
1.8 V to 5.5 V (No LVD)
OTP Interface Protocol Spec
Serial OTP
Package Types
KS86C4204/C4208
32-pin SOP-450 (3V LVD)
30-pin SDIP-400 (3V LVD)
28-pin SOP-375
KS86C4204/C4208/P4208
PRODUCT OVERVIEW
1-3
BLOCK DIAGRAM
Port 0
4K/8K ROM
208-Byte
Register File
Port 1
Timer 1
Basic
Timer
Timer 0
OSC
ADC
BUZ
PWM
P0.0-P0.7
SCK,SO, SI, AD8-AD11
Port 2
Port 3
ZCD
IIC
SIO
P1.0-P1.3
T0, BUZ, INT0, INT1
Port I/O and Interrupt
Control
SAM87RI CPU
X
IN
X
OUT
T0 (CAP)
T0(PWM)
AD0-AD11
P1.1/BUZ
P0.7/PWM0
P1.3/PWM1
P2.0-P2.7
AD0-AD7
P3.0-P3.3
ZCD
P2.7/SCLK
P2.6/SDAT
P0.0/SCK
P0.1/SO
P0.2/SI
Figure 1-1. Block Diagram
PRODUCT OVERVIEW
KS86C4204/C4208/P4208
1-4
PIN ASSIGNMENTS
KS86C4204
/C4208
32-SOP
(Top View)
V
SS
X
IN
X
OUT
TEST
P0.1/SO
P0.0/SCK
RESET
P3.0
P3.2
P2.0/AD0
P2.1/AD1
P2.2/AD2
P2.3/AD3
P2.4/AD4
P2.5/AD5
AV
SS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
V
DD
P0.2/SI
P0.3/CLO
P0.4/AD8
P0.5/AD9
P0.6/AD10
P0.7/AD11/PWM0
P3.1
P3.3
P1.0/T0/ZCD
P1.1/BUZ
P1.2/INT0
P1.3/INT1/PWM1
P2.7/AD7/SCLK
P2.6/AD6/SDAT
AV
REF
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
Figure 1-2. Pin Assignment Diagram (32-Pin SOP Package)
KS86C4204/C4208/P4208
PRODUCT OVERVIEW
1-5
PIN ASSIGNMENTS (Continued)
V
SS
X
IN
X
OUT
TEST
P0.1/SO
P0.0/SCK
RESET
P3.0
P2.0/AD0
P2.1/AD1
P2.2/AD2
P2.3/AD3
P2.4/AD4
P2.5/AD5
AV
SS
V
DD
P0.2/SI
P0.3/CLO
P0.4/AD8
P0.5/AD9
P0.6/AD10
P0.7/AD11/PWM0
P3.1
P1.0/T0/ZCD
P1.1/BUZ
P1.2/INT0
P1.3/INT1/PWM1
P2.7/AD7/SCLK
P2.6/AD6/SDAT
AV
REF
KS88C4204
/C4208
30-SDIP
(Top View)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Figure 1-3. Pin Assignment Diagram (30-Pin SDIP Package)
KS88C4204
/C4208
28-SOP
(Top View)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
V
SS
X
IN
X
OUT
TEST
P0.1/SO
P0.0/SCK
RESET
P2.0/AD0
P2.1/AD1
P2.2/AD2
P2.3/AD3
P2.4/AD4
P2.5/AD5
AV
SS
V
DD
P0.2/SI
P0.3/CLO
P0.4/AD8
P0.5/AD9
P0.6/AD10
P0.7/AD11/PWM0
P1.0/T0/ZCD
P1.1/BUZ
P1.2/INT0
P1.3/INT1/PWM1
P2.7/AD7/SCLK
P2.6/AD6/SDAT
AV
REF
Figure 1-4. Pin Assignment Diagram (28-Pin SOP Package)