KS86C4004/P4004/C4104/P4104
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.
KS86C4004/C4104 MICROCONTROLLER
The KS86C4004/C4104 single-chip 8-bit microcontroller is fabricated using an advanced CMOS process. It is
built around the powerful SAM87Ri CPU core. The KS86C4004/C4104 is a versatile microcontroller, with its A/D
converter 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 KS86C4004/C4104 has 4-Kbytes 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 (KS86C4004: 22 pins, KS86C4104: 16 pins)
— Six interrupt sources with one vector and one interrupt level
— Two 8-bit timer/counter with various operating modes
— Analog to digital converter (KS86C4004: 8-bit, 8-channel, KS86C4104: 10-bit, 5-channel)
— One zero cross detection module
The KS86C4004/C4104 microcontroller is ideal for use in a wide range of electronic applications requiring simple
timer/counter, PWM, ADC, ZCD and capture functions. KS86C4004 is available in a 30-pin SDIP and a 32-pin
SOP package. KS86C4104 is available in a 24-pin SDIP and a 24-pin SOP package.
OTP
The KS86P4004/P4104 is an OTP (one time programmable) version of the KS86C4004/C4104 microcontroller.
The KS86P4004/P4104 has on-chip 4-Kbyte one-time programmable EEPROM instead of masked ROM. The
KS86P4004/P4104 is fully compatible with the KS86C4004/C4104, in function, in D.C. electrical characteristics
and in pin configuration.
1-1
PRODUCT OVERVIEW
KS86C4004/P4004/C4104/P4104
FEATURES
CPU
•
SAM87Ri CPU core
Timer/Counter
•
•
Memory
•
•
4-Kbyte internal program memory (ROM)
208-byte general purpose register area (RAM)
•
One 8-bit basic timer for watchdog function
One 8-bit timer/counter with three operating
modes (10-bit PWM 1ch)
One 8-bit timer/counter for the zero-crossing
detection circuit
Instruction Set
•
•
41 instructions
IDLE and STOP instructions added for
power-down modes.
Zero-Crossing Detection Circuit
•
Zero-crossing detection circuit that generates a
digital signal in synchronism with an AC signal
input
Instruction Execution Time
•
600 ns at 10 MHz f
OSC
(minimum)
Buzzer Frequency Range
•
200 Hz to 20 kHz signal can be generated
Interrupts
•
6 interrupt sources with one vector and one level
interrupt structure
Operating Temperature Range
•
– 40
°
C to + 85
°
C
Operating Voltage Range
•
2.7 V to 5.5 V
Oscillation Frequency
•
•
•
1 MHz to 10 MHz external crystal oscillator
Maximum 10 MHz CPU clock
4 MHz RC oscillator
OTP Interface Protocol Spec
•
Serial OTP
Package Types
General I/O
•
•
Four I/O ports (22 pins for KS86C4004,
16 pins for KS86C4104)
Bit programmable ports
•
•
30-pin SDIP, 32-pin SOP for KS86C4004/P4004
24-pin SDIP, 24-pin SOP for KS86C4104/P4104
A/D Converter
•
•
•
Eight analog input pins
8-bit conversion resolution (KS86C4004)
10-bit conversion resolution (KS86C4104)
1-2