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 OVERVIEWKS86C4204/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
P0.0-P0.7I/OBit-programmable I/O port for Schmitt trigger input or push-pull,
P1.0-P1.3I/O
P2.0-P2.7I/OBit-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-1AD0-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.3O
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.––
–
RESETISystem RESET signal input pin.B–
TESTI
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––
SCKI/OSerial interface clock input or outputEP0.0
SOOSerial data outputEP0.1
SIISerial data outputEP0.2
CLOOSystem clock output portEP0.3
SCLK
SDAT
I/OIIC CLOCK
IIC DATA
E-1P2.7
P2.6
BUZO200 Hz-20 kHz frequency output for buzzer sound.DP1.1
ZCDIZero crossing detector inputDP1.0
T0I/OTimer 0 capture input or 10-bit PWM outputDP1.0
INT0
INT1
PWM0
PWM1
IExternal interrupt inputDP1.2
P1.3
O12-bit PWM outputE-1
D
P0.7
P1.3
AD0-AD11IA/D converter inputE-1P2.0-P2.7
P0.4-P0.7
1-6
KS86C4204/C4208/P4208PRODUCT 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 OVERVIEWKS86C4204/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/P4208ELECTRICAL DATA
16ELECTRICAL 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
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.