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

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
;This routine erases all registers of the NM93C06
;
ERAL:
;This routine reads the contents of a NM93C06 register. The NM93C06 address is
;specified in the lower nibble of location “ADRESS.” The upper nibble should be set
;to zero. The 16-bit contents of the NM93C06 register are stored in RDATL and RDATH.
;
READ:
;This routine writes a 16-bit value stored in WDATL and WDATH to the NM93C06 register
;whose address is contained in the lower nibble of the location “ADRESS.” The upper
;nibble of address location should be set to zero.
;
WRITE:
;This routine sends out the start bit and the command byte. It also deciphers the
;contents of the flag location and takes a decision regarding write, read or return
;to the calling routine.
;
INIT:
PUNT1:
PUNT2:
;
NOTDON: IFBIT
PUNT3:
PUNT4:
;
WR494:
4-8
COP8SAx7 APPLICATION IDEAS
LD
LD
JSR
RET
LD
OR
X
LD
JSR
RET
LD
OR
X
LD
JSR
RET
SBIT
LD
SBIT
IFBIT
JP
LD
X
SBIT
IFBIT
JP
IFBIT
JP
RBIT
RET
JP
LD
SBIT
RBIT
SBIT
IFBIT
JP
X
SBIT
X
IFBIT
JP
LD
X
RBIT
RET
LD
SNDBUF,#020
FLAGS,#0
INIT
A,ADRESS
A,#080
A,SNDBUF
FLAGS,#1
INIT
A,ADRESS
A,#040
A,SNDBUF
FLAGS,#3
INIT
0,PORTGD
SIOR,#001
BUSY,[B]
BUSY,[B]
PUNT1
A,SNDBUF
A,[X]
BUSY,[B]
BUSY,[B]
PUNT2
0,FLAGS
NOTDON
0,PORTGD
1,FLAGS
WR494
SIOR,#000
BUSY,PSW
BUSY,[B]
BUSY,[B]
BUSY,[B]
PUNT3
A,[X]
BUSY,[B]
A,RDATH
BUSY,[B]
PUNT4
A,[X]
A,RDATL
0,PORTGD
A,WDATH
;Set chip select high
;Load SIOR with start bit
;Send out the start bit
;Load SIOR with command byte
;Send out command byte
;Any further processing?
;Yes
;No, reset CS and return
;Read or write?
;Jump to write routine
;No, read NM93C06
;Dummy clock to read zero

Related parts for COP8SA-DM