DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

MC68HC908LB8_05 データシートの表示(PDF) - Freescale Semiconductor

部品番号
コンポーネント説明
メーカー
MC68HC908LB8_05
Freescale
Freescale Semiconductor Freescale
MC68HC908LB8_05 Datasheet PDF : 36 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
How to Use the Routines
Entry Condition
H:X — Contains the beginning address in a range.
LADDR — Contains the last address in a range.
A — When A contains $00, read data is sent out via PTA0 (send-out option is selected). When A contains
a non-zero value, read data is verified against the DATA array (verify option is selected).
DATA array — Contains data to be verified against FLASH data. For the
send-out option, the DATA array is not used.
PTA0 — When the send-out option is selected, this pin must be configured as an input and pulled up in
hardware and PTA0 must be initialized to 0.
Exit Condition
A — Contains a checksum value.
H:X — Contains the address of the next byte immediately after the range read.
C bit — Indicates the verify result (only applies to the verify option).
When the C bit is set, the verify succeeded.
When the C bit is cleared, the verify failed.
DATA array — Replaced with data read from FLASH when the verify option is selected.
Example 3: Verify Option
Example 3 shows how to use the verify option:
RDVRRNG equ $0384
ldhx #$0000
lda #$AA
Data_load:
coma
sta DATA,x
aix #1
cphx #$20
bne Data_load
ldhx #$C01F
sthx LADDR
ldhx #$C000
lda #$55
jsr RDVRRNG
bcc Error
;LB8 RDVRRNG jump address
;Index offset into DATA array
;Initial data value to store in array
;Fill DATA array, 32 bytes data,
; to verify against programmed FLASH
; data (In this example verifying data
; is $55, $AA, $55, $AA....)
;Load last address of range to
; LADDR
;Load beginning address of range
; to H:X
;Write non-zero value to A to select
; the verify option
;Call RDVRRNG routine
;If bit C is cleared, verify failed
; Take a proper action
; A contains a checksum value
On-Chip FLASH Programming Routines, Rev. 4
10
Freescale Semiconductor

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]