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
Page 2
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)
Oscillation stabilization occurs when VDD is equal
––20ms
––10ms
to the minimum oscillator voltage range.
External Clock
XIN input High and Low width (tXH, tXL)
25–500ns
(Main System)
Oscillator
Stabilization
t
when released by a reset
WAIT
(1)
–
216/f
OSC
–ms
Wait Time
t
when released by an interrupt
WAIT
NOTES:
1. f
2. The duration of the oscillator stabilization wait time, t
is the oscillator frequency.
OSC
settings in the basic timer control register, BTCON.
(2)
, when it is released by an interrupt is determined by the
WAIT
–
–
–ms
19-6
Page 21
KS88C4616/C4632/P4632ELECTRICAL DATA
Table 19-7. Data Retention Supply Voltage in Stop Mode
(T
= – 40°C to + 85°C, V
A
= 2.7 V to 5.5 V)
DD
ParameterSymbolConditionsMinTypMaxUnit
Data Retention
V
DDDR
Stop mode2–5.5V
Supply Voltage
Data Retention
I
DDDR
Stop mode, V
DDDR
= 2.0 V
––5µA
Supply Current
NOTE: Supply current does not include current drawn through internal pull-up resistors or external output current loads.
V
RESET
DD
RESET
occurs
~
Execution of
STOP Instrction
NOTE:
~
~
~
t
WAIT
is the same as 4096 x 16 x 1/f
Stop Mode
Data Retention Mode
V
DDDR
OSC
.
t
WAIT
Figure 19-3. Stop Mode Release Timing When Initiated by a Reset
Oscillation
Stabilzation
Time
Normal
Operating
Mode
19-7
Page 22
ELECTRICAL DATAKS88C4616/C4632/P4632
Table 19-8. Serial I/O Timing Characteristics
(T
= – 40°C to + 85°C, V
A
= 2.7 V to 5.5 V)
DD
ParameterSymbolConditionsMinTypMaxUnit
Cycle Time
t
CKY
External source1000––ns
Internal source1000
High, Low Width
SI Setup Time to Low
tKH, t
t
SIK
External source500––
KL
t
Internal source
KCY
/2 – 50
External source250––
Internal source250
SI Hold Time to High
t
KSI
External source400––
Internal source400
Output Delay for to SO
t
KSO
External source––300
Internal source250
NOTE: "" means serial I/O clock frequency, "SI" means serial data input, and "SO" means serial data output.
SCK
SO
t
KCY
t
t
KL
t
SIK
SI
t
KSO
Input Data
KH
0.8 V
DD
0.2 V
DD
t
KSI
0.8 V
DD
0.2 V
DD
Output Data
Figure 19-4. Serial Data Transfer Timing
19-8
Page 23
KS88C4616/C4632/P4632ELECTRICAL DATA
Table 19-9. UART Timing Characteristics in Mode 0 (10 MHz)
(T
= – 40°C to + 85°C, V
A
= 2.7 V to 5.5 V, Load capacitance = 80 pF)
DD
ParameterSymbolMinTypMaxUnit
Serial port clock cycle time
Output data setup to clock rising edge
Clock rising edge to input data valid
Output data hold after clock rising edge
Input data hold after clock rising edge
Serial port clock High, Low level width
NOTES:
1. All timings are in nanoseconds (ns) and assume a 10-MHz CPU clock frequency.
2. The unit t
means one CPU clock period.
CPU
t
SCK
t
S1
t
S2
t
H1
t
H2
t
HIGH, tLOW
500
300
t
CPU
t
CPU
× 6
× 5
––300
t
– 50t
CPU
CPU
0––
200
t
CPU
× 3
700ns
–
–
400
0.8 V
t
SCK
t
HIGH
DD
t
LOW
0.2 V
DD
Figure 19-5. Waveform for UART Timing Characteristics
19-9
Page 24
ELECTRICAL DATAKS88C4616/C4632/P4632
SCK
Data
In
NOTE: The symbols shown in this diagram are defined as follows:
fSCKSerial port clock cycle time
tS1Output data setup to clock rising edge
tS2Clock rising edge to input data valid
tH1Output data hold after clock rising edge
tH2Input data hold after clock rising edge
VALIDVALIDVALIDVALIDVALIDVALIDVALIDVALID
Out
Data
D0D1D2D3D4D5D6D7
t
S1
Clock
Shift
tS2
t
tH1
tH2
19-10
Figure 19-6. A.C. Timing Waveform for the UART Module
↑ to address float delay
↑ to read data required valid
10–
35–
–140
Low width43.75 (35)–
Address float to ↓
0–
(read) Low width156.25 (125)–
(write) Low width81.25 (65)–
↓ to read data required valid
Read data to ↑ hold time
↑ to address active delay
↑ to ↓ delay
Write data valid to (write) ↓ delay
R/ valid to ↑ delay
↑ to write data not valid delay
–80
0–
20–
30–
10–
20–
20–
NOTES:
1. All times are in nanoseconds (ns) and assume an 8-MHz input frequency.
2. Wait states add 100 ns to the time of numbers 3, 6a, 6b, and 7.
3. The values for t
wAS
and t
that are shown in parentheses "( )" assume a 10-MHz input clock.
wDS
19-13
Page 28
ELECTRICAL DATAKS88C4616/C4632/P4632
R/W (P2.2)
12
Port 0
DM (P2.3)
A8-A15,
39
DM
AS
DS
Port 1
(P2.0)
(P2.1)
D0-D7 OutA0-A7
1
4
112
5
7
D0-D7InOut
Figure 19-8. External Memory Read and Write Timing
(See Table 19-10 for a description of each timing point.)
10
8
136
19-14
Page 29
KS88C4616/C4632/P4632MECHANICAL DATA
20MECHANICAL DATA
OVERVIEW
The KS88C4616/C4632/P4632 microcontrollers are available in a 64-SDIP-750, 64-QFP-1420F package.
(1.34)
#64#33
± 0.20
17.00
NOTE :
Dimensions are in millimeters.
64-SDIP-750
0.45 ±
0.10
1.00 ±
0.10
58.20 MAX
57.80
± 0.20
1.778
0-15
19.05
#32#1
4.10 ±0.20
5.08 MAX
0.51 MIN
3.30 ± 0.30
+ 0.10
0.25
- 0.05
Figure 20-1. 64-SDIP-750 Package Dimensions
20-1
Page 30
MECHANICAL DATAKS88C4616/C4632/P4632
23.90
± 0.30
17.90 ± 0.30
± 0.20
14.00
#64
1.00
64-QFP-1420F
#1
20.00
0.40
± 0.20
+ 0.10
- 0.05
0.15 MAX
0.80
± 0.20
(1.00)
0-8
+ 0.10
- 0.05
0.15
0.10 MAX
0.80 ± 0.20
0.05 MIN
2.65
± 0.10
3.00 MAX
20-2
NOTE
: Dimensions are in millimeters.
Figure 20-2. 64-QFP-1420F Package Dimensions
Page 31
KS88C4616/C4632/P4632KS88P4632 OTP
21KS88P4632 OTP
OVERVIEW
The KS88P4632 single-chip CMOS microcontroller is the OTP (One Time Programmable)version of the
KS88C4616/C4632 microcontroller. It has an on-chip OTP ROM instead of a masked ROM. The EPROM is
accessed by serial data format.
The KS88P4632 is fully compatible with the KS88C4616/C4632, both in function in D.C. electrical characteristics
and in pin configuration. Because of its simple programming requirements, the KS88P4632 is ideal as an
evaluation chip for the KS88C4616/C4632.
Table 21-1. Descriptions of Pins Used to Read/Write the EPROM
Main ChipDuring Programming
Pin NamePin NamePin No.I/OFunction
P4.2SDAT14(7)I/OSerial data pin. Output port when reading and
input port when writing. Can be assigned as a
Input/push-pull output port.
P4.1SCLK15(8)ISerial clock pin. Input only pin.
EAV
PP
20(13)IPower supply pin for EPROM cell writing
(indicates that OTP enters into the writing mode).
When 12.5 V is applied, OTP is in writing mode
and when 5 V is aplied, OTP is in reading mode.
(Option)
RESETRESET
VDD/V
SS
VDD/V
SS
23(16)IChip Initialization
16(9)/17(10)–Logic power supply pin. V
should be tied to
DD
+5 V during programming.
NOTE: ( ) means 64 QFP package.
Table 21-2. Comparison of KS88P4632 and KS88C4616/C4632 Features
CharacteristicKS88P4632KS88C4616/C4632
Program Memory32-Kbyte EPROM16/32-Kbyte mask ROM
Operating Voltage (VDD)2.7 V to 5.5 V2.7 V to 5.5 V
OTP Programming ModeVDD = 5 V, V
(EA) = 12.5 V
PP
Pin Configuration64 SDIP/64 QFP64 SDIP/64 QFP
EPROM ProgrammabilityUser Program 1 timeProgrammed at the factory
OPERATING MODE CHARACTERISTICS
When 12.5 V is supplied to the VPP (EA) pin of the KS88P4632, the EPROM programming mode is entered. The
operating mode (read, write, or read protection) is selected according to the input signals to the pins listed in
Table 21-3 below.
Table 21-3. Operating Mode Selection Criteria
V
DD
V
PP
(EA)
REG/
MEM
ADDRESS
(A15–A0)
R/WMODE
5 V5 V00000H1EPROM read
12.5 V00000H0EPROM program
12.5 V00000H1EPROM verify
12.5 V10E3FH0EPROM read protection
NOTE: "0" means Low level; "1" means High level.
21-4
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.