Samsung's new SAM8 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 SAM8 microcontrollers have an
external interface that provides access to external memory and other peripheral devices.
A sophisticated interrupt structure recognizes up to eight interrupt levels. Each level can have one or more
interrupt sources and vectors. Fast interrupt processing (within a minimum six CPU clocks) can be assigned to
one interrupt level at a time.
KS88C4616/C4632 MICROCONTROLLER
The KS88C4616/C4632 single-chip 8-bit microcontroller is designed for useful 10-bit resolution A/D converter,
UART, SIO, ZCD extended PWM application field. Its powerful SAM87 CPU architecture includes. The internal
register file is logically expanded to increase the on-chip register space.
The KS88C4616/C4632 has 16/32 K bytes of on-chip program ROM. A sophisticated bus interface enables
access to external memory and other peripherals when you use the chip in ROM-less mode. Following
Samsung's modular design approach, the following peripherals are integrated with the SAM87 core:
— Large number of programmable I/O ports (total 56 pins)
— One asynchronous UART module
— One synchronous SIO module
— Analog-to-digital converter with eight input channels and 10-bit resolution
— One 8-bit basic timer for watchdog function
— One 8-bit timer/counter with three operating modes (timer 0)
— One 8-bit timer for zero-cross detection circuit (timer 2)
— Two general-purpose 16-bit timer/counters with four operating modes (timer module 1)
— PWM block with one capture module, 16-bit timer/counter, PWM extension mode, and two PWM outputs
— One zero cross detection module
The KS88C4616/C4632 is a versatile general-purpose microcontroller that is ideal for use in a wide range of
electronics applications requiring complex timer/counter, PWM, capture, SIO, UART and ZCD functions.
It is available in a 64-pin SDIP or 64-pin QFP package.
OTP
The KS88P4632 is an OTP (One Time Programmable) version of the KS88C4616/C4632 microcontroller. The
KS88P4632 microcontroller has an on-chip 32-Kbyte one-time-programmable EPROM instead of a masked
ROM. The KS88P4632 is comparable to the KS88C4616/C4632, both in function and in pin configuration.
1-1
PRODUCT OVERVIEWKS88C4616/C4632/P4632
FEATURES
CPU
•SAM87 CPU core
Memory
•528-byte general purpose register area
•16/32-Kbyte internal program memory
•ROM-less operating mode
External Interface
•64-Kbyte external data memory area
•64-Kbyte external program memory area
(ROM-less mode)
Instruction Set
•79 instructions
•IDLE and STOP instructions added for
power-down modes
Instruction Execution Time
•500 ns at 12 MHz f
(minimum)
OSC
Interrupts
•21 interrupt sources and 21 vectors
•Eight interrupt levels
•Fast interrupt processing
Timer/Counters
•One 8-bit basic timer for watchdog function
•One 8-bit timer/counter with three operating
modes (timer 0)
•One 8-bit timer for the zero-cross detection
circuit
•Two 16-bit general-purpose timer/counters with
four operating modes (timer C and D)
UART
•One UART module
•Full duplex serial I/O interface with three UART
modes
A/D Converter
•Eight analog input pins
•10-bit conversion resolution
•20 µs conversion time (10 MHz CPU clock)
Zero Cross Detection Circuit
•Zero cross detection circuit that generates a
digital signal in synchronization with an AC
signal input
P0.0–P0.7I/OBit-programmable I/O port for Schmitt trigger
input or push-pull, open-drain, output. Pull-up
resistors are assignable by software.
Port 0 can also be configured as external
interface address line A8–A15
P1.0–P1.7I/OSame general characteristics as port 0.
Port 1 can also be configured as external
interface address/data lines AD0–AD7
P2.0–P2.3
I/OBit-programmable I/O port for Schmitt trigger
input or push-pull output. P2.0–P2.3 can be
configured for external bus control signals.
P2.4–P2.7
P2.4–P2.7 are used for general I/O or for the
ZCD, BUZ, INT2 and INT3
P3.0–P3.7I/OBit-programmable I/O port for Schmitt trigger
input or push-pull output. Each port 3 pin has
an alternative function:
P3.0: PWM0 (PWM0 module output)
P3.1: PWM1 (PWM1 module ouptut)
P3.2: T0 (T0 capture input or PWM output)
P3.3: T0CK (timer 0 external clock input)
P3.4: SCK (SIO module input)
P3.5: SI (SIO module clock I/O)
P3.6: SO (SIO module output)
P3.7: TxD: SO1
(The T0 function for P3.2 is selected using the
T0CON register.)
P4.0–P4.7I/OBit-programmable I/O port for Schmitt trigger
input or push-pull output. Port 4 pins are used
external interrupts INT4–INT11 or for the
following share functions:
P4.1: RxD (UART module input)
P4.3: CAPA (capture input)
P4.4: TCCK (timer/counter C clock input)
P4.5: TDCK (timer/counter D clock input)
P4.6: TCG (timer C gate input)
P4.7: TDG (timer D gate input)