The S3C7238/C7235 single-chip CMOS microcontroller has been designed for high performance using
Samsung's newest 4-bit CPU core, SAM47 (Samsung Arrangeable Microcontrollers).
With features such as LCD direct drive capability, 8-bit timer/counter, and serial I/O, the S3C7238/C7235 offer
an excellent design solution for a wide variety of applications that require LCD functions.
Up to 40 pins of the 80-pin QFP package can be dedicated to I/O. Six vectored interrupts provide fast response
to internal and external events. In addition, the S3C7238/C7235's advanced CMOS technology provides for low
power consumption and a wide operating voltage range.
OTP
The S3C7238/C7235 microcontroller is also available in OTP (One Time Programmable) version,
S3P7238/P7235. S3P7238/P7235 microcontroller has an on-chip 8/16-Kbyte one-time-programmable EPROM
instead of masked ROM. The S3P7238/P7235 is comparable to S3C7238/C7235, both in function and in pin
configuration.
1-1
PRODUCT OVERVIEWS3C7238/P7238/C7235/P7235
FEATURES
Memory
–512 × 4-bit RAM
–8 K × 8-bit ROM (S3C7238/P7238)
–16 K × 8-bit ROM (S3C7235/P7235)
–Idle mode (only CPU clock stops)
–Stop mode (main or sub system oscillation stops)
Oscillation Sources
–Crystal, ceramic, or RC for main system clock
–Crystal or external oscillator for subsystem clock
–Main system clock frequency: 4.19 MHz (typical)
–Subsystem clock frequency: 32.768 kHz
–CPU clock divider circuit (by 4, 8, or 64)
Instruction Execution Times
–0.95, 1.91, 15.3 µs at 4.19 MHz (main)
–122 µs at 32.768 kHz (subsystem)
–Real-time and interval time measurement
–Four frequency outputs to BUZ pin
–Clock source generation for LCD
8-Bit Serial I/O Interface
–8-bit transmit/receive mode
–8-bit receive only mode
–LSB-first or MSB-first transmission selectable
–Internal or external clock source
display expansion
TCL0I/OExternal clock input for timer/counter 027P1.3InputA-1
TCLO0I/OTimer/counter 0 clock output28P2.0InputD
SIISerial interface data input23P0.3InputA-1
SOI/OSerial interface data output22P0.2Input
SCK
INT0
INT1
I/OSerial I/O interface clock signal21P0.1Input
IExternal interrupts. The triggering edge for
INT0 and INT1 is selectable. Only INT0 is
24
25
P1.0
P1.1
InputA-1
D
D
synchronized with the system clock.
INT2IQuasi-interrupt with detection of rising edge
26P1.2InputA-1
signals.
INT4IExternal interrupt input with detection of rising
20P0.0InputA-1
or falling edge
KS0–KS7I/OQuasi-interrupt inputs with falling edge
44–51P6.0–P7.3Input
D
detection.
CLOI/OCPU clock output30P2.2InputD
BUZI/O2, 4, 8 or 16 kHz frequency output for buzzer
31P2.3InputD
sound with 4.19 MHz main system clock or
32.768 kHz subsystem clock.
X
IN,
X
OUT
XT
IN,
XT
OUT
V
DD
V
SS
RESET
TEST–
–Crystal, ceramic or RC oscillator pins for main
15,14–––
system clock. (For external clock input, use
XIN and input XIN‘s reverse phase to X
–Crystal oscillator pins for subsystem clock.
OUT
)
17,18–––
(For external clock input, use XTIN and input
XTIN's reverse phase to XT
OUT
)
–Main power supply12–––
–Ground13–––
–Reset signal19–InputB
Test signal input (must be connected to VSS)
16–––
*
*
*
NOTES:
1.Pull-up resistors for all I/O ports are automatically disabled if they are configured to output mode.
2.D * Type has a schmitt trigger circuit at input.
1-6
S3C7238/P7238/C7235/P7235PRODUCT OVERVIEW
PIN CIRCUIT DIAGRAMS
V
DD
IN
Figure 1-3. Pin Circuit Type A
V
DD
PULL-UP
RESISTOR
P-CHANNEL
P-CHANNEL
N-CHNNEL
RESISTOR
ENABLE
DATA
OUTPUT
DISABLE
Figure 1-5. Pin Circuit Type C
RESISTOR
ENABLE
V
DD
P-CHANNEL
N-CHANNEL
V
DD
PULL-UP
RESISTOR
P-CHANNEL
OUT
IN
SCHMITT TRIGGER
Figure 1-4. Pin Circuit Type A-1 (P1, P0.0, P0.3)
DATA
OUTPUT
DISABLE
CIRCUIT
TYPE C
CIRCUIT TYPE A
Figure 1-6. Pin Circuit Type D
(P0.1, P0.2, P2, P3, P6, P7)
I/O
1-7
PRODUCT OVERVIEWS3C7238/P7238/C7235/P7235
RESISTOR
V
DD
PNE
DATA
P-CH
PULL-UP
V
DD
RESISTOR
ENABLE
I/O
V
DD
V
LC0
V
LC1
OUTPUT
N-CH
ENABLE
CIRCUIT TYPE A
Figure 1-7. Pin Circuit Type E (P4, P5)
V
LC0
V
LC1
LCD SEGMENT/
COMMON DATA
V
LC2
OUT
LCD SEGMENT/
& PORT 8 DATA
V
LC2
Figure 1-9. Pin Circuit Type H-16 (P8)
V
DD
IN
OUT
Figure 1-8. Pin Circuit Type H-15 (SEG/COM)
1-8
SCHMITT TRIGGER
Figure 1-10. Pin Circuit Type B (RESETRESET)
S3C7238/P7238/C7235/P7235ELECTRICAL DATA
14ELECTRICAL DATA
OVERVIEW
In this section, information on S3C7238/C7235 electrical characteristics is presented as tables and graphics. The
information is arranged in the following order:
Standard Electrical Characteristics
— Absolute maximum ratings
— D.C. electrical characteristics
— Main system clock oscillator characteristics
— Subsystem clock oscillator characteristics
— I/O capacitance
— A.C. electrical characteristics
— Operating voltage range
Miscellaneous Timing Waveforms
— A.C timing measurement point
— Clock timing measurement at X
— Clock timing measurement at XT
— TCL timing
— Input timing for RESET
— Input timing for external interrupts
— Serial data transfer timing
Stop Mode Characteristics and Timing Waveforms
— RAM data retention supply voltage in stop mode
— Stop mode release timing when initiated by RESET
— Stop mode release timing when initiated by an interrupt request
IN
IN
14-1
ELECTRICAL DATAS3C7238/P7238/C7235/P7235
Table 14-1. Absolute Maximum Ratings
(TA = 25 °C)
ParameterSymbolConditionsRatingUnits
Supply Voltage
Input Voltage
Output Voltage
Output Current High
V
DD
I
V
V
I1
O
OH
All I/O ports
One I/O pin active– 15mA
–– 0.3 to + 6.5V
– 0.3 to V
–
– 0.3 to VDD + 0.3
DD
+ 0.3
All I/O ports active– 35
Output Current Low
I
OL
One I/O pin active+ 30 (Peak value)
(note)
+ 15
Total value for ports 0, 2, 3, and 5+ 100 (Peak value)
(note)
+ 60
Total value for ports 4, 6, and 7+ 100
(note)
+ 60
Operating Temperature
Storage Temperature
T
A
T
stg
–– 40 to + 85
–– 65 to + 150
°
C
NOTE: The values for Output Current Low (IOL) are calculated as Peak Value × Duty .
Table 14-2. D.C. Electrical Characteristics
(TA= – 40 °C to + 85 °C, VDD = 1.8 V to 5.5 V)
ParameterSymbolConditionsMinTypMaxUnits
Input high
voltage
Input low
voltage
Output high
voltage
V
V
V
V
V
V
V
OH1
IH1
IH2
IH3
IL1
IL2
IL3
All input pins except those
specified below for V
IH2
, V
IH3
Ports 0, 1, 6, 7 and RESET
XIN, X
OUT, XTIN
and XT
OUT
Ports 2, 3, 4 and 5––
Ports 0, 1, 6, 7 and RESET
X
IN, XOUT, XTIN
and XT
OUT
VDD = 4.5 V to 5.5 V
Ports 0, 2, 3, 4, 5, 6, 7 and BIAS