參數(shù)資料
型號: AN2635
廠商: 飛思卡爾半導體(中國)有限公司
英文描述: On-Chip FLASH Programming Routines
中文描述: 片上閃存編程例程
文件頁數(shù): 10/36頁
文件大小: 150K
代理商: AN2635
On-Chip FLASH Programming Routines, Rev. 4
10
Freescale Semiconductor
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 ;LB8 RDVRRNG jump address
ldhx #$0000 ;Index offset into DATA array
lda #$AA ;Initial data value to store in array
Data_load:
coma
sta DATA,x ;Fill DATA array, 32 bytes data,
; to verify against programmed FLASH
aix #1 ; data (In this example verifying data
cphx #$20 ; is $55, $AA, $55, $AA....)
bne Data_load
ldhx #$C01F ;Load last address of range to
sthx LADDR ; LADDR
ldhx #$C000 ;Load beginning address of range
; to H:X
lda #$55 ;Write non-zero value to A to select
; the verify option
jsr RDVRRNG ;Call RDVRRNG routine
bcc Error ;If bit C is cleared, verify failed
; Take a proper action
; A contains a checksum value
相關PDF資料
PDF描述
AN4009 ALARM IC SAMPLE APPLICATIONS
ARP2805D/SF 1-OUTPUT 150 W DC-DC REG PWR SUPPLY MODULE
AS1977-T nPower Single Comp. Open-Drain; Package Type: SOT23-5
AS1976-T nPower,Single Comp. Push-Pull; Package Type: SOT23-5
AT45D161 16-megabit 5-volt Only Serial DataFlash(16M位 5V串行數(shù)據(jù)閃速存儲器)
相關代理商/技術參數(shù)
參數(shù)描述
AN264 制造商:Panasonic Industrial Company 功能描述:IC
AN-264 制造商:AD 制造商全稱:Analog Devices 功能描述:DYNAMIC CHARACTERISTICS OF TRACKING CONVERTERS BY MARK THOMAS
AN2640K 制造商:未知廠家 制造商全稱:未知廠家 功能描述:VHD VIDEO DISC PLAYER CHROMA AND LUMINANCE PROCESSING CIRCUIT
AN2641 制造商:Distributed By MCM 功能描述:USB FILE TRANSFER CABLEPC / MAC 制造商:MCM 功能描述:USB FILE TRANSFER CABLE PC / MAC
AN265 制造商:SILABS 制造商全稱:SILABS 功能描述:2ND-GENERATION PROSLIC㈢ GUI USER’S GUIDE