COP8SA-DM National Semiconductor, COP8SA-DM Datasheet - Page 118

no-image

COP8SA-DM

Manufacturer Part Number
COP8SA-DM
Description
MODULE DEBUGGING FOR COP8SA
Manufacturer
National Semiconductor
Datasheet

Specifications of COP8SA-DM

Module/board Type
Debugger Module
For Use With/related Products
Cop 8
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
*COP8SA-DM
Syntax:
Description:
Operation:
2-80
INTR
Instruction
COP8SAx7 MICROCONTROLLER
INTR
This zero opcode software trap instruction first stores its return address
in the data memory software stack and then branches to program mem-
ory location 00FF. This memory location is the common switching point
for all COP888 interrupts, both hardware and software. The program
starting at memory location 00FF sorts out the priority of the various in-
terrupts and then vectors to the correct interrupt service routine.
In order to save the return address, the contents of PCL (Lower 8 bits of
PC) are transferred to the data memory location referenced by SP (Stack
Pointer). SP is then decremented. The contents of PCU (Upper 7 bits of
PC) are transferred to the new data memory location referenced by SP.
Then SP is again decremented to set up the software stack for the next
interrupt or subroutine.
The INTR instruction is not meant to be programmed explicitly, but
rather to be automatically invoked when certain error conditions occur.
The reading of undefined (non-existent) program memory produces all
zeros, which in turn invokes the INTR instruction. A similar software
trap can be set up if the subroutine Stack Pointer (SP) is initialized to
the data memory location at the top of user RAM space. Then if the soft-
ware stack is ever overpopped (more subroutine or interrupt returns
than calls), all ones will be returned from the undefined (non-existent)
RAM. This will cause the program to return to the program address
FFFF Hex, which in turn will read all zeros and once again invoke the
software trap INTR instruction.
[SP] <- PCL
[SP - 1] <- PCU
[SP - 2] : SET UP FOR NEXT STACK REFERENCE
PC <- 0FF
Implicit
Addressing Mode
Instruction
Cycles
7
Bytes Hex Op Code
1
00

Related parts for COP8SA-DM