KS88C4404 MICROCONTROLLER
PRODUCT OVERVIEW
1PRODUCT
OVERVIEW
SAM8 PRODUCT FAMILY
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. The 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 specific interrupt levels.
KS88C4404 MICROCONTROLLER
The KS88C4404 single-chip microcontroller is fabricated using a highly advanced CMOS process. Its design is based on the powerful SAM8 CPU core. Stop and Idle power-down modes were implemented to reduce power consumption. The size of the internal register file is logically expanded, increasing the addressable on-chip register space to 1040 bytes. A flexible yet sophisticated external interface is used to access up to 64-Kbytes of program and data memory. The KS88C4404 is a versatile microcontroller that is ideal for use in a wide range of general-purpose applications such as CD-ROM/DVD-ROM drives. Using the SAM8 modular design approach, the following peripherals were integrated with the SAM8 CPU core:
1–1
PRODUCT OVERVIEW
KS88C4404 MICROCONTROLLER
— Six configurable 8-bit general I/O ports — One 8-bit n-channel, open-drain output port — One 8-bit input port for A/D converter input or digital input — Full-duplex serial data port with one synchronous and three asynchronous (UART) operating modes — Two 8-bit timers with interval timer or PWM mode — Two 16-bit timer/counters with four programmable operating modes — Two programmable 8-bit PWM modules with corresponding output pins — One 8-bit capture module with CAP input pin — A/D converter with 8 selectable input pins
The KS88C4404 is a versatile microcontroller that is ideal for use in a wide range of general-purpose ROM-less applications such as CD-ROM/DVD-ROM drivers.
Figure 1–1. KS88C4404 Microcontroller
1–2
KS88C4404 MICROCONTROLLER
PRODUCT OVERVIEW
FEATURES
CPU • SAM8 CPU core
General I/O • • • Six 8-bit general I/O ports (ports 0,1,2,3,4, and 5) One 8-bit n-channel, open-drain output port (port 6) One 8-bit input port (for ADC input or port 7 digital input)
Memory • • 1040-byte of internal register file 4-kbyte internal program memory area
Serial Port • • Full-duplex serial data port (UART) Four programmable operating modes
External Interface • • • 64-Kbyte external data memory area 64-Kbyte external program memory (ROMless) 60-Kbyte external program memory (normal)
PWM and Capture • • • • Two output channels (PWM0, PWM1) 8-bit resolution with 2-bit prescaler 97.66-kHz frequency (25-MHz CPU clock) Capture module with CAP input pin
Instruction Set • • 78 instructions IDLE and STOP instructions
Instruction Execution Time • 240 ns at 25 MHz fOSC (minimum)
Analog-to-Digital Converter • • • Eight analog input pins 8-bit conversion resolution 7.68-µs conversion speed (25-MHz CPU clock)
Interrupts • • • 20 interrupt sources and 19 interrupt vectors Seven interrupt levels Fast interrupt processing (level0 and 3-7 only)
Operating Temperature Range • – 20°C to + 85°C
Timer/Counters • • Two 8-bit timers with interval timer or PWM mode (timers A and B) Two 16-bit timer/counters with four programmable operating modes (timers C and D)
Operating Voltage Range • 4.5 V to 5.5 V
Package Type • 80-pin QFP, 80–pin TQFP
1–3
PRODUCT OVERVIEW
KS88C4404 MICROCONTROLLER
BLOCK DIAGRAM
EXTERNAL ADDRESS/DATA BUS
P0.0–P0.7 (A8–A15)
P1.0–P1.7 (AD0–AD7)
P2.0–P2.5 (Control Signal)
PORT 0
RESET
PORT 1
PORT 2
EA SAM8 BUS P2.6 P2.7 PORT2
PORT 3
P3.0–P3.7
PORT I/O & INTERRUPT CONTROL
PORT 4 P4.0–P4.7
TA TB TCCK TDCK TCG TDG RxD TxD
TIMERS A and B
SAM8 CPU
P5.0–P5.3 PORT 5 P5.4–P5.7
TIMERS C and D 1040-BYTE REGISTER FILE
SERIAL PORT
PORT 6
P6.0–P6.7
SAM8 BUS
VDD1 ,VSS1 VDD2 ,VSS2 PWM MODULE
AVSS AVREF
A/D CONVERTER
CAPTURE (P3.6)
ADC0 /P7.0 – ADC7 /P7.7
PWM0
PWM1
Figure 1–2. KS88C4404 Block Diagram
1–4
KS88C4404 MICROCONTROLLER
PRODUCT OVERVIEW
PIN ASSIGNMENTS
EA P1.7 / AD7 P1.6 / AD6 P1.5 / AD5 P1.4 / AD4 P1.3 / AD3 P1.2 / AD2 P1.1 / AD1 P1.0 / AD0 VDD1 (int.) P0.7 / A15 P0.6 / A14 P0.5 / A13 P0.4 / A12 P0.3 / A11 P0.2 / A10 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
P0.1 / A9 P0.0 / A8 P5.7 P5.6 P5.5 P5.4 P5.3 P5.2 P5.1 P5.0 VDD2 (ext.) P2.7 / TB P2.6 / TA P2.5 / PM P2.4 / MR P2.3 / DM P2.2 / MW P2.1 / DS P2.0 / AS RxD TxD PWM1 PWM0 P3.0 / TCCK / INT0
KS88C4404
80-QFP
(TOP VIEW)
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41
RESET
NC AS VSS1 (int.) XOUT XIN P6.0 P6.1 P6.2 P6.3 P6.4 P6.5 P6.6 P6.7 P7.7 / ADC7 P7.6 / ADC6 P7.5 / ADC5 P7.4 / ADC4 P7.3 / ADC3 AVSS P7.2 / ADC2 P7.1 / ADC1 AVREF P7.0 / ADC0
Figure 1–3. KS88C4404 Pin Assignments
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 P4.7 / INT11 P4.6 / INT10 P4.5 / INT9 P4.4 / INT8 P4.3 / INT7 P4.2 / INT6 P4.1 / INT5 P4.0 / INT4 VSS2 (ext.) P3.7 / WAIT P3.6 / CAP P3.5 P3.4 P3.3 / TDG / INT3 P3.2 / TCG / INT2 P3.1 / TDCK / INT1
1–5
KS88C4404 MICROCONTROLLER
AS NC
RESET
PIN ASSIGNMENTS (Continued)
EA P1.7 / AD7 P1.6 / AD6 P1.5 / AD5 P1.4 / AD4 P1.3 / AD3 P1.2 / AD2 P1.1 / AD1 P1.0 / AD0 VDD1 (int.) P0.7 / A15 P0.6 / A14 P0.5 / A13 P0.4 / A12 P0.3 / A11 P0.2 / A10 P0.1 / A9
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21
Vss1 (int.) XOUT XIN P6.0 P6.1 P6.2 P6.3 P6.4 P6.5 P6.6 P6.7 P7.7 / ADC7 P7.6 / ADC6 P7.5 / ADC5 P7.4 / ADC4 P7.3 / ADC3 AVSS P7.2 / ADC2 P7.1 / ADC1 AVREF
P7.0 / ADC0 P4.7 / INT11 P4.6 / INT10 P4.5 / INT9 P4.4 / INT8 P4.3 / INT7 P4.2 / INT6 P4.1 / INT5 P4.0 / INT4 VSS2 (ext.) P3.7 / WAIT P3.6 / CAP P3.5 P3.4 P3.3 / TDG / INT3 P3.2 / TCG / INT2 P3.1 / TDCK / INT1 P3.0 / TCCK / INT0 PWM0 PWM1
P0.0 / A8 P5.7 P5.6 P5.5 P5.4 P5.3 P5.2 P5.1 P5.0 VDD2 (ext.) P2.7 / TB P2.6 / TA
PRODUCT OVERVIEW
RxD TxD
MR
DM
MW
PM
DS
AS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Figure 1–4. KS88C4404 Pin Assignments
KS88C4404
(TOP VIEW)
80-TQFP
1–6
KS88C4404 MICROCONTROLLER
PRODUCT OVERVIEW
PIN DESCRIPTIONS
Table 1–1. KS88C4404 Pin Descriptions Pin Name P0.0 - P0.7 Pin Type I/O Pin Description Nibble programmable port; input or output mode selected by software; Schmitt trigger input or pushpull, open-drain output with software assignable pull-ups; alternately configurable as external interface address lines A8 - A15. Same general characteristics as port 0; alternately configurable as external interface address/data lines AD0 - AD7. General I/O port with Schmitt trigger input or pushpull output. bit programmable; P2.0 / Address Strobe (AS) P2.1 / Data Strobe (DS) P2.2 / Memory Write (MW) P2.3 / Data Memory select (DM) P2.4 / Memory Read (MR) P2.5 / Program Memory select (PM) P2.6 / timer A output (TA) P2.7 / timer B output (TB) General I/O port with bit programmable pins. Schmitt trigger input or push-pull output with software assignable pull-ups. Input or output mode is selectable by software. P3.0 - P3.3 are alternately used as inputs for external interrupts INT0-INT3, respectively (with noise filters and interrupt control): P3.0 / timer C clock input (TCCK) / INT0 P3.1 / timer D clock input (TDCK) / INT1 P3.2 / timer C gate input (TCG) / INT2 P3.3 / timer D gate input (TDG) / INT3 P3.6 / Capture data input (CAP) P3.7 / for slow memory interface General I/O port with bit programmable pins. Schmitt trigger input or push-pull, open-drain output with software assignable pull-ups. Input or output mode is selectable by software. P4.0-P4.7 can alternately be used as inputs for external interrupts INT4-INT11, respectively (with noise filters and interrupt control) Circuit Type 3 QFP Pin Number 2, 1, 80-75 Share Pins A8 - A15
P1.0 - P1.7
I/O
3
73-66
AD0 - AD7
P2.0 - P2.7
I/O
5
19 - 12
AS, DS, MW, DM, MR, PM, TA, TB
P3.0 - P3.7
I/O
4
24-31
(See pin description)
P4.0 - P4.7
I/O
4
33-40
INT4 INT11
1–7
PRODUCT OVERVIEW
KS88C4404 MICROCONTROLLER
Table 1–1. KS88C4404 Pin Descriptions (Continued) Pin Name P5.0–P5.7 Pin Type I/O Pin Description General I/O port with nibble programmable pins. Schmitt trigger input or push-pull, open-drain output mode. Mode and pull-ups are assigned by software. N-channel, open-drain output port; the pin circuits can withstand loads up to 9 volts. Analog input pins for A/D converter module. Alternatively used as general-purpose digital input port 7. A/D converter reference voltage and ground Serial data RxD pin for receive input and transmit output (mode 0) Serial data TxD pin for transmit output and shift clock input (mode 0) Pulse width modulation output pins Output pins for timer A and timer B External interrupt input pins External clock input for timer C and timer D Gate input pins for timer C and timer D Capture data input for PWM module Input pin for the slow memory timing signal from the external interface System reset pin (pull-up resistor: 220 kΩ) External access (EA) pin with two modes: 5 V input: normal ROM-less operation with external interface (0 V is not allowed) 9 V–10 V input: for factory test mode Power input pins for CPU operation (internal) Power input pins for port output (external) Main osc