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.
KS86C4302/C4304 MICROCONTROLLER
The KS86C4302/C4304 single-chip 8-bit microcontroller is fabricated using an advanced CMOS process. It is
built around the powerful SAM87Ri CPU core. The KS86C4302/C4304 is a versatile microcontroller, with its A/D
converter, timer, PWM, and SIO 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 KS86C4302/C4304 have 2-Kbytes or 4Kbytes of program memory on-chip (ROM) and 112-bytes of general purpose register area RAM.
Using the SAM87Ri design approach, the following peripherals were integrated with the SAM87Ri core:
— Three configurable I/O ports (13 pins)
— Five interrupt sources with one vector and one interrupt level
— One 8-bit timer/counter with time interval mode
— Analog to digital converter with five input channels and 10-bit resolution
— One synchronous SIO module
— One 12-bit PWM output
The KS86C4302/C4304 microcontroller is ideal for use in a wide range of electronic applications requiring simple
timer/counter, PWM, ADC, and SIO. KS86C4302/C4304 is available in a 20/18/16-pin DIP and a 20-pin SOP
package.
OTP
The KS86P4304 is an OTP (One Time Programmable) version of the KS86C4302/C4304 microcontroller. The
KS86P4304 has on-chip 4-Kbyte one-time-programmable EPROM instead of masked ROM. The KS86P4304 is
fully compatible with the KS86C4302/C4304, in function, in D.C. electrical characteristics and in pin configuration.
1-1
PRODUCT OVERVIEWKS86C4302/C4304/P4304
FEATURES
CPU
•SAM87RI CPU core
Memory
•2/4-Kbyte internal program memory (ROM)
•112-byte general purpose register area (RAM)
Instruction Set
•41 instructions
•The SAM87RI core provides all the SAM87 core
instruction except the word-oriented instruction,
multiplication, division, and some one-byte
instruction.
Instruction Execution Time
•600 ns at 10 MHz f
•375 ns at 16 MHz f
(minimum cycles)
OSC
(minimum cycles)
OSC
Interrupts
•5 interrupt sources with one vector and one level
interrupt structure
Timer/Counters
•One 8-bit basic timer for watchdog function
•One 8-bit timer/counter for the time interval
mode
PWM Module
•12-bit PWM 1-ch (Max: 250 kHz)
•6-bit base + 6-bit extension frame
A/D Converter
•Five analog input pins
•10-bit conversion resolution
Buzzer Frequency Range
•200 Hz to 20 kHz signal can be generated
Oscillation Frequency
•1 MHz to 16 MHz external crystal oscillator
•Maximum 16 MHz CPU clock
•4 MHz RC oscillator
General I/O
•Two I/O ports (Toatal 13 pins)
•One output only port (port 2)
•Bit programmable ports
Serial I/O
•One synchronius serial I/O module
•Selectable transmit and receive rates
Built-in reset Circuit (LVD)
•Low voltage detector for safe reset
Operating Temperature Range
•- 40°C to + 85°C
Operating Voltage Range
•3.0 V to 5.5 V
OTP Interface Protocol Spec
•Serial OTP
Package Types
•20-pin DIP-300
•20-pin SOP-375
•18-pin DIP-300
•16-pin DIP-300
1-2
KS86C4302/C4304/P4304PRODUCT OVERVIEW
SCK (P1.3 or P2.0)
BLOCK DIAGRAM
X
X
OUT
P0.2/T0CK
P0.0/BUZ
ADC0-ADC4
P0.1/PWM
P0.0-P0.3
BUZ, PWM, INT0, INT1
Basic
Timer
IN
OSC
Port 0Port 1
P1.0-P1.4
ADC0-ADC4
SCK, SO, SI, CLO
I/O Port and
P2.0/SCK
P2.1/SO
P2.2
P2.3
SO (P1.2 or P2.1)
SI (P1.1)
Timer 0
BUZ
ADC
PWM
2-KB ROM
4-KB ROM
Interrupt Control
SAM87RI CPU
Port 2
SIO
112-Byte
Register File
Figure 1-1. Block Diagram
1-3
PRODUCT OVERVIEWKS86C4302/C4304/P4304
PIN ASSIGNMENTS
V
V
SS
X
X
OUT
TEST
P0.2/T0CK/INT0
P0.1/PWM
RESET
P0.0/BUZ
P2.0/SCK
1
IN
2
3
4
5
KS86C4302/
6
4304
20
19
18
17
16
15
(TOP VIEW)
7
8
9
14
13
12
DD
P0.3/INT1
P1.0/ADC0
P1.1/ADC1/SI
P1.2/ADC2/SO
P1.3/ADC3/SCK
P1.4/ADC4/CLO
AV
P0.3/INT1
P1.0/ADC0
P1.1/ADC1/SI
P1.2/ADC2/SO
P1.3/ADC3/SCK
P1.4/ADC4/CLO
AV
REF
1-6
KS86C4302/C4304/P4304PRODUCT OVERVIEW
PIN DESCRIPTIONS
Table 1-1. KS86C4302/C4304 Pin Descriptions
Pin
Names
P0.0-P0.3I/O
P1.0-P1.4I/OBit-programmable I/O port for Schmitt trigger
Pin
Type
Pin
Description
Bit-programmable I/O port for Schmitt trigger
input or push-pull, open-drain output. Pull-up
resistors are assignable by software. Port 0 pins
can also be used as alternative function.
input or push-pull, open-drain output. Pull-up
resistors are assignable by software. Port 1 pins
can also be used as alternative function.
Circuit
Type
Share
Pins
EBUZ
PWM
INT0/T0CK
INT1
E-1ADC0-ADC4
SI
SO
SCK
CLO
P2.0-P2.3OPush-pull or open-drain output port. Pull up
resistors are assignable by software. Port 2.0-2.1
E-2SCK
SO
pins can also be used as alternative function.
XIN, X
OUT
–
Crystal/ceramic, or RC oscillator signal for
––
system clock.
RESET
TESTITest signal input pin (for factory use only: must be
ISystem RESET signal input pin.B–
––
connected to VSS)
V
DD, VSS
AV
REF
AV
SS
SCKI/OSerial interface clock I/OE-1
SOOSerial data outputE-1
–Voltage input pin and ground––
–A/D converter reference voltage input and ground––
Bonded to VSS internally
P1.3 or
E-2
P2.0
P1.2 or
E-2
P2.1
SIISerial data inputE-1P1.1
CLOOSystem clock output portE-1P1.4
BUZO200 Hz- 20 kHz frequency output for buzzer soundEP0.0
PWMO12-bit PWM outputEP0.1
INT0-INT1IExternal interrupt input portEP0.2
In this section, the following KS86C4302/C4304 electrical characteristics are presented in tables and graphs:
— Absolute maximum ratings
— D.C. electrical characteristics
— A.C. electrical characteristics
— Input Timing Measurement Points
— 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
— LVD circuit characteristics
— LVD reset Timing
— Serial I/O timing characteristics
— Serial data transfer timing
14-1
Loading...
+ 23 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.