1
1
1
General Description
Key Features
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Memory-mapped I/O
Software selectable I/O options (TRI-STATE, PushPull, Weak Pull-Up Input, High Impedance input)
Development Support
Y
I/O Features
Y
Block Diagram
TL/DD/11299 1
TL/DD11299
RRD-B30M96/Printed in U. S. A.
http://www.national.com
August 1996
Connection Diagrams
TL/DD/11299 4
Top View
Order Number COP8780C-XXX/V or COP8780C-XXX/EL
See NS Package Number EL40C or V44A
TL/DD/112993
Top View
Order Number COP8780C-XXX/N or COP8780C-XXX/J
See NS Package Number J40AQ or N40A
TL/DD/112995
Top View
Order Number COP78782C/XXX/J, COP8782C-XXX/N
or COP8782C-XXX/WM
See NS Package Number J20AQ, M20B or N20B
TL/DD/11299 6
Top View
Order Number COP8781C-XXX/J, COP8781C-XXX/N or
COP8781C-XXX/WM
See NS Package Number J28AQ, M28B or N28B
http://www.national.com
COP8780C/COP8781C/COP8782C
Absolute Maximum Ratings
Total Current into VCC Pin (Source)
50 mA
Condition
Min
Operating Voltage
Power Supply Ripple (Note 1)
Peak to Peak
Supply Current
CKI e 10 MHz (Note 2)
HALT Current (Note 3)
VCC e 6V, tc e 1 ms
VCC e 6V, CKI e 0 MHz
Input Levels
RESET, CKI
Logic High
Logic Low
All Other Inputs
Logic High
Logic Low
Max
Units
6.0
0.1 VCC
V
V
21
10
mA
mA
0.1 VCC
V
V
0.2 VCC
V
V
a2
b 250
mA
mA
0.9 VCC
0.7 VCC
VCC e 6.0V
VCC e 6.0V, VIN e 0V
(Note 6)
Typ
4.5
b2
b 40
0.05 VCC
b 0.4
b 10
b 0.4
mA
mA
10
b 110
a 2.0
mA
mA
mA
mA
15
3
mA
mA
g 200
mA
1.6
b 2.0
Allowable Sink/Source
Current per Pin
D Outputs (Sink)
All Others
Maximum Input Current (Notes 4, 6)
without Latchup (Room Temp)
Room Temp
2.0
Input Capacitance
(Note 6)
pF
Load Capacitance on D2
(Note 6)
1000
pF
http://www.national.com
COP8780C/COP8781C/COP8782C
AC Electrical Characteristics b40 C k TA k a 85 C unless otherwise specified
Parameter
Condition
Max
Units
1
3
DC
DC
ms
ms
fr e Max
fr e 10 MHz Ext Clock
fr e 10 MHz Ext Clock
45
55
12
8
%
ns
ns
VCC t 4.5V
VCC t 4.5V
200
60
VCC t 4.5V
VCC t 4.5V
Min
Typ
0.7
1
20
56
tc
tc
tc
tc
1.0
ms
Timing Diagram
TL/DD/10802 2
ns
1
1
1
1
ms
ms
ns
ns
220
http://www.national.com
ns
ns
Pin Descriptions
Pins G1 and G2 currently do not have any alternate functions.
Data
0
0
1
1
0
1
0
1
Functional Description
Figure 1 shows the block diagram of the internal architecture. Data paths are illustrated in simplified form to depict
how the various logic elements communicate with each other in implementing the instruction set of the device.
ALU AND CPU REGISTERS
The ALU can do an 8-bit addition, subtraction, logical or
shift operation in one cycle time.
There are five CPU registers:
A is the 8-bit Accumulator 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 the 8-bit address register, can be auto incremented or
decremented.
X is the 8-bit alternate address register, can be incremented
or decremented.
SP is the 8-bit stack pointer, which points to the subroutine/
interrupt stack in RAM. The SP must be initialized with software (usually to RAM address 06F Hex with 128 bytes of
on-chip RAM selected, or to RAM address 02F Hex with 64
bytes of on-chip RAM selected). The SP is used with the
subroutine call and return instructions, and with the interrupts.
B, X and SP registers are mapped into the on-chip RAM.
The B and X registers are used to address the on-chip RAM.
The SP register is used to address the stack in RAM during
subroutine calls and returns.
Data
Port G Setup
0
0
1
1
0
1
0
1
PROGRAM MEMORY
The device contains 4096 bytes of UV erasable or OTP
EPROM memory. This memory is mapped in the program
memory address space from 0000 to 0FFF Hex. The program memory may contain either instructions or data constants, and is addressed by the 15-bit program counter (PC).
The program memory can be indirectly read by the LAID
(Load Accumulator Indirect) instruction for table lookup of
constant data.
All locations in the EPROM program memory will contain
0FF Hex (all 1s) after the device is erased. OTP parts are
shipped with all locations already erased to 0FF Hex. Unused EPROM locations should always be programmed to 00
Hex so that the software trap can be used to halt runaway
program operation.
The device can be configured to inhibit external reads of the
program memory. This is done by programming the security
bit in the ECON (EPROM configuration) register to zero. See
the ECON REGISTER section for more details.
DATA MEMORY
The data memory address space includes on-chip RAM,
I/O, and registers. Data memory is addressed directly by
instructions, or indirectly by means of the B, X, or SP point-
http://www.national.com
RESET
The RESET input when pulled low initializes the microcontroller. Initialization will occur whenever the RESET input is
pulled low. Upon initialization, the Ports L, G and C are
placed in the TRI-STATE mode and the Port D is set high.
The PC, PSW and CNTRL registers are cleared. The data
and configuration registers for Ports L, G and C are cleared.
The external RC network shown in Figure 4 should be used
to ensure that the RESET pin is held low until the power
supply to the chip stabilizes.
TL/DD/11299 7
TABLE I
Bit 7 Bit 6
X
Bit 5
Bit 1
Bit 0
RAM SIZE
Bit 7 e X
Bit 6 e X
Bit 5 e 1
Dont care.
Dont care.
Security disabled. EPROM read and write are
allowed.
e0
TL/DD/11299 8
Bits 4,3
A. Crystal Oscillator
The device can be driven by a crystal clock. The crystal
network is connected between the pins CKI and CKO.
Table II shows the component values required for various
standard crystal frequencies.
e 1,1
e 0,1
Bit 0 e X
B. External Oscillator
CKI can be driven by an external clock signal provided it
meets the specified duty cycle, rise and fall times, and input
levels. In External oscillator mode, G7 is available as a general purpose input and/or HALT restart control.
http://www.national.com
R2
(MX)
C1
(pF)
C2
(pF)
CKI Freq
(MHz)
Conditions
0
0
1
1
30
30
30 36
30 36
10
4
VCC e 5V
VCC e 5V
C
(pF)
CKI Freq.
(MHz)
Instr. Cycle
(ms)
Conditions
3.3
5.6
6.8
82
100
100
2.2 to 2.7
1.1 to 1.3
0.9 to 1.1
3.7 to 4.6
7.4 to 9.0
8.8 to 10.8
VCC e 5V
VCC e 5V
VCC e 5V
INTERRUPT CONTROL
The GIE (global interrupt enable) bit enables the interrupt
function. This is used in conjunction with ENI and ENTI to
select one or both of the interrupt sources. This bit is reset
when interrupt is acknowledged.
ENI and ENTI bits select external and timer interrupts respectively. Thus the user can select either or both sources
to interrupt the microcontroller when GIE is enabled.
IEDG selects the external interrupt edge (0 e rising edge,
1 e falling edge). The user can get an interrupt on both
rising and falling edges by toggling the state of IEDG bit
after each interrupt.
IPND and TPND bits signal which interrupt is pending. After
an interrupt is acknowledged, the user can check these two
bits to determine which interrupt is pending. This permits the
interrupts to be prioritized under software. The pending flags
have to be cleared by the user. Setting the GIE bit high
inside the interrupt subroutine allows nested interrupts.
The software interrupt does not reset the GIE bit. This
means that the controller can be interrupted by other interrupt sources while servicing the software interrupt.
C. R/C Oscillator
CKI can be configured as a single pin RC controlled oscillator. In RC oscillator mode, G7 is available as a general purpose input and/or HALT restart control.
Table III shows the variation in the oscillator frequencies as
functions of the component (R and C) values.
HALT MODE
The device supports a power saving mode of operation:
HALT. The controller is placed in the HALT mode by setting
the G7 data bit, alternatively the user can stop the clock
input. (Stopping the clock input will draw more current than
setting the G7 data bit.) In the HALT mode all internal processor activities including the clock oscillator are stopped.
The fully static architecture freezes the state of the controller and retains all information until continuing. In the HALT
mode, power requirements are minimal as it draws only
leakage currents and output current. The applied voltage
(VCC) may be decreased down to Vr (minimum RAM retention voltage) without altering the state of the machine.
There are two ways to exit the HALT mode: via the RESET
or by the G7 pin. A low on the RESET line reinitializes the
microcontroller and starts execution from address 0000H. In
external and RC oscillator modes, a low to high transition on
the G7 pin also causes the microcontroller to come out of
the HALT mode. Execution resumes at the address following the HALT instruction. Except for the G7 data bit, which
gets reset, all RAM locations retain the values they had prior
to execution of the HALT instruction. It is required that the
first instruction following the HALT instruction be a
NOP in order to synchronize the clock.
INTERRUPT PROCESSING
The interrupt, once acknowledged, pushes the program
counter (PC) onto the stack and the stack pointer (SP) is
decremented twice. The Global Interrupt Enable (GIE) bit is
reset to disable further interrupts. The microcontroller then
vectors to the address 00FFH and resumes execution from
that address. This process takes 7 cycles to complete. At
the end of the interrupt subroutine, any of the following
three instructions return the processor back to the main program: RET, RETSK or RETI. Either one of the three instructions will pop the stack into the program counter (PC). The
stack pointer is then incremented twice. The RETI instruction additionally sets the GIE bit to re-enable further interrupts.
Any of the three instructions can be used to return from a
hardware interrupt subroutine. The RETSK instruction
should be used when returning from a software interrupt
subroutine to avoid entering an infinite loop.
INTERRUPTS
The device has a sophisticated interrupt structure to allow
easy interface to the real world. There are three possible
interrupt sources, as shown below.
A maskable interrupt on external G0 input (positive or negative edge sensitive under software control)
A maskable interrupt on timer underflow or timer capture
A non-maskable software/error interrupt on opcode zero
Note: There is always the possiblity of an interrupt occurring during an instruction which is attempting to reset the GIE bit or any other interrupt
enable bit. If this occurs when a single cycle instruction is being used
to reset the interrupt enable bit, the interrupt enable bit will be reset
but an interrupt may still occur. This is because interrupt processing
is started at the same time as the interrupt bit is being reset. To avoid
this scenario, the user should always use a two, three, or four cycle
instruction to reset interrupt enable bits.
http://www.national.com
TL/DD/11299 9
TABLE IV
MICROWIRE/PLUS
MICROWIRE/PLUS is a serial synchronous bidirectional
communications interface. The MICROWIRE/PLUS capability enables the device to interface with any of National
Semiconductors MICROWIRE peripherals (i.e. A/D converters, display drivers, EEPROMS, etc.) and with other microcontrollers which support the MICROWIRE/PLUS interface. It consists of an 8-bit serial shift register (SIO) with
serial data input (SI), serial data output (SO) and serial shift
clock (SK). Figure 7 shows the block diagram of the MICROWIRE/PLUS interface.
SL1
SL0
SK Cycle Time
0
0
1
0
1
x
2tc
4tc
8tc
where,
tc is the instruction cycle time.
MICROWIRE/PLUS OPERATION
Setting the BUSY bit in the PSW register causes the MICROWIRE/PLUS arrangement to start shifting the data. It
gets reset when eight data bits have been shifted. The user
may reset the BUSY bit by software to allow less than 8 bits
to shift. The device may enter the MICROWIRE/PLUS
mode either as a Master or as a Slave. Figure 8 shows how
two device microcontrollers and several peripherals may be
interconnected using the MICROWIRE/PLUS arrangement.
Master MICROWIRE/PLUS Operation
In the MICROWIRE/PLUS Master mode of operation the
shift clock (SK) is generated internally by the device. The
MICROWIRE/PLUS Master always initiates all data exchanges (Figure 8) . The MSEL bit in the CNTRL register
must be set to enable the SO and SK functions on the G
Port. The SO and SK pins must also be selected as outputs
by setting appropriate bits in the Port G configuration register. Table V summarizes the bit settings required for Master
mode of operation.
SLAVE MICROWIRE/PLUS OPERATION
In the MICROWIRE/PLUS Slave mode of operation the SK
clock is generated by an external source. Setting the MSEL
TL/DD/1129910
http://www.national.com
TL/DD/11299 11
TABLE V
G4
G5
Config. Config.
Bit
Bit
1
G4
Fun.
G5
Fun.
G6
Fun.
Operation
SO
Int. SK
SI
MICROWIRE Master
TRI-STATE Int. SK
SI
MICROWIRE Master
Ext. SK
SI
MICROWIRE Slave
TRI-STATE Ext. SK
SI
MICROWIRE Slave
SO
TIMER/COUNTER
The device has a powerful 16-bit timer with an associated
16-bit register enabling it to perform extensive timer functions. The timer T1 and its register R1 are each organized
as two 8-bit read/write registers. Control bits in the register
CNTRL allow the timer to be started and stopped under
software control. The timer-register pair can be operated in
one of three possible modes. Table VI details various timer
operating modes and their requisite control settings.
Operation Mode
T Interrupt
Timer
Counts
On
000
001
010
011
100
101
110
111
Timer Underflow
Timer Underflow
Not Allowed
Not Allowed
Timer Underflow
Timer Underflow
TIO Pos. Edge
TIO Neg. Edge
http://www.national.com
Control Registers
CNTRL REGISTER (ADDRESS X00EE)
The Timer and MICROWIRE/PLUS control register contains
the following bits:
SL1 & SL0 Select the MICROWIRE/PLUS clock divide-by
IEDG
External interrupt edge polarity select
(0 e rising edge, 1 e falling edge)
MSEL
TRUN
TL/DD/1129912
TC3
TC2
TC1
TC1
TC2
TC3
TRUN
MSEL
IEDG
S1
Bit 7
S0
Bit 0
TL/DD/1129913
HC
TPND
ENTI
IPND
Bit 7
BUSY
ENI
GIE
Bit 0
Addressing Modes
REGISTER INDIRECT
This is the normal mode of addressing for the device. The
operand is the memory location addressed by the B register
or X register.
DIRECT
The instruction contains an 8-bit address field that directly
points to the data memory location for the operand.
IMMEDIATE
The instruction contains an 8-bit immediate field as the operand.
REGISTER INDIRECT
(AUTO INCREMENT AND DECREMENT)
This is a register indirect mode that automatically increments or decrements the B or X register after executing the
instruction.
TL/DD/1129914
RELATIVE
This mode is used for the JP instruction, the instruction field
is added to the program counter to get the new program
location. JP has a range of b31 to a 32 to allow a one byte
relative jump (JP a 1 is implemented by a NOP instruction).
There are no pages when using JP, all 15 bits of PC are
used.
http://www.national.com
10
Memory Map
All RAM, ports and registers (except A and PC) are mapped into data memory address space.
RAM Select
Address
Contents
00 2F
30 7F
00 6F
70 7F
80 to BF
C0 to CF
D0 to DF
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
DA
DB
DC
DD DF
E0 to EF
E0 E7
E8
E9
EA
EB
EC
ED
EE
EF
F0 to FF
FC
FD
FE
Reading unused memory locations below 7FH will return all ones. Reading other unused memory locations will return undefined
data.
11
http://www.national.com
Instruction Set
Symbols
[B]
Memory indirectly addressed by B register
[X]
Memory indirectly addressed by X register
Mem Direct address memory or [B]
MemI Direct address memory or [B] or Immediate data
Imm 8-bit Immediate data
Reg
Register memory: addresses F0 to FF (Includes B, X
and SP)
Bit
Bit number (0 to 7)
w Loaded with
Exchanged with
Instruction Set
A w A a MemI
A w A a MemI a C, C w Carry
HC w Half Carry
A w A a MemI a C, C w Carry
HC w Half Carry
A w A and MemI
A w A or MemI
A w A xor MemI
Compare A and MemI, Do next if A e MemI
Compare A and MemI, Do next if A l MemI
Do next if lower 4 bits of B i Imm
Reg w Reg b 1, skip if Reg goes to 0
1 to bit,
Mem (bit e 0 to 7 immediate)
0 to bit,
Mem
If bit,
Mem is true, do next instr.
ADD
ADC
add
add with carry
SUBC
AND
OR
XOR
IFEQ
IFGT
IFBNE
DRSZ
SBIT
Logical AND
Logical OR
Logical Exclusive-OR
IF equal
IF greater than
IF B not equal
Decrement Reg. ,skip if zero
Set bit
RBIT
Reset bit
IFBIT
If bit
X
LD A
LD mem
LD Reg
A Mem
A w MemI
Mem w Imm
Reg w Imm
X
X
LD A
LD A
LD M
(B w B g 1)
A [B]
(X w X g 1)
A [X]
(B w B g 1)
A w [B]
(X w X g 1)
A w [X]
[B] w Imm (B w B g 1)
CLRA
INCA
DECA
LAID
DCORA
RRCA
SWAPA
SC
RC
IFC
IFNC
Clear A
Increment A
Decrement A
Load A indirect from ROM
DECIMAL CORRECT A
ROTATE A RIGHT THRU C
Swap nibbles of A
Set C
Reset C
If C
If not C
Aw0
AwAa1
AwAb1
A w ROM(PU,A)
A w BCD correction (follows ADC, SUBC)
C x A7 x . . . x A0 x C
A7 . . . A4 A3 . . . A0
C w 1, HC w 1
C w 0, HC w 0
If C is true, do next instruction
If C is not true, do next instruction
JMPL
JMP
JP
JSRL
JSR
JID
RET
RETSK
RETI
INTR
NOP
http://www.national.com
12
13
JP -17
JP -16
JP -1
JP -0
LD 0FF,1
LD 0FE,i
LD 0FD,i
LD 0FC,i
LD 0FB,i
LD 0FA,i
LD 0F9,i
LD 0F8,i
LD 0F7,i
LD 0F6,i
LD 0F5,i
LD 0F4,i
LD 0F3,i
LD 0F2,i
LD 0F1,i
LD 0F0,i
LD A,
[X]
DIR
LD Md,
i
LD A,
[X b]
LD A,
[X a ]
NOP
X A,
[X]
X A,
[X b]
X A,
[X a ]
RRCA
LD A,
[B]
JSRL
JMPL
LD A,
[Bb]
LD A,
[B a ]
X A,
[B]
JID
LAID
X A,
[Bb]
X A,
[B a ]
SC
RC
LD
[B], i
LD A,
Md
X A,Md
LD
[Bb],i
LD
[B a ],i
LD A,
i
OR A,
i
XOR A,
i
AND A,
i
ADD A,
i
IFGT A,
i
IFEQ A,
i
SUBC A,
i
ADC A,
i
RETI
RET
RETSK
DECA
INCA
IFNC
IFC
OR
A,[B]
XOR
A,[B]
AND
A,[B]
ADD
A,[B]
IFGT
A,[B]
IFEQ
A,[B]
SUBC
A,[B]
ADC A,
[B]
DRSZ 0FF
DRSZ 0FE
DRSZ 0FD
DRSZ 0FC
DRSZ 0FB
DRSZ 0FA
DRSZ 0F9
DRSZ 0F8
DRSZ 0F7
DRSZ 0F6
DRSZ 0F5
DRSZ 0F4
DRSZ 0F3
DRSZ 0F2
DRSZ 0F1
DRSZ 0F0
JP -18
JP -2
JP -19
JP -3
where,
JP -20
JP -24
JP -8
JP -4
JP -25
JP -9
JP -21
JP -26
JP -10
JP -5
JP -27
JP -11
JP -22
JP -28
JP -12
JP -6
JP -29
JP -13
JP -23
JP -30
JP -14
JP -7
JP -31
JP -15
RBIT
7,[B]
RBIT
6, [B]
RBIT
5,[B]
RBIT
4,[B]
RBIT
3,[B]
RBIT
2,[B]
RBIT
1,[B]
RBIT
0,[B]
DCORA
SWAPA
CLRA
LD B, 0
LD B, 1
LD B, 2
LD B, 3
LD B, 4
LD B, 5
LD B, 6
LD B, 7
LD B, 8
LD B, 9
LD B, 0A
LD B, 0B
LD B, 0C
LD B, 0D
LD B, 0E
LD B, 0F
IFBNE 0F
IFBNE 0E
IFBNE 0D
IFBNE 0C
IFBNE 0B
IFBNE 0A
IFBNE 9
IFBNE 8
IFBNE 7
IFBNE 6
IFBNE 5
IFBNE 4
IFBNE 3
IFBNE 2
IFBNE 1
IFBNE 0
SBIT
7,[B]
SBIT
6, [B]
SBIT
5,[B]
SBIT
4,[B]
SBIT
3,[B]
SBIT
2,[B]
SBIT
1,[B]
SBIT
0,[B]
IFBIT
7,[B]
IFBIT
6,[B]
IFBIT
5,[B]
IFBIT
4,[B]
IFBIT
3,[B]
IFBIT
2,[B]
IFBIT
1,[B]
IFBIT
0,[B]
Bits 7 4
3
JSR
0F00 0FFF
JSR
0E00 0EFF
JSR
0D00 0DFF
JSR
0C00 0CFF
JSR
0B00 0BFF
JSR
0A00 0AFF
JSR
0900 09FF
JSR
0800 08FF
JSR
0700 07FF
JSR
0600 06FF
JSR
0500 05FF
JSR
0400 04FF
JSR
0300 03FF
JSR
0200 02FF
JSR
0100 01FF
JSR
0000 00FF
JMP
0F00 0FFF
JMP
0E00 0EFF
JMP
0D00 0DFF
JMP
0C00 0CFF
JMP
0B00 0BFF
JMP
0A00 0AFF
JMP
0900 09FF
JMP
0800 08FF
JMP
0700 07FF
JMP
0600 06FF
JMP
0500 05FF
JMP
0400 04FF
JMP
0300 03FF
JMP
0200 02FF
JMP
0100 01FF
JMP
0000 00FF
JP a 32
JP a 31
JP a 30
JP a 29
JP a 28
JP a 27
JP a 26
JP a 25
JP a 24
JP a 23
JP a 22
JP a 21
JP a 20
JP a 19
JP a 18
JP a 17
JP a 16
JP a 15
JP a 14
JP a 13
JP a 12
JP a 11
JP a 10
JP a 9
JP a 8
JP a 7
JP a 6
JP a 5
JP a 4
JP a 3
JP a 2
INTR
OPCODE LIST
Bits 3 0
http://www.national.com
Most instructions are single byte (with immediate addressing mode instruction taking two bytes).
Most single instructions take one cycle time to execute.
Skipped instructions require x number of cycles to be
skipped, where x equals the number of bytes in the skipped
instruction opcode.
See the BYTES and CYCLES per INSTRUCTION table for
details.
Direct
Immed.
ADD
ADC
SUBC
AND
OR
XOR
IFEQ
IFGT
IFBNE
DRSZ
1/1
1/1
1/1
1/1
1/1
1/1
1/1
1/1
1/1
3/4
3/4
3/4
3/4
3/4
3/4
3/4
3/4
2/2
2/2
2/2
2/2
2/2
2/2
2/2
2/2
SBIT
RBIT
IFBIT
1/1
1/1
1/1
1/3
3/4
3/4
3/4
1/3
1/3
2/3
2/3
2/2
1/1
2/3
3/3
1/2
1/2
1/3
1/3
(If B k 16)
(If B l 15)
2/2
2/3
http://www.national.com
Bytes/Cycles
Instructions
1/1
1/1
1/1
1/3
1/1
1/1
1/1
1/1
1/1
1/1
1/1
JMPL
JMP
JP
JSRL
JSR
JID
RET
RETSK
RETI
INTR
NOP
14
Bytes/Cycles
3/4
2/3
1/3
3/5
2/5
1/3
1/5
1/5
1/5
1/7
1/1
Development Support
SUMMARY
The following table shows the instructions assigned to unused opcodes. This table is for information only. The operations performed are subject to change without notice. Do
not use these opcodes.
# iceMASTERTM : IM-COP8/400Full feature in-circuit emulation for all COP8 products. A full set of COP8 Basic
and Feature Family device and package specific probes
are available.
Instruction
60
61
62
63
67
8C
99
9F
A7
A8
NOP
NOP
NOP
NOP
NOP
RET
NOP
LD [B], i
X A, [B]
NOP
Unused
Opcode
Instruction
A9
AF
B1
B4
B5
B7
B9
BF
NOP
LD A, [B]
C x HC
NOP
NOP
X A, [X]
NOP
LD A, [X]
# COP8
Evaluation
and
Programming
Unit:
EPU-COP880Clow cost In-circuit simulation and development programming unit.
# Assembler: COP8-DEV-IBMA. A DOS installable crossdevelopment Assembler, Linker, Librarian and Utility
Software Development Tool Kit.
15
http://www.national.com
execution break.
# Instruction by instruction memory/register changes displayed on source window when in single step operation.
range, full DC-10 MHz clock. Chip options are programmable or jumper selectable.
er SDK.
IM Order Information
Base Unit:
# Full 4k frame synchronous trace memory. Address, instruction, and 8 unspecified, circuit connectable trace
lines. Display can be HLL source (e.g., C source), assembly or mixed.
IM-COP8/400-1
IM-COP8/400-2
iceMASTER Probe
MHW-880C20DWPC
MHW-880C28DWPC
MHW-880C40DWPC
MHW-880C44PWPC
20 DIP
28 DIP
40 DIP
44 PLCC
DIP to SO Adapters
MHW-SOIC20
MHW-SOIC28
20 SO
28 SO
TL/DD/11299 15
http://www.national.com
16
The iceMASTER Debug Module is a moderate cost development tool. It has the capability of in-circuit emulation for a
specific COP8 microcontroller and in addition serves as a
programming tool for COP8 OTP and EPROM product families. Summary of features is as follows:
external supply supported. Requires VPP level adjustment per the family programming specification (correct
level is provided on an on-screen pop-down display).
er SDK.
DM Order Information
COP8-DM/880C
Cable Adapters
DM-COP8/20D
20 DIP
DM-COP8/28D
28 DIP
DM-COP8/40D
40 DIP
DM-COP8/44P
44 PLCC
DIP to SO Adapters
COP8-DM/20D-SO
20 SO
COP8-DM/28D-SO
28 SO
TL/DD/11299 16
17
http://www.national.com
ages are not supported. All processor I/O pins are cabled to the application development environment.
COP8-PGMA-DS
COP8-PGMA-DS44P
# Common look-feel debugger software across all MetaLink productsonly supported features are selectable.
TL/DD/11299 17
http://www.national.com
18
The following cross reference table lists the COP800 devices which can be emulated with the COP87XXC single-chip,
form fit and function emulators.
#
#
#
#
#
#
#
Device
Number
Package
Description
Emulates
COP8780CV
44 PLCC
One Time
Programmable
(OTP)
COP880C
COP880C
COP8780CEL
44 LDCC
UV Erasable
COP8780CN
40 DIP
OTP
COP880C
COP8780CJ
40 DIP
UV Erasable
COP880C
COP8781CN
28 DIP
OTP
COP881C,
COP840C,
COP820C
Order Information
COP8781CJ
28 DIP
UV Erasable
COP881C,
COP840C,
COP820C
COP8781CWM
28 SO
OTP
COP881C,
COP840C,
COP820C
COP8782CN
20 DIP
OTP
COP842C,
COP822C
COP8782CJ
20 DIP
UV Erasable
COP842C,
COP822C
COP8782CWM
20 SO
OTP
COP842C,
COP822C
Assembler SDK:
COP8-DEV-IBMA
COP8 C COMPILER
A C Compiler is developed and marketed by Byte Craft Limited. The COP8C compiler is a fully integrated development
tool specifically designed to support the compact embedded configuration of the COP8 family of products.
Features are summarized as follows:
# ANSI C with some restrictions and extensions that optimize development for the COP8 embedded application.
19
http://www.national.com
North
America
Europe
BP
Microsystems
(800) 225-2102
(713) 688-4600
Fax: (713) 688-0920
a 49-8152-4183
a 49-8856-932616
a 852-234-16611
a 852-2710-8121
Data I/O
(800) 426-1045
(206) 881-6444
Fax: (206) 882-1043
a 44-0734-440011
Call
North America
HI-LO
(510) 623-8860
Call Asia
a 886-2-764-0215
Fax: a 886-2-756-6403
ICE
Technology
(800) 624-8949
(919) 430-7915
a 44-1226-767404
Fax: 0-1226-370-434
MetaLink
(800) 638-2423
(602) 926-0797
Fax: (602) 693-0681
a 852-737-1800
Systems
General
(408) 263-6667
a 41-1-9450300
a 886-2-917-3005
Fax: a 886-2-911-1283
Needhams
(916) 924-8037
Fax: (916) 924-8065
DIAL-A-HELPER BBS via a Standard Modem
Modem: CANADA/U.S.: (800) NSC-MICRO
(800) 672-6427
EUROPE:
( a 49) 0-8141-351332
AVAILABLE LITERATURE
For more information, please see the COP8 Basic Family
Users Manual, Literature Number 620895, COP8 Feature
Family Users Manual, Literature Number 620897 and Nationals Family of 8-bit Microcontrollers COP8 Selection
Guide, Literature Number 630009.
Baud:
Set-Up:
DIAL-A-HELPER SERVICE
Dial-A-Helper is a service provided by the Microcontroller
Applications group. The Dial-A-Helper is an Electronic Information System that may be accessed as a Bulletin Board
System (BBS) via data modem, as an FTP site on the Internet via standard FTP client application or as an FTP site on
the Internet using a standard Internet browser such as Netscape or Mosaic.
The Dial-A-Helper system provides access to an automated
information storage and retrieval system. The system capabilities include a MESSAGE SECTION (electronic mail,
when accessed as a BBS) for communications to and from
the Microcontroller Applications Group and a FILE SECTION which consists of several file areas where valuable
application software and utilities could be found.
http://www.national.com
Asia
Operation:
14.4k
Length: 8-Bit
Parity:
None
Stop Bit: 1
24 Hours, 7 Days
20
(800) 272-9959
support @ tevm2.nsc.com
EUROPE:
email:
europe.support @ nsc.com
Deutsch Tel:
a 49 (0) 180-530 85 85
English Tel:
a 49 (0) 180-532 78 32
Fran3ais Tel:
a 49 (0) 180-532 93 58
Italiano Tel:
a 49 (0) 180-534 16 80
JAPAN:
Tel:
a 81-043-299-2309
S.E. ASIA:
Beijing Tel:
( a 86) 10-6856-8601
Shanghai Tel:
( a 86) 21-6415-4092
( a 82) 2-3771-6909
Malaysia Tel:
( a 60-4) 644-9061
Singapore Tel:
( a 65) 255-2226
Taiwan Tel:
a 886-2-521-3288
AUSTRALIA:
Tel:
( a 61) 3-9558-9999
INDIA:
Tel:
( a 91) 80-559-9467
Programming Considerations
In addition to the application program, the ECON register
needs to be programmed as well. The following tables provide examples of some ECON register values. For more detailed information refer to the ECON REGISTER section.
External
CKI
RC
Oscillator
Crystal
Oscillator
64 Bytes
38
30
20
128 Bytes
3A
32
22
External
CKI
RC
Oscillator
Crystal
Oscillator
64 Bytes
18
10
00
128 Bytes
1A
12
02
Erasure Time*
(Minutes)
15,000
10,000
8,500
36
50
60
Light Intensity
(Micro-Watts/cm2)
# Inability to be programmed.
# Operational malfunctions associated with VCC, tempera-
21
http://www.national.com
http://www.national.com
22
23
http://www.national.com
http://www.national.com
24
http://www.national.com
http://www.national.com
26
27
http://www.national.com
http://www.national.com
National Semiconductor
Europe
Fax: a49 (0) 180-530 85 86
Email: europe.support @ nsc.com
Deutsch Tel: a49 (0) 180-530 85 85
English Tel: a49 (0) 180-532 78 32
Fran3ais Tel: a49 (0) 180-532 93 58
Italiano Tel: a49 (0) 180-534 16 80
National Semiconductor
Hong Kong Ltd.
13th Floor, Straight Block,
Ocean Centre, 5 Canton Rd.
Tsimshatsui, Kowloon
Hong Kong
Tel: (852) 2737-1600
Fax: (852) 2736-9960
National Semiconductor
Japan Ltd.
Tel: 81-043-299-2308
Fax: 81-043-299-2408
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.