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
Page 2
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
Page 6
PRODUCT OVERVIEWS3C9004/P9004/C9014/P9014
PIN CIRCUITS
Table 1-2. Pin Circuit Assignments for the S3C9004/P9004/C9014/P9014
0 V = Internal ROM Access
5 V = External ROM Access
Figure 1-4. Pin Circuit Type B (EA)
VDD
I/O
V
SS
1-6
MODEINPUT DATA
OUTPUT
INPUT
D0
D1
Figure 1-5. Pin Circuit Type C (Ports 0, 1, and 3)
Page 7
S3C9004/P9004/C9014/P9014PRODUCT OVERVIEW
VDD
PULL-UP
RESISTOR
PULL-UP
ENABLE
VDD
OUTPUT
DATA
OPEN
DRAIN
I/O
OUTPUT
DISABLE
V
SS
INPUT
DATA
MUX
D0
D1
MODEINPUT DATA
OUTPUTD0
INPUT
D1
Figure 1-6. Pin Circuit Type D (Ports 2 and 4)
1-7
Page 8
PRODUCT OVERVIEWS3C9004/P9004/C9014/P9014
APPLICATION CIRCUIT
5V
5V
V
DD
0
1
PORT 3
PORT 0PORT 1PORT 2
EA
2
3
15
S3C9004
X
IN
R
OSC
X
OUT
S3P9004
0
1
RESET
H
O
S
T
CLK
DATA
PORT 4
V
SS1
V
SS2
2
3
7
KEYBOARD
MATRIX
Figure 1-7. Keyboard Control Application Circuit Diagram
1-8
Page 9
S3C9004/P9004/C9014/P9014ELECTRICAL DATA
12 ELECTRICAL DATA
OVERVIEW
In this section, the following S3C9004/P9004/C9014/P9014 electrical characteristics are presented in tables and
graphs:
— Absolute maximum ratings
— D.C. electrical characteristics
— I/O capacitance
— A.C. electrical characteristics
— Input timing for RESET
— Input timing for external interrupts (ports 2 and 4, RESET, and EA)
— Oscillator characteristics
— Oscillation stabilization time
— Clock timing measurement points at X
— Data retention supply voltage in Stop mode
— Stop mode release timing when initiated by a reset
— Stop mode release timing when initiated by an external interrupt
— External Memory timing characteristics (8 MHz)
— External Memory Read and Write timing
— Characteristic curves
IN
12-1
Page 10
ELECTRICAL DATAS3C9004/P9004/C9014/P9014
Table 12-1. Absolute Maximum Ratings
(TA = 25°C)
ParameterSymbolConditionsRatingUnit
Supply Voltage
Input Voltage
Output Voltage
Output Current
High
Output Current
Low
V
DD
V
I
V
IN
O
OH
All input ports
All output ports
One I/O pin active– 18mA
–– 0.3 to + 6.5V
– 0.3 to V
DD
+ 0.3
– 0.3 to VDD + 0.3
V
V
All I/O pins active– 60
I
OL
One I/O pin active+ 25mA
Total pin current for ports 3+ 100
Total pin current for ports 0, 1, 2, 4+ 100
AS ↑ to address float delay
AS ↑ to read data required valid
AS Low width
Address float to DS ↓
DS (read) Low width
DS (write) Low width
DS ↓ to read data required valid
Read data to DS ↑ hold time
DS ↑ to address active delay
DS ↑ to AS ↓ delay
Write data valid to DS (write) ↓ delay
R/W valid to AS ↑ delay
DS↑ to write data not valid delay
10–
35–
–140
88–
0–
314–
164–
–80
0–
20–
30–
10–
20–
20–
NOTES:
1.All times are in nano seconds (ns) and assume an 4 MHz input frequency.
2.Wait states add 100 ns to the time of numbers 3, 6a, 6b, and 7.
12-11
Page 20
ELECTRICAL DATAS3C9004/P9004/C9014/P9014
R/ (P2.2)
W
12
PORT0
DM
(P2.3)
A8−A12,
DM
PORT1
AS
DS
(P2.0)
(P2.1)
3
A0−A7D0−D 7 OUTD0−D7INOUT
1211
5
4
7
6
Figure 12-7. External Memory Read and Write Timing
(See Table 12-8 for a description of each timing point.)
9
10
8
13
12-12
Page 21
S3C9004/P9004/C9014/P9014ELECTRICAL DATA
CHARACTERISTIC CURVES
NOTE
The characteristic values shown in the following graphs are based on actual test measurements. They do
not, however, represent guaranteed operating values.
(TA = 25 C)
7
f
= 10 MHz
OSC
f
OSC
f
OSC
= 8 MHz
= 5 MHz
I
DD1
6
5
4
(mA)
3
f
OSC
= 2 MHz
2
1
~
0
~
2.5
3.03.54.04.55.05.56.0
f
OSC
= 1 MHz
VDD (V)
Figure 12-8. I
DD1
vs. V
DD
12-13
Page 22
ELECTRICAL DATAS3C9004/P9004/C9014/P9014
I
DD2
(µA)
1400
1200
1000
800
600
400
200
0
(TA = 25 C)
~
~
2.5
3.03.54.04.55.05.56.0
VDD (V)
f
OSC
f
OSC
f
OSC
f
OSC
= 10 MHz
= 5,8 MHz
= 1 MHz
= 2 MHz
Figure 12-9. I
DD2
vs. V
DD
12-14
Page 23
S3C9004/P9004/C9014/P9014ELECTRICAL DATA
(TA = 25 C)
750
700
650
600
I
DD3
(nA)
550
500
450
400
f
= 5 MHz
OSC
~
0
~
2.5
3.03.54.04.55.05.56.0
VOH (V)
VDD (V)
Figure 12-10. I
6
5
4
3
2
1
0
-1
09101112
23456781
DD
vs. V
DD3
= 4.5VV
DD
V
DD
= 5.0VV
DD
= 5.5V
IOH (mA)
Figure 12-11. IOH vs. V
OH
12-15
Page 24
ELECTRICAL DATAS3C9004/P9004/C9014/P9014
7
6
5
VOL (V)
4
3
V
= 4.5V
2
1
010121417
23456781
DD
9111315 16
DD
= 5.0V
V
DD
= 5.5VV
IOL (mA)
Figure 12-12. VOL vs. I
7
6
(Port 0, 1, 2, and 4)
OL
12-16
VOL (V)
5
4
V
= 4.5V
3
2
1
010121417
23456781
DD
9111315 16
V
DD
V
= 5.0V
DD
= 5.5V
IOL (mA)
Figure 12-13. VOL vs. I
OL
(Port 3)
Page 25
S3C9004/P9004/C9014/P9014MECHANICAL DATA
13MECHANICAL DATA
OVERVIEW
The S3C9004/P9004/C9014/P9014 is currently available in a 40-pin DIP package.
(2.00)
#40#21
± 0.2
13.85
#1#20
40-DIP-600B
52.82 MAX
52.42
0.46
± 0.1
1.27
± 0.1
± 0.2
2.54
15.24
± 0.2
0.51MIN3.95
5.08MAX
± 0.3
3.30
+0.1
– 0.05
0.25
0-15
°
: Dimensions are in millimeters.
NOTE
Figure 13-1. 40-Pin DIP Package Mechanical Data (40-DIP-600B)
13-1
Page 26
MECHANICAL DATAS3C9004/P9004/C9014/P9014
NOTES
13-2
Loading...
+ 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.