COP888xG/CS Family
8-Bit CMOS ROM Based Microcontrollers with 4k to 24k
Memory, Comparators and USART
General Description
Note: COP8SG devices are form-fit-function compatible su-
persets of the COP888xG/CL/CS Family devices, and are
replacements for these in new designs, and design upgrades with minimum effort.
The COP888xGROM based microcontrollers are highly integrated COP8
to 24k) and advanced features including two Analog comparators. These single-chip CMOS devices are suited for
more complexapplications requiring afull featured controller
with a range of memory sizes, low EMI (except EG), comparators, and a full-duplex USART. Pin and software compatible (different V
™
Feature coredevices with larger memory (4k
range) 8k toor 32k OTP (One Time
CC
July 1999
Programmable) versions are available (COP8SGx7 Family).
Erasable windowed versions are available for use with a
range of software and hardware development tools.
Family features include an 8-bit memory mapped architecture, 10 MHz CKI with 1µs instruction cycle, three multifunction16-bittimer/counters,full-duplexUSART,
MICROWIRE/PLUS
two power saving HALT/IDLE modes, idle timer, MIWU, high
current outputs, software selectable I/O options, WATCH-
™
DOG
timer and Clock Monitor, lowEMI 2.5Vto 5.5Vopera-
tion, and 28/40/44 pin packages.
Devices included in this datasheet are:
™
serial I/O, two Analog comparators,
COP888xG/CS Family, 8-Bit CMOS ROM Based Microcontrollers with 4k to 24k Memory,
Comparators and USART
Device
COP684CS4k ROM1922428 DIP/SOIC-55 to +125˚C4.5V - 5.5V
COP884CS4k ROM1922428 DIP/SOIC-40 to +85˚C
COP984CS4k ROM1922428 DIP/SOIC-0 to +70˚C2.5V - 4.0V, CSH=4.0V - 6.0V
COP688CS4k ROM19236/4040 DIP, 44 PLCC-55 to +125˚C4.5V - 5.5V
COP888CS4k ROM19236/4040 DIP, 44 PLCC-40 to +85˚C
COP988CS4k ROM19236/4040 DIP, 44 PLCC-0 to +70˚C2.5V - 4.0V, CSH=4.0V - 6.0V
COP884CG 4k ROM1282428 DIP/SOIC-40 to +85˚C2.5V - 6.0V
COP888CG 4k ROM12834/3840 DIP, 44 PLCC-40 to +85˚C2.5V - 6.0V
COP684EG 4k ROM2562428 DIP, SOIC-55 to +125˚C4.5V - 5.5V
COP884EG 4k ROM2562428 DIP, SOIC-40 to +85˚C
COP984EG 4k ROM2562428 DIP, SOIC0 to +70˚C2.5V - 4.0V, EGH=4.0 - 6.0V
COP688EG 8k ROM25636/4040 DIP, 44 PLCC-55 to +125˚C4.5V - 5.5V
COP888EG 8k ROM25636/4040 DIP, 44
n Quiet design (low radiated emissions)
n 4 to 24 kbytes on-board ROM
n 128 to 512 bytes on-board RAM
Key Features (Continued)
Additional Peripheral Features
n Idle Timer
n Multi-Input Wake-Up (MIWU) with optional interrupts (8)
n Two analog comparators (one for the CS series)
n WATCHDOG and Clock Monitor logic
n MICROWIRE/PLUS serial I/O
I/O Features
n Memory mapped I/O
n Software selectable I/O options (TRI-STATE
Push-Pull Output, Weak Pull-Up Input, High Impedance
Input)
n Up to 8 high current outputs
n Schmitt trigger inputs on ports G and L
n Packages:
— 44 PQFP with 40 I/O pins
— 44 PLCC with 40 I/O pins
— 40 DIP with 36 I/O pins
— 28 DIP/SOIC with 24 I/O pins
®
Output,
CPU/Instruction Set Features
n 1 µs instruction cycle time
n Versatile and easy to use instruction set
Block Diagram
n Up to fourteen multi-source vectored interrupts servicing
— External Interrupt with selectable edge
— Idle Timer T0
— Three Timers (one timer for the CS series)(each with
If Military/Aerospace specified devices are required,
please contact the National Semiconductor Sales Office/
Distributors for availability and specifications.
Supply Voltage (V
Voltage at Any Pin−0.3V to V
)7V
CC
CC
+ 0.3V
Total Current into V
Pin (Source)100 mA
CC
Total Current out of GND Pin (Sink)110 mA
Storage Temperature Range−65˚C to +140˚C
Note 2:
Absolute maximum ratings indicate limits beyond which damage to
the device may occur. DC and AC electrical specifications are not ensured
when operating the device at absolute maximum ratings.
DC Electrical Characteristics 98xEG and 98xCS:
0˚C ≤ TA≤ +70˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Operating Voltage
COP98xCS, COP98xEG2.54.0V
COP98xCSH, COP98xEGH4.06.0V
Power Supply Ripple (Note 6)Peak-to-Peak0.1 V
Supply Current (Note 7)
CKI=10 MHzV
CKI=4 MHzV
CKI=4 MHzV
CKI=1 MHzV
HALT Current (Note 8)V
=
CC
=
CC
=
CC
=
CC
=
CC
=
V
CC
=
6.0V, t
6.0V, t
4V, t
4V, t
6.0V, CKI=0 MHz
4V, CKI=0 MHz
1 µs12.5mA
c
=
2.5 µs5.5mA
c
=
2.5 µs2.5mA
c
=
10 µs1.4mA
c
<
0.78µA
<
0.34µA
IDLE Current
CKI=10 MHzV
CKI=4 MHzV
CKI=1 MHzV
Input Levels (V
IH,VIL
)
=
CC
=
CC
=
CC
=
6.0V, t
6.0V, t
4V, t
1 µs3.5mA
c
=
2.5 µs2.5mA
c
=
10 µs0.7mA
c
RESET
Logic High0.8 V
CC
Logic Low0.2 V
CKI (External adn Crystal Osc.
Modes)
Logic High0.7 V
CC
Logic Low0.2 V
All Other Inputs
Logic High0.7 V
CC
Logic Low0.2 V
Hi-Z Input LeakageV
Input Pullup CurrentV
=
6.0V, V
CC
=
6.0V, V
CC
=
0V−1+1µA
IN
=
0V−40−250µA
IN
G and L Port Input Hysteresis(Note 10)0.35 V
Output Current Levels
D Outputs
SourceV
SinkV
=
CC
=
V
CC
=
CC
=
V
CC
4V, V
2.5V, V
4V, V
2.5V, V
=
3.3V−0.4mA
OH
=
1.8V−0.2mA
OH
=
1V10mA
OL
=
0.4V2.0mA
OL
All Others
Source (Weak Pull-Up Mode)V
Source (Push-Pull Mode)V
Sink (Push-Pull Mode)V
=
CC
=
V
CC
=
CC
=
V
CC
=
CC
=
V
CC
4V, V
2.5V, V
4V, V
2.5V, V
4V, V
2.5V, V
=
2.7V−10−100µA
OH
=
1.8V−2.5−33µA
OH
=
3.3V−0.4mA
OH
=
1.8V−0.2mA
OH
=
0.4V1.6mA
OL
=
0.4V0.7mA
OL
CC
CC
CC
CC
CC
V
V
V
V
V
V
V
V
www.national.com5
DC Electrical Characteristics 98xEG and 98xCS: (Continued)
0˚C ≤ TA≤ +70˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
TRI-STATE LeakageV
=
6.0V−1+1µA
CC
Allowable Sink/Source
Current per Pin
D Outputs (Sink)15mA
All others3mA
Maximum Input Current
without Latchup (Notes 9, 10)T
RAM Retention Voltage, V
r
= 25˚
A
500 ns Rise and Fall Time (min)2V
±
100mA
Input Capacitance7pF
Load Capacitance on D21000pF
AC Electrical Characteristics 98xEG and 98xCS:
0˚C ≤ TA≤ +70˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Instruction Cycle Time (t
Crystal, Resonator4V ≤ V
R/C Oscillator4V ≤ V
Inputs
t
SETUP
t
HOLD
Output Propagation DelayR
t
PD1,tPD0
SO, SK4V ≤ VCC≤ 6.0V0.7µs
All Others4V ≤ V
MICROWIRE Setup Time (t
MICROWIRE Hold Time (t
MICROWIRE Output Propagation Delay (t
Input Pulse Width (Note 11)
If Military/Aerospace specified devices are required,
please contact the National Semiconductor Sales Office/
Distributors for availability and specifications.
Supply Voltage (V
Voltage at Any Pin−0.3V to V
)7V
CC
CC
+ 0.3V
Total Current into V
Pin (Source)100 mA
CC
Total Current out of GND Pin (Sink)110 mA
Storage Temperature Range−65˚C to +140˚C
Note 3:
Absolute maximum ratings indicate limits beyond which damage to
the device may occur. DC and AC electrical specifications are not ensured
when operating the device at absolute maximum ratings.
DC Electrical Characteristics 88xCG, 88xCS, and 88xEG:
−40˚C ≤ TA≤ +85˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Operating Voltage
Power Supply Ripple (Note 6)Peak-to-Peak0.1 V
Supply Current (Note 7)
CKI=10 MHzV
CKI=4 MHzV
CKI=4 MHz
(88xCG & 88xEG only)
CKI=1 MHz
(88xCG & 88xEG only)
HALT Current (Note 8)V
(88xCG & 88xEG only)V
=
CC
=
CC
=
V
CC
=
V
CC
=
CC
=
CC
IDLE Current
CKI=10 MHzV
CKI=4 MHzV
CKI=1 MHz
(88xCG & 88xEG only)
Input Levels (V
IH,VIL
)
=
CC
=
CC
=
V
CC
RESET
Logic High0.8 V
Logic Low0.2 V
CKI (External adn Crystal Osc.
Modes)
Logic High0.7 V
Logic Low0.2 V
All Other Inputs
Logic High0.7 V
Logic Low0.2 V
Hi-Z Input LeakageV
Input Pullup CurrentV
=
CC
=
CC
G and L Port Input Hysteresis(Note 10)0.35 V
Output Current Levels
D Outputs
SourceV
SinkV
=
CC
=
V
CC
=
CC
=
V
CC
All Others
Source (Weak Pull-Up Mode)V
Source (Push-Pull Mode)V
Sink (Push-Pull Mode)V
=
CC
=
V
CC
=
CC
=
V
CC
=
CC
=
6.0V, t
6.0V, t
4V, t
4V, t
6.0V, CKI=0 MHz
4V, CKI=0 MHz
6.0V, t
6.0V, t
4V, t
1 µs12.5mA
c
=
2.5 µs5.5mA
c
=
2.5 µs2.5mA
c
=
10 µs1.4mA
c
<
1.08µA
<
0.54µA
=
1 µs3.5mA
c
=
2.5 µs2.5mA
c
=
10 µs0.7mA
c
CC
CC
CC
6.0V−2+2µA
6.0V, V
4V, V
2.5V, V
4V, V
2.5V, V
4V, V
2.5V, V
4V, V
2.5V, V
4V, V
=
0V−40−250µA
IN
=
3.3V−0.4mA
OH
=
1.8V−0.2mA
OH
=
1V10mA
OL
=
0.4V2.0mA
OL
=
2.7V−10−100µA
OH
=
1.8V−2.5−33µA
OH
=
3.3V−0.4mA
OH
=
1.8V−0.2mA
OH
=
0.4V1.6mA
OL
CC
V
V
CC
V
V
CC
V
V
CC
CC
V
V
www.national.com7
DC Electrical Characteristics 88xCG, 88xCS, and 88xEG: (Continued)
−40˚C ≤ TA≤ +85˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
TRI-STATE LeakageV
=
V
2.5V, V
CC
=
6.0V−1+1µA
CC
=
0.4V0.7mA
OL
Allowable Sink/Source
Current per Pin
D Outputs (Sink)15mA
All others3mA
Maximum Input Current
without Latchup (Notes 9, 10)T
RAM Retention Voltage, V
r
= 25˚
A
500 ns Rise and Fall Time (min)2V
±
100mA
Input Capacitance7pF
Load Capacitance on D21000pF
AC Electrical Characteristics 888EG, 88xCS, and 88xCG:
−40˚C ≤ TA≤ +85˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Instruction Cycle Time (t
Crystal, Resonator4V ≤ V
R/C Oscillator4V ≤ V
Inputs
t
SETUP
t
HOLD
Output Propagation DelayR
t
PD1,tPD0
SO, SK4V ≤ VCC≤ 6.0V0.7µs
All Others4V ≤ V
MICROWIRE Setup Time (t
MICROWIRE Hold Time (t
MICROWIRE Output Propagation Delay (t
Input Pulse Width (Note 11)
If Military/Aerospace specified devices are required,
please contact the National Semiconductor Sales Office/
Distributors for availability and specifications.
Supply Voltage (V
Voltage at Any Pin−0.3V to V
)7V
CC
CC
+ 0.3V
Total Current into V
Pin (Source)100 mA
CC
Total Current out of GND Pin (Sink)110 mA
Storage Temperature Range−65˚C to +140˚C
Note 4:
Absolute maximum ratings indicate limits beyond which damage to
the device may occur. DC and AC electrical specifications are not ensured
when operating the device at absolute maximum ratings.
DC Electrical Characteristics 888GG, 888HG, and 888KG:
−40˚C ≤ TA≤ +85˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Operating Voltage2.55.5V
Power Supply Ripple (Note 6)Peak-to-Peak0.1 V
CC
Supply Current (Note 7)
CKI=10 MHzV
CKI=4 MHzV
CKI=4 MHzV
CKI=1 MHzV
HALT Current (Note 8)V
=
CC
=
CC
=
CC
=
CC
=
CC
=
V
CC
=
5.5V, t
5.5V, t
4V, t
4V, t
5.5V, CKI=0 MHz
4V, CKI=0 MHz
1 µs12.5mA
c
=
2.5 µs5.5mA
c
=
2.5 µs2.5mA
c
=
10 µs1.4mA
c
<
110 µA
<
0.56µA
IDLE Current
CKI=10 MHzV
CKI=4 MHzV
CKI=1 MHzV
Input Levels (V
IH,VIL
)
=
CC
=
CC
=
CC
=
5.5V, t
5.5V, t
4V, t
1 µs3.5mA
c
=
2.5 µs2.5mA
c
=
10 µs0.7mA
c
RESET
Logic High0.8 V
Logic Low0.2 V
CC
CC
CKI, All Other Inputs
Logic High0.7 V
Logic Low0.2 V
Hi-Z Input LeakageV
Input Pullup CurrentV
=
5.5V, V
CC
=
5.5V, V
CC
=
0V−2+2µA
IN
=
0V−40−250µA
IN
G and L Port Input Hysteresis(Note 10)0.35 V
CC
CC
CC
Output Current Levels
D Outputs
SourceV
SinkV
=
CC
=
V
CC
=
CC
=
V
CC
4V, V
2.5V, V
4V, V
2.5V, V
=
3.3V−0.4mA
OH
=
1.8V−0.2mA
OH
=
1V10mA
OL
=
0.4V2.0mA
OL
All Others
Source (Weak Pull-Up Mode)V
Source (Push-Pull Mode)V
Sink (Push-Pull Mode)V
TRI-STATE LeakageV
=
CC
=
V
CC
=
CC
=
V
CC
=
CC
=
V
CC
=
CC
=
4V, V
2.5V, V
4V, V
2.5V, V
4V, V
2.5V, V
2.7V−10−100µA
OH
=
1.8V−2.5−33µA
OH
=
3.3V−0.4mA
OH
=
1.8V−0.2mA
OH
=
0.4V1.6mA
OL
=
0.4V0.7mA
OL
5.5V−2+2µA
Allowable Sink/Source
Current per Pin
D Outputs (Sink)15mA
All others3mA
Maximum Input Current
V
V
V
V
V
V
www.national.com9
DC Electrical Characteristics 888GG, 888HG, and 888KG: (Continued)
−40˚C ≤ TA≤ +85˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
±
without Latchup (Notes 9, 10)Room Temperature
RAM Retention Voltage, V
r
500 ns Rise and Fall Time (min)2V
100mA
Input Capacitance7pF
Load Capacitance on D2(Note 10)1000pF
AC Electrical Characteristics 888GG, 888HG, and 888KG:
−40˚C ≤ TA≤ +85˚C unless otherwise specified
Parameter
(88xCG & 88xEG only)
Instruction Cycle Time (t
)
c
Crystal, Resonator2.5V ≤ V
R/C Oscillator2.5V ≤ V
Inputs
t
SETUP
t
HOLD
Output Propagation DelayR
t
PD1,tPD0
SO, SK4V ≤ VCC≤ 5.5V0.7µs
All Others4V ≤ V
MICROWIRE Setup Time (t
MICROWIRE Hold Time (t
MICROWIRE Output Propagation Delay (t
If Military/Aerospace specified devices are required,
please contact the National Semiconductor Sales Office/
Distributors for availability and specifications.
Supply Voltage (V
Voltage at Any Pin−0.3V to V
)7V
CC
CC
+ 0.3V
Total Current into V
Pin (Source)100 mA
CC
Total Current out of GND Pin (Sink)110 mA
Storage Temperature Range−65˚C to +140˚C
Note 5:
Absolute maximum ratings indicate limits beyond which damage to
the device may occur. DC and AC electrical specifications are not ensured
when operating the device at absolute maximum ratings.
DC Electrical Characteristics 68xCS and 68xxG:
−55˚C ≤ TA≤ +125˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Operating Voltage4.55.5V
Power Supply Ripple (Note 6)Peak-to-Peak0.1 V
Supply Current (Note 7)
CKI=10 MHzV
CKI=4 MHzV
HALT Current (Note 8)V
=
CC
=
CC
=
CC
=
5.5V, t
5.5V, t
1 µs12.5mA
c
=
2.5 µs5.5mA
c
5.5V, CKI=0 MHz
<
1030µA
IDLE Current
CKI=10 MHzV
CKI=4 MHzV
Input Levels (V
IH,VIL
)
=
CC
=
CC
5.5V, t
5.5V, t
=
1 µs3.5mA
c
=
2.5 µs2.5mA
c
RESET
Logic High0.8 V
CC
Logic Low0.2 V
CKI (68xCS & 68xEG only)
Logic High0.7 V
CC
Logic Low0.2 V
All Other Inputs
Logic High0.7 V
CC
Logic Low0.2 V
Hi-Z Input LeakageV
Input Pullup CurrentV
=
5.5V, V
CC
=
5.5V, V
CC
=
0V−5+5µA
IN
=
0V−35−400µA
IN
G and L Port Input Hysteresis(Note 10)0.35 V
Output Current Levels
D Outputs
Note 6: Maximum rate of voltage change must be less than 0.5 V/ms.
Note 7: Supply current is measured after running 2000 cycles with a square wave CKI input, CKO open, inputs at rails and outputs open.
Note 8: The HALT mode will stop CKI from oscillating in the RC and the Crystal configurations. Measurement of IDD HALTis done with device neither sourcing or
sinking current; with L, C, and G0–G5 programmed as low outputs and not driving a load; all outputs programmed low and not driving a load; all inputs tied to V
clock monitor and comparatorsdisabled. Parameter refers toHALTmode entered via setting bit 7 of theG Port data register.Partwill pull up CKIduring HALTin crystal clock mode.
Note 9: Pins G6 and RESET are designed with a high voltage input network. These pins allow input voltages greater than V
to VCCwhen biased atvoltages greater thanVCC(the pins donot have sourcecurrent when biasedat a voltagebelow VCC). The effective resistance to VCCis 750Ω
(typical). These two pins will not latch up. The voltage at the pins must be limited to less than 14V. WARNING: Voltagesin excess of 14V will cause damage to the
pins. This warning excludes ESD transients.
Note 10: Parameter characterized but not tested.
Note 11: t
=
Instruction Cycle Time
c
)
c
Setup Time (t
UWH
≥ 4.5V1.0DCµs
CC
V
≥ 4.5V3.0DCµs
CC
VCC≥ 4.5V200ns
VCC≥ 4.5V60ns
=
L
≥ 4.5V1µs
) (Note 10)20ns
UWS
CC
2.2k, C
L
=
100 pF
) (Note 10)56ns
)220ns
UPD
and the pins will have sink current
CC
c
c
c
c
;
CC
Comparators AC and DC Characteristics
=
V
5V, −40˚C ≤ T
CC
Input Offset Voltage0.4V ≤ V
Input Common Mode Voltage Range0.4V
Voltage Gain300kV/V
Low Level Output CurrentV
High Level Output CurrentV
DC Supply Current per Comparator (When Enabled)250µA
Response Time100 mV Overdrive,1µs
www.national.com12
≤ +85˚C.
A
ParameterConditionsMinTypMaxUnits
≤ VCC− 1.5V
IN
=
0.4V1.6mA
OL
=
4.6V1.6mA
OH
±
10
±
25mV
− 1.5V
CC
100 pF Load
Comparators AC and DC Characteristics (Continued)
DS012829-4
FIGURE 3. MICROWIRE/PLUS Timing
Typical Performance Characteristics (−55˚C ≤ T
DS012829-30DS012829-31
A
=
+125˚C)
DS012829-32DS012829-33
www.national.com13
Typical Performance Characteristics (−55˚C ≤ T
=
+125˚C) (Continued)
A
DS012829-34
DS012829-36DS012829-37
DS012829-35
DS012829-38DS012829-39
www.national.com14
Typical Performance Characteristics (−55˚C ≤ T
=
+125˚C) (Continued)
A
DS012829-40
Pin Descriptions
VCCand GND are the power supply pins. All VCCand GND
pins must be connected.
CKI isthe clock input. This can come from an R/C generated
oscillator, or a crystal oscillator (in conjunction with CKO).
See Oscillator Description section.
RESET is the master reset input.See ResetDescription section.
The device contains three bidirectional 8-bit I/O ports (C, G
and L), where each individual bit may be independently configured asan input (SchmittTrigger inputs on ports L and G),
output or TRI-STATE under program control. Three data
memory address locations are allocated for each of these
I/O ports. Each I/O port has two associated 8-bit memory
mapped registers, the CONFIGURATION register and the
output DATAregister. A memory mapped address is also reserved for the input pins of each I/O port. (See the memory
map for the various addresses associatedwith theI/O ports.)
Figure 4
shows the I/O port configurations. The DATA and
CONFIGURATION registers allow for each port bit to be individually configured under software control as shown below:
CONFIGURATIONDATAPort Set-Up
RegisterRegister
00Hi-Z Input
01Input with Weak Pull-Up
10Push-Pull Zero Output
11Push-Pull One Output
PORT L is an 8-bit I/O port. All L-pins have Schmitt triggers
on the inputs.
The Port L supports Multi-Input WakeUp on all eight pins. L1
is used for the USART external clock. L2 andL3 are used for
the USARTtransmit and receive. L4 and L5 are used for the
timer input functions T2A and T2B. L6 and L7 are used for
the timer input functions T3Aand T3B (execpt on the CS series).
The Port L has the following alternate features:
L7 MIWU or T3B
L6 MIWU or T3A
L5 MIWU or T2B
L4 MIWU or T2A
L3 MIWU or RDX
(TRI-STATE Output)
DS012829-41
L2 MIWU or TDX
L1 MIWU or CKX
L0 MIWU
Port G is an 8-bit port with 5 I/O pins (G0, G2–G5), an input
pin (G6), and a dedicated output pin (G1). Pins G0 and
G2–G6 all have Schmitt Triggers on their inputs. Pin G1
serves as the dedicated WDOUT WATCHDOG output, while
pin G7 is either input or output depending on the oscillator
mask option selected. With the crystal oscillator option selected, G7 serves as the dedicated output pin for the CKO
clock output. With the single-pin R/C oscillator mask option
selected, G7 serves as a general purpose input pin but is
also used to bring the device out of HALT mode with a low to
high transition on G7. There are two registers associated
with the G Port, a data register and a configuration register.
Therefore, each of the 5 I/O bits (G0, G2–G5) can be individually configured under software control.
Since G6 is an input only pin and G7 is the dedicated CKO
clock output pin (crystal clock option) or general purpose input (R/C clock option), the associated bits in the data and
configuration registers for G6 and G7 are used for special
purpose functions as outlined on the next page. Reading the
G6 and G7 data bits will return zeros.
DS012829-5
FIGURE 4. I/O Port Configurations
Note thatthe chip will be placed in the HALT mode by writing
a “1” to bit 7 of the Port G Data Register. Similarly the chip
will beplaced in theIDLE mode by writing a “1” to bit 6 of the
Port G Data Register.
Writing a “1” to bit 6 of the Port G Configuration Register enables the MICROWIRE/PLUS to operate with the alternate
www.national.com15
Pin Descriptions (Continued)
phase of the SK clock. The G7 configuration bit, if set high,
enables the clock start up delay after HALT when the R/C
clock configuration is used.
Config Reg.Data Reg.
G7CLKDLYHALT
G6Alternate SKIDLE
Port G has the following alternate features:
G6 SI (MICROWIRE Serial Data Input)
G5 SK (MICROWIRE Serial Clock)
G4 SO (MICROWIRE Serial Data Output)
G3 T1A (Timer T1 I/O)
G2 T1B (Timer T1 Capture Input)
G0 INTR (External Interrupt Input)
Port G has the following dedicated functions:
G7 CKO Oscillator dedicated output or general purpose
input
G1 WDOUT WATCHDOG and/or Clock Monitor dedi-
cated output
Port C is an 8-bit I/O port. The 40-pin device does not have
a full complement of Port C pins. The unavailable pins are
not terminated.A read operation for these unterminated pins
will return unpredicatable values.
Port I is an eight-bit Hi-Z input port.
Port I1–I3 are used forComparator 1.Port I4–I6 are used for
Comparator 2.
The Port I has the following alternate features:
Port D is an 8-bit output port that ispreset high when RESET
goes low. The user can tie two or more D port outputs (except D2) together in order to get a higher drive.
Functional Description
The architecture of the device is modified Harvard architecture. With the Harvard architecture, the control store program memory (ROM) is separated from the data store
memory (RAM). Both ROM and RAM have their own separate addressing space with separate address buses.The architecture, though based on Harvard architecture, permits
transfer of data from ROM to RAM.
CPU REGISTERS
The CPU can doan 8-bit addition, subtraction, logicalor shift
operation in one instruction (t
There are six CPU registers:
A is the 8-bit Accumulator Register
PC is the 15-bit Program Counter Register
PU is the upper 7 bits of the program counter (PC)
PL is the lower 8 bits of the program counter (PC)
B is an 8-bit RAM address pointer, which can be optionally
post auto incremented or decremented.
X is an 8-bit alternate RAM address pointer, which can be
optionally post auto incremented or decremented.
www.national.com16
) cycle time.
c
SP is the 8-bit stack pointer, which points to the subroutine/
interrupt stack (in RAM). The SP is initialized to RAM address 06F with reset.
S is the 8-bitData SegmentAddress Register used to extend
the lower half of the address range (00 to 7F) into 256 data
segments of 128 bytes each.
All the CPU registers are memory mapped with the exception of the Accumulator (A) and the Program Counter (PC).
PROGRAM MEMORY
The program memory consists of up to 24 kbytes of ROM.
These bytes may hold program instructions or constant data
(data tablesfor the LAIDinstruction, jump vectors for the JID
instruction, and interrupt vectors for the VIS instruction). The
program memory is addressed by the 15-bit program
counter (PC). All interrupts in the devices vector to program
memory location 0FF Hex.
DATA MEMORY
The data memory address space includes the on-chip RAM
and data registers, theI/O registers (Configuration, Data and
Pin), the control registers, the MICROWIRE/PLUS SIO shift
register, and the various registers, and counters associated
with the timers (with the exception of the IDLE timer). Data
memory is addressed directly by the instruction or indirectly
by the B, X, SP pointers and S register.
The data memory consists of up to 512 bytes of RAM. Sixteen bytes of RAM are mapped as “registers” at addresses
0F0 to0FF Hex. These registers can be loaded immediately,
and also decremented and tested withthe DRSZ(decrement
register and skip if zero) instruction. The memory pointer
registers X,SP,B and S are memorymapped into thisspace
at address locations 0FC to 0FF Hex respectively, with the
other registers being available for general usage.
The instructionset permits anybit in memoryto be set,reset
or tested. All I/O and registers (except A and PC) are
memory mapped; therefore, I/O bits and register bits can be
directly andindividually set, reset and tested. The accumulator (A) bits can also be directly and individually tested.
Note: RAM contents are undefined upon power-up.
Data Memory Segment RAM
Extension
Data memory address 0FF is used as a memory mapped location for the Data Segment Address Register (S).
The data store memory is either addressed directly by a
single byte address within the instruction, or indirectly relative to the reference of the B, X, or SP pointers (each contains a single-byte address). This single-byte address allows
an addressingrange of 256 locations from 00 to FF hex. The
upper bit of this single-byte address divides the data store
memory into two separate sections as outlined previously.
With the exception of the RAM register memory from address locations 00F0 to 00FF, all RAM memory is memory
mapped with the upper bit of the single-byte address being
equal to zero. This allows the upper bit of the single-byte address to determine whether or not the base address range
(from 0000 to 00FF) is extended. If this upper bit equals one
(representing address range 0080 to 00FF), then address
extension does not take place. Alternatively, if this upper bit
equals zero, then the data segment extension register S is
used to extend the base address range (from 0000 to 007F)
from XX00 to XX7F,where XX represents the 8 bits from the
S register. Thus the 128-byte data segment extensions are
located from addresses 0100 to 017F for data segment 1,
Loading...
+ 37 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.