AN2295 Freescale Semiconductor / Motorola, AN2295 Datasheet - Page 39

no-image

AN2295

Manufacturer Part Number
AN2295
Description
Developers Serial Bootloader for M68HC08 and HCS08 MCUs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
WR_ALG:
WR_ALG_L1:
WR_ALG_END:
END
Freescale Semiconductor
LDA
STA
LDA
LDHX
STA
D_US
LDA
LDHX
LDA
CLRA
STA
D_US
TXS
LDHX
MOV
PULA
STA
AIX
D_US
DBNZ
STA
D_US
STA
D_US
JMP
#%00000001
FLCR
FLBPR
ADRS
X
#T10US
#%00001001
FLCR
#T5US
#DAT
ADRS
LEN,POM
X
#1
#T30US
POM,WR_ALG_L1
#%00001000
FLCR
#T5US
FLCR
#T1US
RETWR
Developer’s Serial Bootloader for M68HC08 and HCS08 MCUs, Rev. 6
Figure 26. FLASH Programming Routines Source Code
; PGM bit on
; dummy read FLBPR
; prepare addresses
; and write to desired range
; wait 10us
; set HVEN, keep PGM
; wait 5us
; prepare addresses
; wait 30us
; copy desired block of data
; HVEN off
; wait 1us
; finish with ACK (& restore STACK before)
; keep HVEN, PGM off
; wait 5us
MCU Slave Software
39

Related parts for AN2295