Samsung's SAM87RI family of 8-bit single-chip CMOS microcontrollers offer fast and efficient CPU, a wide range
of integrated peripherals, and supports OTP device.
A dual address/data bus architecture and bit- or nibble-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.
KS86C6104/P6104 MICROCONTROLLER
The KS86C6104/P6104 microcontroller with USB function can be used in a wide range of general purpose
applications. It is especially suitable for mouse or joystick controller and is available in 20-pin DIP and 24-pin
SOP package.
The KS86C6104/P6104 single-chip 8-bit microcontroller is fabricated using an advanced CMOS process. It is
built around the powerful SAM87RI CPU core.
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 KS86C6104/P6104 has 4 Kbytes of
program memory on-chip and 208 bytes of RAM including 16 bytes of working register.
Using the SAM87Ri design approach, the following peripherals were integrated with the SAM87Ri core:
— Two configurable I/O ports (11 pins)
— 7 bit-programmable pins for external interrupts
— 8-bit timer/counter with two operating modes
OTP
The KS86C6104 microcontroller is also available in OTP (One Time Programmable) version, KS86P6104.
KS86P6104 microcontroller has an on-chip 4-Kbyte one-time-programmable EPROM instead of masked ROM.
The KS86P6104 is comparable to KS86C6104, both in function and in pin configuration.
1-1
PRODUCT OVERVIEWKS86C6104/P6104
FEATURES
CPU
•SAM87RI CPU core
Memory
•4-Kbyte internal program memory (ROM)
•208-byte RAM
•16 bytes of working register
Instruction Set
•41 instructions
•IDLE and STOP instructions added for powerdown modes
Instruction Execution Time
•1.0 µs at 6 MHz f
OSC
Interrupts
•12 interrupt sources with one vector
•One level, one vector interrupt structure
Oscillation Circuit Options
•6 MHz crystal/ceramic oscillator
•External clock source
General I/O
•11 bit-programmable I/O pins
Timer/Counter
•One 8-bit basic timer for watchdog function and
programmable oscillation stabilization interval
generation function
•One 8-bit timer/counter with Compare/Overflow
counter
USB Serial Bus
•Compatible to USB low speed (1.5 Mbps) device
1.0 specification.
•Serial bus interface engine (SIE)
— Packet decoding/generation
— CRC generation and checking
— NRZI encoding/decoding and bit-stuffing
P0.0–P0.2I/OBit-programmable I/O port for Schmitt trigger
Pin
Type
Pin
Description
Circuit
Number
Pin
Numbers
D5, 6, 8INT0
input or push-pull output. Pull-up resistors are
individually assignable to input pins by software
and are automatically disable for output pins.
Port0 can be individually configured as external
interrupt inputs.
P1.0–P1.3I/OBit-programmable I/O port for Schmitt trigger
F-819–16CIN0–
input or push-pull output. Pull-up resistors are
individually assignable to input pins by software.
Port1.0–1.3 can be configured as comparator
input
P1.4-P1.7I/OBit-programmable I/O port for Schmitt trigger
D15, 14, 10, 9INT1
input or push-pull output. Pull-up resistors are
individually assignable to input pins by software
and are automatically disabled for output pins.
Port1.4–1.7 can be individually configured as
external interrupt inputs.
D+/D-I/OOnly used as USB tranceive/receive port.–12–11–
3.3VOUTOInternal regulator 3.3 V output pin for referencing
–13–
the voltage
XIN, X
OUT
–System clock input and output pin
–3–2–
(crystal/ceramic oscillator, or external clock
source)
INT0IExternal interrupt for bit-programmable port0.D5, 6, 8Port0
INT1IExternal interrupt for bit-programmable port1D9, 10, 14, 15Port1
RESET
TESTITest signal input pin (for factory use only; must
IRESET signal input pin.–7–
–4–
be connected to VSS)
Share
Pins
CIN3
1-6
V
DD
V
SS
–Power input pin–20–
–VSS is a ground power for CPU core.–1–
KS86C6104/P6104PRODUCT OVERVIEW
PIN CIRCUITS
Table 1-2. Pin Circuit Assignments for the KS86C6104/P6104