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

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
FIRE:
LP6:
LP5:
TWO:
HI1:
DELAY:
LOOP:
SUB:
ADD:
TIMER:
LP1:
LP4:
JSR
NOP
NOP
LD
X
CLR
INC
IFEQ
JP
JP
CLR
LD
X
IFBIT
JMP
JMP
LD
DRSZ
JP
RET
LD
SUBC
X
LD
SUBC
RC
X
RET
LD
ADC
X
LD
ADC
RC
X
RETSK
SBIT
IFBIT
JP
JP
RBIT
RBIT
RET
.END
SUB
PORTD,#0FF
A,TEMP
A
A
A,#03
LP5
LP6
A
PORTD,#00
A,TEMP
2,PORTGP
HI
LO
REG1,#00F
REG1
LOOP
A, T1RALO
A,#07D
A,T1RALO
A,T1RAHI
A,#000
A,T1RAHI
A, T1RALO
A,#07D
A,T1RALO
A,T1RAHI
A,#000
A,T1RAHI
T1C0,CNTRL
T1PNDA,PSW
LP4
LP1
T1C0,CNTRL
T1PNDA,PSW
;else MAX has been reached, subtract delay
;No-operation
;No-operation
;FIRE SUBROUTINE
;Set Port D HIGH for 32uSec
;Save accumulator in temp location
;Clear accumulator
;Increment accumulator
;If accumulator equals three
;then 32uSec done, continue on
;else not done, keep looping
;Clear accumulator
;Set Port D low
;Restore accumulator
;If Bit G2 is high
;then go debounce from High
;else go debounce from Low
;DELAY SUBROUTINE
;Load Reg1 with 0F Hex
;Decr Reg1, If Reg1 not equal to 0
;then keep looping
;else return from delay routine
;DECREMENT THE TIMER BY THE DESIRED DELAY
;Load accumulator with value from T1RALO
;Subtract 7D Hex
;Store result in T1RALO
;Load accumulator with value from T1RAHI
;Subtract zero and borrow (if occurred)
;Reset carry flag
;Store result in T1RAHI
;Return from subtract routine
;INCREMENT THE TIMER BY THE DESIREd DELAY
;Load accumulator with value from T1RALO
;Add 7D Hex
;Store result in T1RALO
;Load accumulator with value from T1RAHI
;Add zero and carry bit
;Reset carry flag
;Store result in T1RAHI
;Return and skip from add routine
;TIMER Subroutine
;Start the timer
;If underflow (reload from R1A) occurred
;then go stop the timer
;else keep looping
;Stop the timer
;Reset the T1 source A pending flag
;Return from timer subroutine
;end of program
COP8SAx7 APPLICATION IDEAS
4-19

Related parts for COP8SA-DM