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.
S3C9004/P9004/C9014/P9014 MICROCONTROLLER
The S3C9004/P9004/C9014/P9014 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 S3C9004/P9004/C9014/P9014 has 4 K
bytes of program memory on-chip.
Using the SAM87RI design approach, the following peripherals were integrated with the SAM87RI core:
— Five configurable I/O ports (32 pins)
— 12 bit-programmable pins for external interrupts
— 8-bit timer/counter with three operating modes
The S3C9004/P9004/C9014/P9014 is a versatile microcontroller that can be used in a wide range of general
purpose applications. It is especially suitable for use as a keyboard controller and is available in a 40-pin DIP and
a 44-pin QFP package.
OTP
The S3C9004/C9014 microcontroller is also available in OTP (One Time Programmable) version,
S3P9004/P9014. S3P9004/P9014 microcontroller has an on-chip 8-Kbyte one-time-programmable EPROM
instead of masked ROM. The S3P9004/P9014 is comparable to S3C9004/C9014, both in function and in pin
configuration.
1-1
PRODUCT OVERVIEWS3C9004/P9004/C9014/P9014
FEATURES
CPU
•SAM87RI CPU core
Memory
•4-Kbyte internal program memory (ROM)
•208-byte internal register file
•8-Kbyte external program memory
•8-Kbyte external data memory
Instruction Set
•41 instructions
•IDLE and STOP instructions added for powerdown modes
Instruction Execution Time
•1.5 µs at 4 MHz f
OSC
Interrupts
•14 interrupt sources with one vector, Each
source has its pending bit
•One level, one vector interrupt structure
General I/O
•Five ports (32 pins total)
•Three bit-programmable ports (20 pins total)
•Two bit-programmable ports with external
interrupts (12 pins total)
Timer/Counter
•One 8-bit basic timer for watchdog function and
programmable oscillation stabilization interval
generation function
•One 8-bit timer/counter with PWM mode
Operating Temperature Range
•– 40°C to + 85°C
Operating Voltage Range
•4.5 V to 5.5 V for S3C9004/P9004
•2.7 V to 5.5 V for S3C9014/P9014
Package Types
•40-pin DIP
Oscillation Circuit Options
•4 MHz RC oscillator with on chip capacitor for
S3C9004/P9004 ( –10% RC accuracy at VDD ±
5% and Ta = 0°C–70°C, using 1% external
precision resistor)
P0.0-P0.7I/OBit-programmable I/O port for Schmitt trigger
input or open-drain output. Port0 can also be
configured as external interface address lines A8A12.
P1.0-P1.7I/OBit-programmable I/O port for Schmitt trigger
input, push-pull, or open-drain output. Port1 can
alternatively be used as external interface
address/data lines AD0-AD7.
P2.0-P2.7I/OBit-programmable I/O port for Schmitt trigger
input or push-pull output. Port2 can be
individually configured as external interrupt
inputs. Especially, P2.0-2.3 can be configured for
external bus control signal.
P3.0-P3.3I/OSame general characteristics as Port1. Port3 are
designed for to drive LED directly. P3.3 can be
used to system clock output (CLO) port.
P4.0-P4.3I/OBit-programmable I/O port. Input mode or n-
channel open-drain output mode is software
assignable. Port4 can be individually configured
as external interrupt inputs. Pull-up resistors are
also software assignable. Especially, P4.1 can be
used T0CLK input and P4.3 also T0OUT for
Timer 0.
XIN, X
OUT
–System clock input and output pin (for RC
oscillator, crystal/ceramic oscillator, or external
clock source)
INTIExternal interrupt for bit-programmable port2 and
port4 pins when set to input mode.
RESET
I
RESET signal input pin. Schmitt trigger input with
internal pull-up resistor.
EAIExternal Memory Access (EA) pin with 2 modes:
0V = Normal Operation Mode
5V = ROMLESS Operation Mode
(Must be connected to VSS during normal
operation mode)
V
SS1
V
DD
V
,
SS2
–Power input pin–37–
–Vss1 is a ground power for CPU core.
Vss2 is a ground power for I/O and OSC block
NC–No connection
(This pin would be better connecting to VSS)
Circuit
Number
Pin
Numbers
C36-29A8-A12
C23-16AD0-AD7
D6-13
INT, AS,
DS, R/W,
C1, 40-38P3.3/CLO
D2-5INT,
T0CLK,
T0OUT
–27, 28–
–2-13PORT2/
PORT4
A26–
B24–
–15, 25–
–14–
Share
Pins
DM
1-5
PRODUCT OVERVIEWS3C9004/P9004/C9014/P9014
PIN CIRCUITS
Table 1-2. Pin Circuit Assignments for the S3C9004/P9004/C9014/P9014