AN2398 Freescale Semiconductor / Motorola, AN2398 Datasheet - Page 16

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
AN2398/D
;* Parameter Equates
;
;
ICP_BUF_SIZE
;
;*************************************
;*
;*
;*
;*************************************
;
ICP_RAM_BEG:
V_ChkSumH
V_CtrByte
b_MASSBIT
V_CPUSpeed
V_LAddr
Q_RAM_Blk_Erase equ
Q_Work_Buf
Q_ICP_Buf
;
UICP_RAM_BEGIN:
;* -----------------------------------------------------------------
Q_Setup_Buf
VI_bmReqType
b_Rcpt0
b_Rcpt1
b_Rcpt2
b_Rcpt3
b_Rcpt4
b_Type0
b_Type1
;
;
VI_bRequest
;* -----------------------------
V_wValue_L
V_wValue_H
;
V_wIndex_L
V_wIndex_H
;
V_wLength_L
V_wLength_H
;* --------------------------------------------------------------------
V_Transaction
; content definition
TRF_IDLE
TRF_SETUP
TRF_OUT
TRF_IN
;* --------------------------------------------------------------------
16
include "jb8-eqs.h"
include "macro8-asm.h"
Variables Definition
In-Circuit Programming of FLASH Memory via the USB for the MC68HC908JB8
equ
ORG
equ
ds
equ
ds
ds
equ
ds
equ
ds
equ
equ
equ
equ
equ
equ
equ
ds
ds
ds
ds
ds
ds
ds
ds
equ
equ
equ
equ
$40
RAM_BEG+8
*
1
6
1
2
*
*
ICP_BUF_SIZE
*
1
0
1
2
3
4
5
6
1
1
1
1
1
1
1
1
0
1
2
3
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
; jb8 registers definitions
; 08 CPU macro
; maximum buffer size
; checksum high byte
; control byte for erase
; mass erase bit in FLCR
; CPU speed = CPU bus x 4
; last address for programming
; block erase program in RAM
; data buffer for Control Pipe
; 64 byte buffer
; Characteristic of Request
; Recipient=$00 Device
; =$01 Interface
; =$02 Endpoint
; =$03 Other
; =$04-31 <reserved>
; Req. Type=0 Standard
; =1 Class
; =2 Vendor
; =3 <reserved>
; Request Code
; Value Field for the request
; Index Field for the request
; no. of bytes in Data Stage
;0:IDLE
1:SETUP 2:OUT 3:IN
MOTOROLA

Related parts for AN2398