Download Print this page

STC micro STC8A8K64D4 Series Reference Manual page 848

Advertisement

STC8A8K64D4 Series Manual
MOV
address of page 2
MOV
LCALL
MOV
LCALL
MOV
LCALL
MOV
LCALL
MOV
MOV
LCALL
MOV
LCALL
MOV
LCALL
MOV
LCALL
MOV
MOV
MOV
ISP_ERASEAP:
LCALL
INC
INC
DJNZ
MOV
MOV
LCALL
MOV
is ready
LCALL
MOV
LCALL
LCALL
LCALL
MOV
LCALL
MOV
CLR
MOV
SUBB
MOV
CLR
SUBB
MOV
LCALL
LCALL
LCALL
LCALL
IAP_ADDRL,#0
IAP_ADDRH,#02H
ISP_ERASEIAP
A,#02H
ISP_PROGRAMIAP
A,#HIGH
ISP_PROGRAMIAP
A,#LOW ISP_ENTRY
ISP_PROGRAMIAP
IAP_ADDRL,#0
IAP_ADDRH,#0
ISP_ERASEIAP
A,#02H
ISP_PROGRAMIAP
A,#HIGH
ISP_PROGRAMIAP
A,#LOW ISP_ENTRY
ISP_PROGRAMIAP
IAP_ADDRL,#0
IAP_ADDRH,#02H
R7,#124
ISP_ERASEIAP
IAP_ADDRH
IAP_ADDRH
R7,ISP_ERASEAP
IAP_ADDRL,#LOW APENTRY
IAP_ADDRH,#HIGH APENTRY
ISP_ERASEIAP
A,#5AH
ISP_SENDUART
A,#0A5H
ISP_SENDUART
ISP_RECVACK
ISP_RECVUART
R0,A
ISP_RECVUART
R1,A
C
A,#03H
A,R1
DPL,A
A
A,R0
DPH,A
ISP_RECVUART
ISP_PROGRAMIAP
ISP_RECVUART
ISP_PROGRAMIAP
;First write the "LJMP ISP_ENTRY" instruction at the starting
;Programming User Code Reset Vector Code
ISP_ENTRY
;Programming User Code Reset Vector Code
;Programming User Code Reset Vector Code
;User code address starts from 0
;Programming User Code Reset Vector Code
ISP_ENTRY
;Programming User Code Reset Vector Code
;Programming User Code Reset Vector Code
;new code buffer address
;Erase 62.5K bytes
;target address+512
;Determine if erasing is complete
;Return 5A A5 to PC, indicating that the ISP programming module
;Receive response data
;Receive length high byte
;Receive length low byte
; total length -3
;Total length complement stored in DPTR
;Map user code reset entry code to map area
;0000
;0001
- 832 -

Advertisement

loading
Need help?

Need help?

Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?

This manual is also suitable for:

Micro stc8a8k64d4-64pinMicro stc8a8k64d4-48pin