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 dual address/data bus architecture and a large number of 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. Many SAM87RI microcontrollers have
an external interface that provides access to external memory and other peripheral devices.
KS86C6404/C6408/P6408 MICROCONTROLLER
The KS86C6404/C6408/P6408 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 KS86C6404 has 4 K bytes of program
memory on-chip and KS86C6408 has 8 K bytes.
Using the SAM87RI design approach, the following peripherals were integrated with the SAM87RI core:
— Five configurable I/O ports (32 pins)
— 20 bit-programmable pins for external interrupts
— 8-bit timer/counter with three operating modes
— Low speed USB function
The KS86C6404/C6408/P6408 is a versatile microcontroller that can be used in a wide range of low speed USB
support general purpose applications. It is especially suitable for use as a keyboard controller and is available in
a 42-pin SDIP and a 44-pin QFP package.
OTP
The KS86C6404/C6408 microcontroller is also available in OTP (One Time Programmable) version,
KS86P6408. KS86P6408 microcontroller has an on-chip 8-Kbyte one-time-programmable EPROM instead of
masked ROM. The KS86P6408 is comparable to KS86C6404/C6408, both in function and in pin configuration.
1-1
PRODUCT OVERVIEWKS86C6404/C6408/P6408
FEATURES
CPU
•SAM87RI CPU core
Memory
•4/8-Kbyte internal program memory (ROM)
•208-byte RAM
Instruction Set
•41 instructions
•IDLE and STOP instructions added for powerdown modes
Instruction Execution Time
•1.0 µs at 6 MHz f
OSC
Interrupts
•25 interrupt sources with one vector, each
source has its pending bit
•One level, one vector interrupt structure
Oscillation Circuit
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
USB Serial Bus
•Compatible to USB low speed (1.5 Mbps) device
1.0 specification.
•1 Control endpoint and 2 Data endpoint
•Serial bus interface engine (SIE)
— Packet decoding/generation
— CRC generation and checking
— NRZI encoding/decoding and bit-stuffing
P0.0-P0.7I/OBit-programmable I/O port for Schmitt trigger
Pin
Type
Pin
Description
Circuit
Number
B36-29
input or open-drain output. Port0 can be
individually configured as external interrupt
inputs. Pull-up resistors are assignable by
software.
P1.0-P1.7I/OBit-programmable I/O port for Schmitt trigger
B28-21
input or open-drain output. Pull-up resistors are
assignable by software.
P2.0-P2.7I/OBit-programmable I/O port for Schmitt trigger
B3-10
input or open-drain output. Port2 can be
individually configured as external interrupt
inputs. Pull-up resistors are assignable by
software.
P3.0-P3.3I/OBit-programmable I/O port for Schmitt trigger
C2, 1, 42, 41
input, open-drain or push-pull output. P3.3 can
be used to system clock output(CLO) pin.
P4.0-P4.3I/OBit-programmable I/O port for Schmitt trigger
D16, 17, 19, 20
input or open-drain output or push-pull output.
Port4 can be individually configured as external
interrupt inputs. In output mode, pull-up resistors
are assignable by software. But in input mode,
pull-up resistors are fixed.
D+/PS2
D-/PS2
3.3 V
XIN, X
OUT
OUT
I/OProgrammable port for
–40-39 (36-35)–
USB interface or PS2 interface.
–3.3 V output from internal voltage regulator–38 (34)–
–System clock input and output pin
–14, 13
(crystal/ceramic oscillator, or external clock
source)
INT0
INT1
IExternal interrupt for bit-programmable port0,
port2 and port4 pins when set to input mode.
–3-10, 16,17,
INT2
RESETIRESET signal input pin. Input with internal pull-