AN2398 Freescale Semiconductor / Motorola, AN2398 Datasheet - Page 17

no-image

AN2398

Manufacturer Part Number
AN2398
Description
In-Circuit Programming of FLASH Memory via the Universal Serial Bus for the MC68HC908JB8
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
V_UDR_Size
V_Config_Value
;* --------------------------------------------------------------------
V_TRF_Status
b_ADDR_SET
b_WAIT_ADDR
b_ST_WAIT
b_ST_TYPE
b_OUT_DONE
;
ADDR_BIT
ADDR_WAIT
STATUS_WAIT
STATUS_TYPE
DO_USBOUT
;*---------------------------------------------------------------------
;usb_status
V_Rx_Cnt
V_Tx_Cnt
V_Rx_Ptr
V_Tx_Ptr
V_UDR_Ptr
;* -----------------------------------------------------
V_Toggle_Buf
SEQ_MASK
b_SEQ_BIT
;* ====== Variables for ICP ===========================================
V_ICP_CMMD
b_PROG_Set
b_Erase_Set
b_Mass_Erase
b_Read_Set
b_Verify_Set
b_Do_Read
b_Data_OK
;* ------------------------------------
V_ICP_Status
b_Ready
b_Busy
b_Fail
;* ------------------------------------
;* --- [RAM Routine] copy content of VD_Opd1[x] to VD_Opd2 ---
;* -- called in GET_DESC() --
; equivalent to :
;
;
D_LONG_LDAX
VI_LDA
VI_Opd1_H
VI_Opd1_L
VI_STA
VI_Opd2_H
VI_Opd2_L
VI_RTS
Var_End
MOTOROLA
In-Circuit Programming of FLASH Memory via the USB for the MC68HC908JB8
ds
ds
ds
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
ds
ds
ds
ds
ds
ds
equ
equ
ds
equ
equ
equ
equ
equ
equ
equ
ds
equ
equ
equ
equ
ds
ds
ds
ds
ds
ds
ds
equ
1
1
1
0
1
2
3
4
$01
$02
$04
$08
$10
1
1
1
1
1
1
$80
7
1
0
1
2
3
4
6
7
1
0
1
2
lda
sta
rts
*
1
1
1
1
1
1
1
*
Freescale Semiconductor, Inc.
For More Information On This Product,
; 1:device address is assigned
; 1:ADDR_request is waiting for status stage
; 1:status_stage is waiting
; 1:IN status stage
; 1:OUT data stage is done::usb_proc()
<VD_Opd1_H:L>,x
<VD_Opd2 H:L>,X
Go to: www.freescale.com
; <for Device Command Handler>
; Opcode of LDA(16-bit Idx) = $D6
; Offset(High byte)
; Offset(Low byte)
; Opcode of STA(direct) = $D7
; Offset(High)
; Offset(Low)
; Opcode of RTS = $81
APPENDIX: Code Listing
AN2398/D
17

Related parts for AN2398