W921E880A/W921C880
4-BIT MICROCONTROLLER
Table of Contents-
1. GENERAL DESCRIPTION .........................................................................................................................3
2. FEATURES.................................................................................................................................................3
3. PIN CONFIGURATION ...............................................................................................................................6
4. PIN DESCRIPTION.....................................................................................................................................7
5. BLOCK DIAGRAM ......................................................................................................................................9
6. FUNCTIONAL DESCRIPTION .................................................................................................................10
6.1 ROM Memory Map .........................................................................................................................10
6.2 RAM Memory Map..........................................................................................................................11
6.2.1 Special Control Reg. Area..................................................................................................11
6.2.2 Stack Reg. Area.................................................................................................................12
6.2.3 Working Reg. Area ............................................................................................................12
6.3 Internal Oscillator Circuit .................................................................................................................13
6.4 Initial State ......................................................................................................................................14
6.5 Input/Output ....................................................................................................................................14
6.5.1 I/O Pull High and Open Drain Control.................................................................................17
6.6 Serial Port.......................................................................................................................................19
6.7 DTMF Generator.............................................................................................................................21
6.8 Beep Tone Generator.....................................................................................................................22
6.9 8-bit D/A Converter.........................................................................................................................23
6.10 Comparator...................................................................................................................................24
6.11 Timer 0
−
3......................................................................................................................................25
6.11.1 Arbitrary Waveform Generator.........................................................................................32
6.12 Interrupt.........................................................................................................................................33
6.12.1 Interrupt Control Register ..................................................................................................33
6.12.2 Interrupt Enable Flag........................................................................................................34
6.13 Operating Mode............................................................................................................................34
6.14 Initial Condition Register of EPROM Program Method .................................................................39
6.15 Reset ............................................................................................................................................39
-1-
Publication Release Date: July 1999
Revision A3
W921E880A/W921C880
7. ADDRESSING MODE ..............................................................................................................................40
7.1 ROM Addressing Mode ..................................................................................................................40
7.2 RAM Addressing Mode...................................................................................................................40
7.3 Look-up Table Addressing Mode (1 Word/2 Cycles) ......................................................................42
8. SPECIAL CONTROL REG. FORMAT ......................................................................................................43
9. INSTRUCTION MAP.................................................................................................................................45
10. INSTRUCTION SETS .............................................................................................................................48
11. ABSOLUTE MAXIMUM RATINGS .........................................................................................................51
12. ELECTRICAL CHARACTERISTICS.......................................................................................................52
12.1 AC Characteristics ........................................................................................................................52
12.2 DC Characteristics........................................................................................................................54
13. PACKAGE DIMENSIONS.......................................................................................................................56
80-pin QFP ............................................................................................................................................56
-2-
W921E880A/W921C880
1. GENERAL DESCRIPTION
The W921E880A/W921C880 are 4-bit micro-processor fabricated by CMOS process. With a single
channel DTMF generator, an 8-bit D/A converter circuit, a built in four by one channel comparator
circuit and four multi-function timers. The excellent memory structure, 8K super EPROM in
W921E880A and 8K mask ROM in W921C880 for program code and 1536 x 4 bit RAM minimize the
need for external memory devices. The W921E880A/W921C880 provides good solution for
consumming application, especially for telecommunication design with few external components.
Using the serial transmit/receive function, the W921E880A/W921C880 can interface with the
Winbond LCD driver IC using the serial control circuit.
2. FEATURES
Memory
•
ROM (Super EPROM): 8K
×
10 bits
•
RAM: 1536
×
4 bits
−
−
−
−
−
64
×
4 bit Special registers
16
×
4 bit Working registers
128
×
4 bit General registers
304
×
4 bit Multi-purpose registers4 bit serial buffer registers
512
×
4-bit
×
2 banks
Dual-clock Operation
•
Crystal or RC for the main system clock: RC up to 4 MHz
Crystal for 400 K, 800 K, 2 M, 3.58 M, 4 MHz
•
Crystal for subsystem clock: 32.768 KHz
I/O Pins
•
32 bidirectional and individually controllable I/O lines:
−
P0 Port: P0.0−P0.3 large drive current Pins
−
P1 Port: P1.0−P1.3 large drive current Pins
−
P2 Port: P2.0−P2.3 large sink current pins and open drain option
−
P3 Port: P3.0−P3.3 multi-function I/O
−
P4 Port: P4.0−P4.3 open drain and pull high resistor option, multi-function I/O
−
P5 Port: P5.0−P5.3 multi-function I/O
−
P6 Port: P6.0−P6.3 open drain and pull high resistor option, multi-function I/O
−
P7 Port: P7.0−P7.3 large sink current pins and open drain option
•
32 bidirectional I/O lines:
−
P8 Port: P8.0−P8.3 large drive current pins
−
P9 Port: P9.0−P9.3 large sink current pins and open drain option
Publication Release Date: July 1999
Revision A3
-3-
W921E880A/W921C880
−
PA Port: PA.0−PA.3 open drain and pull high resistor option
−
PB Port: PB.0−PB.3 open drain and pull high resistor option
−
PC Port: PC.1−PC.3 open drain and pull high resistor option
−
PD Port: PD.0−PD.3 open drain and pull high resistor option
−
PE Port: PE.0−PE.3
−
PF Port: PF.0−PF.3
Interrupt
•
Four External sources: INT0 ( P4.3 )
P4 Port ( P4.0−P4.2 )
•
Six Internal sources: Timer 0
Timer 1
Timer 2
Timer 3
Comparator
Serial Port
Timer/Counter
•
Timer 0: 2−19 order divider (double source)
Auto-reload timer
Watch-dog timer
•
Timer 1: 2−19 order divider
Auto-reload timer
Arbitrary waveform generator
External event counter
•
Timer 2: 2−19 order divider
Auto-reload timer
Arbitrary waveform generator
Period/Pulse width measurement function
•
Timer 3: 2−19 order divider
Auto-reload timer
Operating Mode (System Clock)
•
Normal mode: System clock operating
•
HOLD mode: no operation except for oscillator (System clock stops only)
•
STOP mode: no operation including oscillator
-4-
W921E880A/W921C880
DTMF Generator and 8-bit D/A Converter
•
One Channel DTMF Generator
•
One Channel 8-bit D/A Converter
Voltage Comparator
•
Four by one Channel Voltage Comparator
Serial I/O Interface
•
Clock Synchronous multi-nibbles Serial Transmitter/Receiver Interface
Stack
•
8-bit Stack Pointer
Address Mode
•
ROM: Indirect call addressing mode
Long jump/call addressing mode
•
RAM: Direct addressing mode
Indirect addressing mode
Working reg. addressing mode
•
Look-up table addressing mode
Instruction Sets
•
117 Instruction sets
Operating Voltage
•
2.8 to 5.5V operating voltage for W921E880A EPROM Type
•
2.4 to 5.5V operating voltage for W921C880 Mask ROM Type
Package Type
•
Packaged in 80-pin QFP
-5-
Publication Release Date: July 1999
Revision A3