Samsung KS86C4208, KS86C4204, KS86P4208 Datasheet

KS86C4204/C4208/P4208 PRODUCT OVERVIEW
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.
1-1
PRODUCT OVERVIEW KS86C4204/C4208/P4208
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
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
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
1-2
– 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
BLOCK DIAGRAM
XIN
XOUT
T0 (CAP)
T0(PWM)
AD0-AD11
P1.1/BUZ
P0.7/PWM0 P1.3/PWM1
Basic Timer
OSC
Timer 0
Timer 1
ADC
BUZ
PWM
P0.0-P0.7
SCK,SO, SI, AD8-AD11
Port 0
Port I/O and Interrupt
Control
SAM87RI CPU
4K/8K ROM
P1.0-P1.3
T0, BUZ, INT0, INT1
Port 1
208-Byte
Register File
Port 2
Port 3
ZCD
IIC
SIO
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
1-3
PRODUCT OVERVIEW KS86C4204/C4208/P4208
PIN ASSIGNMENTS
V
SS
X
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
IN
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
KS86C4204
/C4208
32-SOP
(Top View)
V
32
P0.2/SI
31
P0.3/CLO
30
P0.4/AD8
29
P0.5/AD9
28
P0.6/AD10
27
P0.7/AD11/PWM0
26
P3.1
25
P3.3
24
P1.0/T0/ZCD
23
P1.1/BUZ
22
P1.2/INT0
21
P1.3/INT1/PWM1
20
P2.7/AD7/SCLK
19
P2.6/AD6/SDAT
18
AV
17
DD
REF
Figure 1-2. Pin Assignment Diagram (32-Pin SOP Package)
1-4
KS86C4204/C4208/P4208 PRODUCT OVERVIEW
PIN ASSIGNMENTS (Continued)
SS
V
X
OUT
X
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
1
IN
2 3 4 5 6 7 8 9 10 11 12 13 14 15
KS88C4204
/C4208
30-SDIP
(Top View)
30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
DD
V
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
Figure 1-3. Pin Assignment Diagram (30-Pin SDIP Package)
V
SS
X
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
1 2
IN
3 4 5 6 7 8 9 10 11 12 13 14
KS88C4204
/C4208
28-SOP
(Top View)
28
V
27
P0.2/SI
26
P0.3/CLO
25
P0.4/AD8
24
P0.5/AD9
23
P0.6/AD10
22
P0.7/AD11/PWM0
21
P1.0/T0/ZCD
20
P1.1/BUZ
19
P1.2/INT0
18
P1.3/INT1/PWM1
17
P2.7/AD7/SCLK
16
P2.6/AD6/SDAT
15
AV
DD
REF
Figure 1-4. Pin Assignment Diagram (28-Pin SOP Package)
1-5
PRODUCT OVERVIEW KS86C4204/C4208/P4208
PIN DESCRIPTIONS
Table 1-1. KS86C4204/C4208/P4208 Pin Descriptions
Pin
Names
P0.0-P0.7 I/O Bit-programmable I/O port for Schmitt trigger input or push-pull,
P1.0-P1.3 I/O
P2.0-P2.7 I/O Bit-programmable I/O port for Schmitt trigger input or push-pull,
Pin
Type
Pin
Description
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 pins can also be used as alternative functions.
Pin
Type
E
Share
Pins
SCK,SO,SI
, CLO,
E-1
AD8-AD11
D
T0/ZCD
BUZ
INT0 INT1
E-1 AD0-AD7 open drain output. Pull up resistors are assignable by software. Port 2 can also be used as external interrupt, A/D input.
P3.0-P3.3 O
Push-pull or open-drain output port.
E-2 – Pull-up resistors are assignable by software.
XIN, X
OUT
Crystal/ceramic, or RC oscillator signal for system clock.
RESET I System RESET signal input pin. B – TEST I
Test signal input pin (for factory use only: must be connected
to VSS)
AV
REF
VDD, V
, AV
SS
SS
A/D converter reference voltage input and ground – – Voltage input pin and ground
SCK I/O Serial interface clock input or output E P0.0 SO O Serial data output E P0.1 SI I Serial data output E P0.2 CLO O System clock output port E P0.3 SCLK
SDAT
I/O IIC CLOCK
IIC DATA
E-1 P2.7
P2.6 BUZ O 200 Hz-20 kHz frequency output for buzzer sound. D P1.1 ZCD I Zero crossing detector input D P1.0 T0 I/O Timer 0 capture input or 10-bit PWM output D P1.0 INT0
INT1 PWM0
PWM1
I External interrupt input D P1.2
P1.3
O 12-bit PWM output E-1
D
P0.7
P1.3 AD0-AD11 I A/D converter input E-1 P2.0-P2.7
P0.4-P0.7
1-6
KS86C4204/C4208/P4208 PRODUCT OVERVIEW
PIN CIRCUITS
V
DD
V
DD
P-Channel
In
N-Channel
Figure 1-5. Pin Circuit Type A
DD
V
Pull-Up Resistor
In
Data
Output
DIsable
Resistor
Enable
Output
DIsable
Figure 1-7. Pin Circuit Type C
V
DD
Data
Data
Circuit
Type C
P-Channel
Out
N-Channel
Pull-up Resistor
P-Channel
I/O
Figure 1-6. Pin Circuit Type B
Figure 1-8. Pin Circuit Type D
1-7
PRODUCT OVERVIEW KS86C4204/C4208/P4208
DD
V
VDD
VDD
47K
PNE
VDD
Pull-up Resistor
PNE
Data
Output
Disable
Data
Output
Disable
Input
Figure 1-9. Pin Circuit Type E
PNE
VDD
P-CH
N-CH
P-CH
N-CH
VDD
Pull-up Enable
I/O
Pull-up Resistor
Pull-up Enable
I/O
Data
Output
Disable
Pull-up Enable
Out
Figure 1-11. Pin Circuit Type E-2
Analog Input
1-8
Input
Figure 1-10. Pin Circuit Type E-1
KS86C4204/C4208/P4208 ELECTRICAL DATA
16 ELECTRICAL DATA
OVERVIEW
In this section, the following KS86C4204/C4208/P4208 electrical characteristics are presented in tables and graphs:
— Absolute maximum ratings — D.C. electrical characteristics — A.C. electrical characteristics — Operating Voltage Range — Schmitt trigger input characteristics — Oscillator characteristics — Oscillation stabilization time — Data retention supply voltage in Stop mode — Stop mode release timing when initiated by a RESET — Power-on RESET circuit characteristics — A/D converter electrical characteristics — Zero-crossing detector — Zero Crossing Waveform Diagram
16-1
Loading...
+ 19 hidden pages