COP888EK
8-Bit CMOS ROM Based Microcontrollers with 8k
Memory, Comparator, and Single-slope A/D Capability
OBSOLETE
January 2000
COP888EK 8-Bit CMOS ROM Based Microcontrollers with 8k Memory, Comparator, and
Single-slope A/D Capability
General Description
The COP888EK ROM based microcontrollers are highly integrated COP8
advanced features including a Multi-Input Comparator and
Single-slope A/D capability. These single-chip CMOS devices are suited for applications requiring a full featured, low
EMI controller with an analog comparator, current source,
and voltage reference. The COP87L88EK/RK Family devices are pin and software compatible (different V
16k or 32k OTP (One Time Programmable) versions for preproduction, and for use with a range of COP8 software and
hardware development tools.
n 8 kbytes of on-chip ROM
n 256 bytes of on-chip RAM
/2 reference
CC
Additional Peripheral Features
n Idle Timer
n Multi-Input Wake Up (MIWU) with optional interrupts (8)
n WATCHDOG and Clock Monitor logic
n MICROWIRE/PLUS serial I/O
I/O Features
n Software selectable I/O options (TRI-STATE™Output,
Push-Pull Output, Weak Pull-Up Input, High Impedance
Input)
n High current outputs
n Schmitt trigger inputs on Port G and L
n Packages: 44 PLCC with 40 I/O pins, 40 DIP with 36 I/O
pins, and 28 DIP/SO with 24 I/O pins
Family features include an 8-bit memory mapped architecture, 10 MHz CKI with 1µs instruction cycle, three multifunction 16-bit timer/counters with PWM, MICROWIRE/
™
PLUS
multiplexor, an analog current source and V
two power saving HALT/IDLE modes, idle timer, MIWU, high
current outputs, software selectable I/O options, WATCHDOG
eration and 28/40/44 pin packages.
Devices included in this datasheet are:
serial I/O, one analog comparator with seven input
reference,
CC
™
timer and Clock Monitor, Low EMI 2.5V to 6.0V op-
CPU/Instruction Set Feature
n 1 µs instruction cycle time
n Twelve multi-source vectored interrupts servicing
— External Interrupt with selectable edge
— Idle Timer T0
— Three Timers (Each with 2 interrupts)
— MICROWIRE/PLUS
— Multi-Input Wake Up
— Software Trap
— Default VIS (default interrupt)
n Versatile and easy to use instruction set
n 8-bit Stack Pointer (SP)—stack in RAM
n Two 8-bit Register Indirect Data Memory Pointers
(B, X)
Fully Static CMOS
n Single supply operation: 2.5V to 6.0V
n Temperature ranges: 0˚C to +70˚C, −40˚C to +85˚C, and
−55˚C to +125˚C
COP8™, MICROWIRE/PLUS™, and WATCHDOG™are trademarks of National Semiconductor Corporation.
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
+ 0.3V
CC
Total Current into V
Total Current out of GND Pin (Sink)110 mA
Storage Temperature Range−65˚C to +140˚C
Note 1:
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.
Pin (Source)100 mA
CC
DC Electrical Characteristics 98xEK:
0˚C ≤ TA≤ + 70˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Operating Voltage COP98XEK2.54.0V
COP98XEKH4.06.0V
Power Supply Ripple (Note 3)Peak-to-Peak0.1 V
CC
Supply Current (Note 4)
CKI=10 MHzV
CKI=4 MHzV
HALT Current (Note 5)V
=
6.0V, t
CC
=
2.5V, t
CC
=
6.0V, CKI=0 MHz
CC
=
V
4.0V, CKI=0 MHz
CC
=
1 µs10.0mA
c
=
2.5 µs1.7mA
c
<
48 µA
<
34 µA
IDLE Current (Note 4)
CKI=10 MHzV
CKI=4 MHzV
Input Levels (V
IH,VIL
)
=
6.0V, t
CC
=
2.5V, t
CC
=
1 µs0.41.7mA
c
=
2.5 µs0.20.5mA
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
=
6.0V−1+1µA
CC
=
6.0V, V
CC
=
0V−40−250µA
IN
G and L Port Input Hysteresis (Note 8)0.35 V
CC
CC
CC
Output Current Levels
D Outputs
SourceV
SinkV
=
4.0V, V
CC
=
V
2.5V, V
CC
=
4.0V, V
CC
=
V
2.5V, V
CC
=
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
=
4.0V, V
CC
=
V
2.5V, V
CC
=
4.0V, V
CC
=
V
2.5V, V
CC
=
4.0V, V
CC
=
V
2.5V, V
CC
=
6.0V−1+1µA
CC
=
2.7V−10−110µ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
Allowable Sink/Source Current per Pin
(Note 8)
D Outputs (Sink)15mA
All others3mA
Maximum Input CurrentRoom Temp
±
100mA
without Latchup (Note 6)
RAM Retention Voltage, V
r
500 ns Rise and Fall Time (Min)2V
V
V
V
V
V
V
www.national.com5
DC Electrical Characteristics 98xEK: (Continued)
0˚C ≤ TA≤ + 70˚C unless otherwise specified
COP888EK
ParameterConditionsMinTypMaxUnits
Input Capacitance7pF
Load Capacitance on D21000pF
AC Electrical Characteristics 98xEK:
0˚C ≤ TA≤ + 70˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Instruction Cycle Time (t
Crystal, Resonator,4.0V ≤ V
R/C Oscillator4.0V ≤ V
Inputs
t
SETUP
t
HOLD
Output Propagation Delay (Note 7)R
t
PD1,tPD0
SO, SK4.0V ≤ VCC≤ 6.0V0.7µs
All Others4.0V ≤ V
MICROWIRE
™
Setup Time (t
MICROWIRE Hold Time (t
MICROWIRE Output Propagation Delay (t
Input Pulse Width (Note 8)
Note 2: t
Note 3: Maximum rate of voltage change must be
Note 4: Supply and IDLE currents are measured with CKI driven with a square wave Oscillator, CKO driven 180˚ out of phase with CKI, inputs connected to V
and outputs driven low but not connected to a load.
Note 5: The HALT mode will stop CKI from oscillating in the RC and the Crystal configurations. Measurement of I
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 comparator disabled. Parameter refers to HALTmode entered via setting bit 7 of the G Port data register. Part will pull up CKI during HALTincrystal
clock mode.
Note 6: Pins G6 and RESET are designed with a high voltage input network. These pins allow input voltages
biased at voltages>VCC(the pins do not have source current when biased at a voltage below VCC). The effective resistance to VCCis 750Ω (typical). These two
pins will not latch up. The voltage at the pins must be limited to
cludes ESD transients.
Note 7: The output propagation delay is referenced to the end of the instruction cycle where the output change occurs.
Note 8: Parameter characterized but not tested.
=
Instruction Cycle Time
c
)
c
≤ 6.0V1.0DCµs
CC
2.5V ≤ V
2.5V ≤ V
<
4.0V2.5DCµs
CC
≤ 6.0V3.0DCµs
CC
<
4.0V7.5DCµs
CC
4.0V ≤ VCC≤ 6.0V200ns
2.5V ≤ V
<
4.0V500ns
CC
4.0V ≤ VCC≤ 6.0V60ns
2.5V ≤ V
=
L
2.5V ≤ V
2.5V ≤ V
) (Note 7)VCC≥ 4.0V20ns
UWS
) (Note 7)VCC≥ 4.0V56ns
UWH
)VCC≥ 4.0V220ns
UPD
<
0.5 V/ms.
<
14V.WARNING: Voltages in excess of 14V will cause damage to the pins. This warning ex-
<
4.0V150ns
CC
2.2k, C
=
100 pF
L
<
4.0V1.75µs
CC
≤ 6.0V1µs
CC
<
4.0V2.5µs
CC
HALTis done with device neither sourcing nor
DD
>
VCCand the pins will have sink current to VCCwhen
c
c
c
c
CC
CC
;
www.national.com6
COP888EK
Absolute Maximum Ratings (Note 9)
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
+ 0.3V
CC
Total Current into V
Total Current out of GND Pin (Sink)110 mA
Storage Temperature Range−65˚C to +140˚C
Note 9:
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.
Pin (Source)100 mA
CC
DC Electrical Characteristics 88xEK:
−40˚C ≤ TA≤ +85˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Operating Voltage2.56.0V
Power Supply Ripple (Note 11)Peak-to-Peak0.1 V
CC
Supply Current (Note 12)
CKI=10 MHzV
CKI=4 MHzV
HALT Current (Note 13)V
=
6.0V, t
CC
=
2.5V, t
CC
=
6.0V, CKI=0 MHz
CC
=
1 µs10.0mA
c
=
2.5 µs1.7mA
c
<
410 µA
IDLE Current (Note 12)
CKI=10 MHzV
CKI=4 MHzV
Input Levels (V
IH,VIL
)
=
6.0V, t
CC
=
6.0V, t
CC
=
1 µs0.41.7mA
c
=
2.5 µs0.20.5mA
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
=
6.0V−2+2µA
CC
=
6.0V, V
CC
=
0V−40−250µA
IN
G and L Port Input Hysteresis (Note 16)0.35 V
CC
CC
CC
Output Current Levels
D Outputs
SourceV
SinkV
=
4.0V, V
CC
=
V
2.5V, V
CC
=
4.0V, V
CC
=
V
2.5V, V
CC
=
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
=
4.0V, V
CC
=
V
2.5V, V
CC
=
4.0V, V
CC
=
V
2.5V, V
CC
=
4.0V, V
CC
=
V
2.5V, V
CC
=
6.0V−2+2µA
CC
=
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
Allowable Sink/Source Current per Pin
(Note 16)
D Outputs (Sink)15mA
All others3mA
Maximum Input CurrentRoom Temp
±
100mA
without Latchup (Note 14)
RAM Retention Voltage, V
r
500 ns Rise2V
and Fall Time (min)
Input Capacitance7pF
V
V
V
V
V
V
www.national.com7
DC Electrical Characteristics 88xEK: (Continued)
−40˚C ≤ TA≤ +85˚C unless otherwise specified
COP888EK
ParameterConditionsMinTypMaxUnits
Load Capacitance on D21000pF
AC Electrical Characteristics 88xEK:
−40˚C ≤ TA≤ +85˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Instruction Cycle Time (t
Crystal, Resonator,4.0V ≤ V
R/C Oscillator4.0V ≤ V
Inputs
t
SETUP
t
HOLD
Output Propagation Delay (Note 15)R
t
PD1,tPD0
SO, SK4.0V ≤ VCC≤ 6.0V0.7µs
All Others4.0V ≤ V
MICROWIRE Setup Time (t
MICROWIRE Hold Time (t
MICROWIRE Output Propagation Delay (t
Input Pulse Width (Note 16)
Note 10: t
Note 11: Maximum rate of voltage change must be
Note 12: Supply and IDLE currents are measured with CKI driven with a square wave Oscillator, CKO driven 180˚ out of phase with CKI, inputs connected to V
and outputs driven low but not connected to a load.
Note 13: The HALTmode will stop CKI from oscillating in the RC and the Crystal configurations. Measurement of I
sinking current; with L, C, G0, and G2–G5 programmed as low outputs and not driving a load; all outputs programmed low and not driving a load; all inputs tied to
V
CC
in crystal clock mode.
Note 14: Pins G6 and RESET are designed with a high voltage input network. These pins allow input voltages
biased at voltages>VCC(the pins do not have source current when biased at a voltage below VCC). The effective resistance to VCCis 750Ω (typical). These two
pins will not latch up. The voltage at the pins must be limited to
cludes ESD transients.
Note 15: The output propagation delay is referenced to the end of the instruction cycle where the output change occurs.
Note 16: Parameter characterized but not tested.
=
Instruction Cycle Time
c
; clock monitor and comparator disabled. Parameter refers to HALT mode entered via setting bit 7 of the G Port data register. Part will pull up CKI during HALT
)
c
≤ 6.0V1.0DCµs
CC
2.5V ≤ V
2.5V ≤ V
<
4.0V2.5DCµs
CC
≤ 6.0V3.0DCµs
CC
≤ 4.0V7.5DCµs
CC
4.0V ≤ VCC≤ 6.0V200ns
2.5V ≤ V
<
4.0V500ns
CC
4.0V ≤ VCC≤ 6.0V60ns
2.5V ≤ V
=
L
2.5V ≤ V
2.5V ≤ V
) (Note 15)20ns
UWS
) (Note 15)56ns
UWH
)220ns
UPD
<
0.5 V/ms.
<
14V.WARNING: Voltages in excess of 14V will cause damage to the pins. This warning ex-
<
4.0V150ns
CC
2.2k, C
=
100 pF
L
<
4.0V1.75µs
CC
≤ 6.0V1.0µs
CC
<
4.0V2.5µs
CC
HALTis done with device neither sourcing nor
DD
>
VCCand the pins will have sink current to VCCwhen
c
c
c
c
CC
www.national.com8
COP888EK
Absolute Maximum Ratings (Note 17)
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
+ 0.3V
CC
Total Current into V
Total Current out of GND Pin (Sink)110 mA
Storage Temperature Range−65˚C to +140˚C
Note 17:
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.
Pin (Source)100 mA
CC
DC Electrical Characteristics 68xEK:
−55˚C ≤ TA≤ +125˚C unless otherwise specified
ParameterConditionsMinTypMaxUnits
Operating Voltage4.55.5V
Power Supply Ripple (Note 19)Peak-to-Peak0.1 V
Supply Current (Note 22)V
=
5.5V, t
CC
=
1 µs12.5mA
c
CC
CKI=10 MHz
HALT Current (Note 21)V
=
5.5V, CKI=0 MHz
CC
<
1030µA
IDLE Current (Note 22)
CKI=10 MHzV
Input Levels (V
IH,VIL
)
=
5.5V, t
CC
=
1 µs1.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−5+5µA
CC
=
5.5V, V
CC
=
0V−35−400µA
IN
G and L Port Input Hysteresis (Note 24)0.35 V
CC
CC
CC
Output Current Levels
D Outputs
SourceV
SinkV
=
4.5V, V
CC
=
4.5V, V
CC
=
3.3V−0.4mA
OH
=
1.0V9.0mA
OL
All Others
Source (Weak Pull-Up Mode)V
Source (Push-Pull Mode)V
Sink (Push-Pull Mode)V
TRI-STATE LeakageV
=
4.5V, V
CC
=
4.5V, V
CC
=
4.5V, V
CC
=
5.5V−5.0+5µA
CC
=
2.7V−9.0−110µA
OH
=
3.3V−0.4mA
OH
=
0.4V1.6mA
OL
Allowable Sink/Source Current per Pin
D Outputs (Sink)12mA
All others2.5mA
Maximum Input CurrentRoom Temp
±
100mA
without Latchup (Note 22)
RAM Retention Voltage, V
r
500 ns Rise and21.5V
and Fall Time (min)
Input Capacitance7pF
Load Capacitance on D21000pF
V
V
V
V
V
V
www.national.com9
AC Electrical Characteristics 68xEK:
−55˚C ≤ TA≤ +125˚C unless otherwise specified
COP888EK
Instruction Cycle Time (t
Crystal, Resonator4.5V ≤ V
R/C Oscillator4.5V ≤ V
Inputs
t
SETUP
t
HOLD
Output Propagation Delay (Note 23)R
t
PD1,tPD0
SO, SK4.5V ≤ VCC≤ 5.5V0.7µs
All Others4.5V ≤ V
MICROWIRE Setup Time (t
MICROWIRE Hold Time (t
MICROWIRE Output Propagation Delay (t
Input Pulse Width (Note 24)
Note 18: t
Note 19: Maximum rate of voltage change must be
Note 20: Supply and IDLE currents are measured with CKI driven with a square wave Oscillator, CKO driven 180˚ out of phase with CKI, inputs connected to V
and outputs driven low but not connected to a load.
Note 21: The HALTmode will stop CKI from oscillating in the RC and the Crystal configurations. Measurement of I
sinking current; with L, C, G0, and G2–G5 programmed as low outputs and not driving a load; all outputs programmed low and not driving a load; all inputs tied to
V
CC
in crystal clock mode.
Note 22: Pins G6 and RESET are designed with a high voltage input network. These pins allow input voltages
biased at voltages>VCC(the pins do not have source current when biased at a voltage below VCC). The effective resistance to VCCis 750Ω (typical). These two
pins will not latch up. The voltage at the pins must be limited to
cludes ESD transients.
Note 23: The output propagation delay is referenced to the end of the instruction cycle where the output change occurs.
Note 24: Parameter characterized but not tested.
=
c
; clock monitor and comparator disabled. Parameter refers to HALT mode entered via setting bit 7 of the G Port data register. Part will pull up CKI during HALT
ParameterConditionsMinTypMaxUnits
)
c
≤ 5.5V1.0DCµs
CC
<
5.5V3.0DCµs
CC
4.5V ≤ VCC≤ 5.5V200ns
4.5V ≤ VCC≤ 5.5V60ns
UWS
UWH
Instruction Cycle Time
=
2.2k, C
L
) (Note 23)VCC≥ 4.5V20ns
) (Note 23)VCC≥ 4.5V56ns
)VCC≥ 4.5V220ns
UPD
<
0.5 V/ms.
<
14V.WARNING: Voltages in excess of 14V will cause damage to the pins. This warning ex-
=
100 pF
L
≤ 5.5V1.0µs
CC
HALTis done with device neither sourcing nor
DD
>
VCCand the pins will have sink current to VCCwhen
c
c
c
c
CC
Analog Function Block AC and DC Characteristics
=
V
5.0V, −40˚C ≤ T
CC
ParameterConditionsMinTypMaxUnits
Input Offset Voltage0.4V
Input Common Mode Voltage Range
(Note 26)
V
/2 Reference4.0V<V
CC
DC Supply Current for
Comparator (when enabled)
DC Supply Current for
V
/2 Reference (when enabled)
CC
DC Supply Current for
Constant Current Source (when enabled)
Constant Current Source4.0V
Current Source Variation over4.0V
Common Mode RangeTemp=Constant
Current Source Enable Time1.52µs
www.national.com10
≤ +85˚C
A
<
<
V
VCC− 1.5V
IN
0.4V
<
6.0V0.5 VCC− 0.040.5 V
CC
=
V
6.0V
CC
=
V
6.0V
CC
=
V
6.0V
CC
<
<
V
6.0V102040µA
CC
<
<
V
6.0V
CC
±
10
CC
±
25mV
− 1.5V
CC
0.5 VCC+ 0.04V
250µA
5080µA
200µA
±
2µA
Analog Function Block AC and DC Characteristics (Continued)
=
V
5.0V, −40˚C ≤ T
CC
ParameterConditionsMinTypMaxUnits
Comparator Response Time100 mV Overdrive,1µs
Note 25: While performance characteristics are given at V
/2 reference and the constant current source is not guaranteed beyond the specified limits.
V
CC
Note 26: The device is capable of operating over a common mode voltage range of 0 to V
and 0.4V.
≤ +85˚C
A
100 pF Load
=
5.0V, the analog function block will operate over the entire 2.5V–6.0V V
CC
− 1.5V, however increased offset voltage will be observed between 0V
CC
DS012094-18
FIGURE 3. MICROWIRE/PLUS Timing
range. Accuracy of the
CC
COP888EK
Typical Performance Characteristics (−55˚C ≤ T
DS012094-19DS012094-20
A
=
+125˚C)
DS012094-21DS012094-22
www.national.com11
Typical Performance Characteristics (−55˚C ≤ T
COP888EK
=
+125˚C) (Continued)
A
DS012094-23
DS012094-25DS012094-26
DS012094-24
DS012094-27DS012094-28
www.national.com12
COP888EK
Typical Performance Characteristics (−55˚C ≤ T
DS012094-29
Pin Descriptions
VCCand GND are the power supply pins. All VCCand GND
pins must be connected.
CKI is the 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 Reset Description section.
The device contains three bidirectional 8-bit I/O ports (C, G
and L), where each individual bit may be independently configured as an input (Schmitt Trigger 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 DATA register.A memory mapped address is also reserved for the input pins of each I/O port. (See the memory
map for the various addresses associated with the I/O ports.)
Figure 4
CONFIGURATION registers allow for each port bit to be individually configured under software control as shown below:
shows the I/O port configurations. The DATA and
CONFIGURA-
TION
RegisterRegister
00Hi-Z Input
01Input with Weak Pull-Up
10Push-Pull Zero Output
11Push-Pull One Output
DATA
Port Set-Up
(TRI-STATE Output)
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
L2 MIWU
L1 MIWU
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 (G7). 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 HALTmode 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.
=
+125˚C) (Continued)
A
DS012094-30
PORT L is an 8-bit I/O port. All L-pins have Schmitt triggers
on the inputs.
The Port L supports Multi-Input Wake Up on all eight pins. L4
and L5 are used for the timer input functions T2A and T2B.
L6 and L7 are used for the timer input functions T3A and
T3B.
www.national.com13
Pin Descriptions (Continued)
COP888EK
FIGURE 4. I/O Port Configurations
Note that the 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 be placed in the IDLE 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
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.
PORTI is an eight-bit Hi-Z input port. The 28-pin device does
not have a full complement of Port I pins. The unavailable
pins are not terminated i.e., they are floating. A read operation for these unterminated pins will return unpredictable values. The user must ensure that the software takes this into
account by either masking or restricting the accesses to bit
operations. The unterminated Port I pins will draw power
only when addressed.
Port I is an eight-bit Hi-Z input port.
Port I0–I7 are used for the analog function block.
The Port I has the following alternate features:
Port D is an 8-bit output port that is preset 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.
Note: Care must be exercised with the D2 pin operation. At RESET, the ex-
ternal loads on this pin must ensure that the output voltages stay
above 0.8 V
keep the external loading on D2 to
to prevent the chip from entering special modes. Also
CC
<
1000 pF.
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 do an 8-bit addition, subtraction, logical or 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.
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.
) cycle time.
c
www.national.com14
Loading...
+ 32 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.