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 OVERVIEWKS86C4004/P4004/C4104/P4104
FEATURES
CPU
•SAM87Ri CPU core
Memory
•4-Kbyte internal program memory (ROM)
•208-byte general purpose register area (RAM)
Instruction Set
•41 instructions
•IDLE and STOP instructions added for
power-down modes.
Instruction Execution Time
•600 ns at 10 MHz f
OSC
(minimum)
Interrupts
•6 interrupt sources with one vector and one level
interrupt structure
Oscillation Frequency
•1 MHz to 10 MHz external crystal oscillator
•Maximum 10 MHz CPU clock
•4 MHz RC oscillator
General I/O
•Four I/O ports (22 pins for KS86C4004,
16 pins for KS86C4104)
•Bit programmable ports
Timer/Counter
•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
Zero-Crossing Detection Circuit
•Zero-crossing detection circuit that generates a
digital signal in synchronism with an AC signal
input
push-pull, open-drain output. Pull-up resistors are
assignable by software.
P1.0-P1.3I/OBit-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.
P2.0-P2.3I/OBit-programmable I/O port for Schmitt trigger
input or push-pull, open drain output. Pull up
F
D
D
D
E
E-1
ZCD
BUZ
T0(PWM)
CLO
INT0–INT1
ADC6–ADC7
resistors are assignable by software. Port 2 can
also be used as external interrupt, A/D input.
P3.0-P3.5I/OBit-programmable I/O port for Schmitt trigger
FADC0–ADC5
input or push-pull output. Pull-up resistors are
assignable by software. Port 3 pins can also be
used as A/D converter input.
XIN, X
OUT
–
Crystal/ceramic, or RC oscillator signal for
––
system clock.
INT0–INT1IExternal interrupt input.EP2.0–P2.1
RESET
TESTITest signal input pin (for factory use only: must be
ISystem RESET signal input pin.B–
––
connected to VSS)
V
DD, VSS
AV
REF,
AV
SS
–Voltage input pin and ground––
–A/D converter reference voltage input and ground––
ZCDIZero crossing detector inputFP1.0
BUZO200 Hz–20 kHz frequency output for buzzer soundDP1.1
T0I/OTimer 0 capture input or 10-bit PWM outputDP1.2
CLOOSystem clock output portDP1.3
ADC0–ADC7IA/D converter inputF
E-1
P3.0–P3.5
P2.2–P2.3
NOTE: Port 0.7, P1.3, P2.1–P2.3 and P3.5 is not available in KS86C4104/P4104 .
1-8
KS86C4004/P4004/C4104/P4104PRODUCT OVERVIEW
PIN CIRCUITS
V
DD
V
DD
P-CHANNEL
IN
N-CHANNEL
Figure 1-6. Pin Circuit Type A
V
DD
PULL-UP
RESISTOR
IN
DATA
OUTPUT
DISABLE
RESISTOR
ENABLE
OUTPUT
DISABLE
Figure 1-8. Pin Circuit Type C
V
DD
DATA
CIRCUIT
TYPE C
P-CHANNEL
OUT
N-CHANNEL
PULL-UP
RESISTOR
P-CHANNEL
IN/OUT
Figure 1-7. Pin Circuit Type B
DATA
Figure 1-9. Pin Circuit Type D
1-9
PRODUCT OVERVIEWKS86C4004/P4004/C4104/P4104
PNE
DATA
OUTPUT
DISABLE
INPUT
PNE
V
V
DD
DD
P-CH
N-CH
Figure 1-10. Pin Circuit Type E
V
DD
V
DD
PULL-UP
RESISTOR
PULL-UP
RESISTOR
PULL-UP
ENABLE
IN/OUT
PNE
DATA
OUTPUT
DISABLE
INPUT
V
V
DD
DD
PULL-UP
RESISTOR
P-CH
PULL-UP
ENABLE
N-CH
Figure 1-10. Pin Circuit Type E-2
V
DD
PULL-UP
RESISTOR
IN/OUT
DATA
OUTPUT
DISABLE
DIGITAL INPUT
ANALOG INPUT
Figure 1-11. Pin Circuit Type E-1
1-10
P-CH
N-CH
PULL-UP
ENABLE
IN/OUT
PULL-UP
ENABLE
DATA
OUTPUT
DISABLE
DIGITAL
INPUT
ANALOG
INPUT
V
DD
CIRCUIT
TYPE C
Figure 1-12. Pin Circuit Type F
IN/OUT
KS86C4004/P4004/C4104/P4104 ELECTRICAL DATA
13ELECTRICAL DATA
OVERVIEW
In this section, the following KS86C4004/C4104 electrical characteristics are presented in tables and graphs:
— Absolute maximum ratings
— D.C. electrical characteristics
— A.C. electrical characteristics
— Oscillator characteristics
— Oscillation stabilization time
— Operating Voltage Range
— Schmitt trigger input characteristics
— Data retention supply voltage in Stop mode
— Stop mode release timing when initiated by a RESET
— A/D converter electrical characteristics
— Zero-crossing detector
— Zero Crossing Waveform Diagram
13-1
Loading...
+ 23 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.