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

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
Saving and restoring of the microcontroller state during interrupts or when switching
between different tasks.
Example of an interrupt routine:
1-22
INTERRUPT;
PUSH
PUSH
PUSH
IFBIT
JP
IFBIT
JP
IFBIT
JP
EXIT
LD
POP
POP
POP
RETI
MICROCONTROLLER BASICS
A
CNTRL
PSW
0, IPND
TIMERINT
1, IPND
EXTERNALINT
2, IPND
SERIALINT
IPND, #00
PSW
CNTRL
A
; Save accumulator
; Save control register
; Save process status word
; If timer interrupt pending
; then jump to timer interrupt
; If external interrupt pending
; then jump to external interrupt
; If serial interrupt pending
; then jump to serial interrupt
; Exit from interrupt
; Clear pending bits
; Restore process status word
; restore control register
; Restore accumulator
; Return from interrupt

Related parts for COP8SA-DM