
SPMC802B
32-PIN GENERAL PURPOSE
MICROCONTROLLER (OTP)
1. GENERAL DESCRIPTION
The SPMC802B is an OTP version of SPMC02A with reliability
enhancement. It equips with an 8-bit Sunplus CPU core, 4.5K
bytes of program ROM, and 128 bytes of RAM. SPMC802B also
combines with four I/O ports, two timers with one PWM output, two
Comparator inputs, and a Watchdog Timer. Three groups of
interrupt are implemented for different kinds of applications.
Major application fields are small home appliances or computer
peripheral applications. The details are described below.
2. FEATURES
!
Built-in 8-bit Sunplus CPU core with two index registers and up
to 6MHz clock operation.
!
28 general-purpose I/O channels that are belong to four I/O
ports. Some of them are combined with the options to select
Pull-Up/Down Resistors.
!
Three external interrupt groups, one is come from individual I/O
Channel PB5 and group input PA3:0, one is come from
individual I/O Channel, PA7, and one is a group input, PC port.
!
External Reset input option on PB4.
!
An 8-bit Timer with Real Time Interrupt control.
!
An 8-bit Re-loadable Timer with 8 stages prescalar.
!
One 6-bit PWM waveform output.
!
Two voltage Comparator inputs with selectable internal or
external voltage reference. An interrupt event control for the
compare result.
!
A watchdog timer for program control.
!
4.5K bytes of ROM with 128 bytes of RAM.
!
R-Oscillation or Crystal input options for system clock.
!
Stop or Wait Control setting for Power-Saving Mode.
!
Slow Transition Output Pins.
3. BLOCK DIAGRAM
OSC.
CKT
4.5K bytes PROM
$600~$FFF &
$1800~$1FFF
128 bytes RAM
$80 ~ $FF
8 - bit CPU
RESET(PB4)
IRQ(PB5)
XO/R
XI
I/O PORT
&
External RESET Pin
I/O PORT
&
External IRQ Pin
I/O PORT
&
External Interrupt
I/O PORT &
2 set Comparator
circuit
I/O PORT
I/O PORT &
PWM waveform
output
I/O PORT
&
External CLOCK Pin
TIMER 1
& RTI
& Watch_Dog timer
TIMER 2 &
6 bits PWM
waveform generator
Interrupt Generator
&
RESET generator
PD3-0
PB3-1
PA6
PA7
PA3-0
PC7-0
PA4,PA5
PB0
PB7
PB6
/13
/1
/1
/8
/3
VDD
VSS
/1
/1
A
D
Sunplus Technology Co., Ltd.
Proprietary & Confidential
3
AUG. 07, 2002
Version: 1.0