Samsung S3C9404, S3C9414, S3P9414, S3P9404 Datasheet

S3C9404/P9404/C9414/P9414 PRODUCT OVERVIEW
1 PRODUCT OVERVIEW
SAM87RI PRODUCT FAMILY
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 address/data bus architecture and a large number of bit-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.
S3C9404/C9414 MICROCONTROLLER
The S3C9404/C9414 single-chip 8-bit microcontroller is fabricated using an advanced CMOS process. It is built around the powerful SAM87Ri CPU core. The S3C9404/C9414 is a versatile microcontroller, with its A/D converter and a zero-crossing detection capability it can be used in a wide range of general purpose applications.
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 S3C9404/C9414 has 4-Kbytes of program memory on-chip (ROM) and 208-bytes of general purpose register area RAM.
Using the SAM87Ri design approach, the following peripherals were integrated with the SAM87Ri core: — Four configurable I/O ports (S3C9404: 22 pins, S3C9414: 16 pins)
— Six interrupt sources with one vector and one interrupt level — Two 8-bit timer/counter with various operating modes — Analog to digital converter (S3C9404: 8-bit, 8-channel, S3C9414: 10-bit, 5-channel) — One zero cross detection module
The S3C9404/C9414 microcontroller is ideal for use in a wide range of electronic applications requiring simple timer/counter, PWM, ADC, ZCD and capture functions. S3C9404 is available in a 30-pin SDIP and a 32-pin SOP package. S3C9414 is available in a 24-pin SDIP and a 24-pin SOP package.
OTP
The S3P9404/P9414 is an OTP (one time programmable) version of the S3C9404/C9414 microcontroller. The S3P9404/P9414 has on-chip 4-Kbyte one-time programmable EEPROM instead of masked ROM. The S3P9404/P9414 is fully compatible with the S3C9404/C9414, in function, in D.C. electrical characteristics and in pin configuration.
1-1
PRODUCT OVERVIEW S3C9404/P9404/C9414/P9414
FEATURES
CPU
SAM87Ri CPU core
Memory
4-Kbyte internal program memory (ROM)
208-byte general purpose register area (RAM)
Instruction Set
41 instructions
IDLE and STOP instructions added for
power-down modes.
Instruction Execution Time
600 ns at 10 MHz f
OSC
(minimum)
Interrupts
6 interrupt sources with one vector and one level
interrupt structure
Oscillation Frequency
Timer/Counter
One 8-bit basic timer for watchdog function
One 8-bit timer/counter with three operating
modes (10-bit PWM 1ch)
One 8-bit timer/counter for the zero-crossing
detection circuit
Zero-Crossing Detection Circuit
Zero-crossing detection circuit that generates a
digital signal in synchronism with an AC signal input
Buzzer Frequency Range
200 Hz to 20 kHz signal can be generated
Operating Temperature Range
– 40
°
C to + 85°C
Operating Voltage Range
2.7 V to 5.5 V
1 MHz to 10 MHz external crystal oscillator
Maximum 10 MHz CPU clock
4 MHz RC oscillator
General I/O
Four I/O ports (22 pins for S3C9404,
16 pins for S3C9414)
Bit programmable ports
A/D Converter
Eight analog input pins
8-bit conversion resolution (S3C9404)
10-bit conversion resolution (S3C9414)
OTP Interface Protocol Spec
Serial OTP
Package Types
30-pin SDIP, 32-pin SOP for S3C9404/P9404
24-pin SDIP, 24-pin SOP for S3C9414/P9414
1-2
S3C9404/P9404/C9414/P9414 PRODUCT OVERVIEW
BLOCK DIAGRAM
P1.0-P1.3
P0.0-P0.7
/ZCD,BUZ,T0,CLO
X
IN
X
OUT
T0(PWM)
P1.1/BUZ
ADC0
-ADC7
P1.0/
ZCD
BASIC
TIMER
OSC
TIMER 0
TIMER 1
ADC
ZCD
PORT 0
I/O PORT I/O and
INTERRUPT CONTROL
SAM87RI CPU
4-KB ROM
Figure 1-1. Block Diagram
208-BYTE
REGISTER FILE
PORT 1
PORT 2
PORT 3
P2.0-P2.3 /INT0-INT1 /ADC6-ADC7
P3.0-P3.5 /ADC0-ADC5
1-3
PRODUCT OVERVIEW S3C9404/P9404/C9414/P9414
PIN ASSIGNMENTS
V
SS
X
IN
X
OUT
TEST
P0.1 P0.0
RESET
P3.5/ADC5 P3.4/ADC4 P3.3/ADC3 P3.2/ADC2 P3.1/ADC1 P3.0/ADC0
AV
SS
AV
ref
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
S3C9404
30-SDIP
(Top View)
30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
VDD P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 P1.0 / ZCD P1.1 / BUZ P1.2 / T0(PWM) P1.3 / CLO P2.0 / INT0 P2.1 / INT1 P2.2 / ADC6 P2.3 / ADC7
Figure 1-2. Pin Assignment Diagram (30-Pin SDIP Package)
V
SS
X
X
OUT
TEST
P0.1 P0.0
RESET
NC P3.5/ADC5 P3.4/ADC4 P3.3/ADC3 P3.2/ADC2 P3.1/ADC1 P3.0/ADC0
AV
SS
AV
ref
IN
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
S3C9404
32-SOP
(Top View)
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
V
DD
P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 NC P1.0 / ZCD P1.1 / BUZ P1.2 / T0(PWM) P1.3 / CLO P2.0 / INT0 P2.1 / INT1 P2.2 / ADC6 P2.3 / ADC7
Figure 1-3. Pin Assignment Diagram (32-Pin SOP Package)
1-4
S3C9404/P9404/C9414/P9414 PRODUCT OVERVIEW
V
SS
X
X
OUT
TEST
P0.1 P0.0
RESET
P3.4/ADC4 P3.3/ADC3 P3.2/ADC2 P3.1/ADC1 P3.0/ADC0
IN
1 2 3 4 5 6 7 8 9 10 11 12
S3C9414
24-SDIP
(Top View)
24 23 22 21 20 19 18 17 16 15 14 13
VDD P0.2 P0.3 P0.4 P0.5 P0.6 P1.0 / ZCD P1.1 / BUZ P1.2 / T0(PWM) P2.0 / INT0 AV
ref
AV
SS
Figure 1-4. Pin Assignment Diagram (24-Pin SDIP Package)
V
SS
X
IN
X
OUT
TEST
P0.1 P0.0
RESET
P3.4/ADC4 P3.3/ADC3 P3.2/ADC2 P3.1/ADC1 P3.0/ADC0
1 2 3 4 5
KS86C4104
6 7 8 9 10 11 12
(Top View)
24-SOP
24 23 22 21 20 19 18 17 16 15 14 13
VDD P0.2 P0.3 P0.4 P0.5 P0.6 P1.0 / ZCD P1.1 / BUZ P1.2 / T0(PWM) P2.0 / INT0 AV
ref
AV
SS
Figure 1-5. Pin Assignment Diagram (24-Pin SOP Package)
1-5
PRODUCT OVERVIEW S3C9404/P9404/C9414/P9414
PIN DESCRIPTIONS
Table 1-1. S3C9404/C9414 Pin Descriptions
Pin
Names
Pin
Type
P0.0-P0.7 I/O
P1.0-P1.3 I/O
P2.0-P2.3 I/O
P3.0-P3.5 I/O
XIN, X
OUT
INT0–INT1 I
RESET
TEST I
Pin
Description
Bit-programmable I/O port for normal input or
Circuit
Type
E-2
Share
Pins
push-pull, open-drain output. Pull-up resistors are assignable by software.
Bit-programmable I/O port for Schmitt trigger input or push-pull output. Pull-up resistors are assignable by software. Port 1 pins can also be used as alternative functions.
Bit-programmable I/O port for Schmitt trigger input or push-pull, open drain output. Pull up
F D D D
E
E-1
ZCD BUZ
T0(PWM)
CLO
INT0–INT1
ADC6–ADC7 resistors are assignable by software. Port 2 can also be used as external interrupt, A/D input.
Bit-programmable I/O port for Schmitt trigger
F ADC0–ADC5 input or push-pull output. Pull-up resistors are assignable by software. Port 3 pins can also be used as A/D converter input.
Crystal/ceramic, or RC oscillator signal for system
– clock.
External interrupt input.
I
System RESET signal input pin. Test signal input pin (for factory use only: must be
E P2.0–P2.1
B
– connected to VSS)
V
DD, VSS
AV
REF,
AV
SS
ZCD I BUZ O
– –
Voltage input pin and ground A/D converter reference voltage input and ground Zero crossing detector input 200 Hz–20 kHz frequency output for buzzer
sound
T0 I/O
CLO O
ADC0–ADC7 I
NOTE: Port 0.7, P1.3, P2.1–P2.3 and P3.5 is not available in S3C9414/P4104 .
Timer 0 capture input or 10-bit PWM output System clock output port A/D converter input
F P1.0
D P1.1
D P1.2
D P1.3
F
E-1
P3.0–P3.5 P2.2–P2.3
1-6
S3C9404/P9404/C9414/P9414 PRODUCT OVERVIEW
PIN CIRCUITS
V
VDD
DD
P-CHANNEL
IN
N-CHANNEL
Figure 1-6. Pin Circuit Type A
V
DD
PULL-UP RESISTOR
DATA
OUTPUT DISABLE
RESISTOR
ENABLE
P-CHANNEL
N-CHANNEL
Figure 1-8. Pin Circuit Type C
V
DD
PULL-UP RESISTOR
P-CHANNEL
OUT
IN
Figure 1-7. Pin Circuit Type B
DATA
OUTPUT
DISABLE
DATA
CIRCUIT
TYPE C
Figure 1-9. Pin Circuit Type D
IN/OUT
1-7
PRODUCT OVERVIEW S3C9404/P9404/C9414/P9414
PNE
DATA
OUTPUT DISABLE
INPUT
V
V
DD
DD
P-CH
N-CH
Figure 1-10. Pin Circuit Type E
PULL-UP RESISTOR
PULL-UP ENABLE
IN/OUT
PNE
DATA
OUTPUT DISABLE
INPUT
V
V
DD
DD
P-CH
N-CH
Figure 1-10. Pin Circuit Type E-2
PULL-UP RESISTOR
PULL-UP ENABLE
IN/OUT
PNE
DATA
OUTPUT DISABLE
DIGITAL INPUT
ANALOG INPUT
Figure 1-11. Pin Circuit Type E-1
V
DD
P-CH
N-CH
V
DD
PULL-UP RESISTOR
PULL-UP ENABLE
IN/OUT
PULL-UP
ENABLE
DATA
OUTPUT
DISABLE
DIGITAL
INPUT
ANALOG
INPUT
V
DD
V
DD
CIRCUIT
TYPE C
Figure 1-12. Pin Circuit Type F
PULL-UP RESISTOR
IN/OUT
1-8
S3C9404/P9404/C9414/P9414 ELECTRICAL DATA
13 ELECTRICAL DATA
OVERVIEW
In this section, the following S3C9404/C9414 electrical characteristics are presented in tables and graphs: — Absolute maximum ratings
— D.C. electrical characteristics — A.C. electrical characteristics — Oscillator characteristics — Oscillation stabilization time — Operating Voltage Range — Schmitt trigger input characteristics — Data retention supply voltage in Stop mode — Stop mode release timing when initiated by a RESET — A/D converter electrical characteristics — Zero-crossing detector — Zero Crossing Waveform Diagram
13-1
ELECTRICAL DATA S3C9404/P9404/C9414/P9414
Table 13-1. Absolute Maximum Ratings
(TA = 25°C)
Parameter Symbol Conditions Rating Unit
Supply voltage Input voltage Output voltage Output current
V
DD
I
V
V
OH
I
O
All input ports All output ports One I/O pin active – 18 mA
– 0.3 to + 6.5 V
– 0.3 to V
DD
+ 0.3
– 0.3 to VDD + 0.3
V V
high All I/O pins active – 60 Output current
I
OL
One I/O pin active + 30 mA
low Total pin current for ports 1, 2, 3 + 100
Total pin current for ports 0 + 200
Operating
T
A
– 40 to + 85
°
C
temperature Storage
T
STG
– 65 to + 150
°
C
temperature
Table 13-2. DC Electrical Characteristics
(T
= – 40°C to + 85°C, VDD = 2.7 V to 5.5 V)
A
Parameter Symbol Conditions Min Typ Max Unit
Input high voltage
Input low voltage
Output high voltage
Output low voltage
V
IH1
V
IH2
V
IH3
V
IL1
V
IL2
V
IL3
V
OH
V
OL1IOL
V
OL2IOL
Ports 1,2,3, and
RESET
Port 0 X
and X
IN
OUT
Ports 1,2,3, and
RESET
Port 0 X
and X
IN
OUT
IOH = – 1 mA ports 0, 1, 2, 3
= 15 mA
port 0
= 4 mA
VDD= 2.7 to 5.5 V 0.8 V
0.7 V
VDD –0.1
VDD= 2.7 to 5.5 V
VDD= 4.5 to 5.5 V V
VDD= 4.5 to 5.5 V
DD
0.4 2.0 V
VDD= 4.5 to 5.5 V
DD
DD
– 1.0
V
DD
0.2 V
0.3 V
DD
DD
0.1
V
0.4 2.0
port 1,2,3
V
V
13-2
Loading...
+ 22 hidden pages