參數(shù)資料
型號(hào): AN2635
廠商: 飛思卡爾半導(dǎo)體(中國)有限公司
英文描述: On-Chip FLASH Programming Routines
中文描述: 片上閃存編程例程
文件頁數(shù): 13/36頁
文件大小: 150K
代理商: AN2635
How to Use the Routines
On-Chip FLASH Programming Routines, Rev. 4
Freescale Semiconductor
13
Example 6:
Programming a Range Smaller than a Row
PRGRNGE can be used to program a range less than 32 bytes. Example 6 shows how to program $55
and $AA at location $E004 and $E005, respectively.
PRGRNGE equ $038A ;LB8 PRGRNGE jump address
mov #$55,DATA
mov #$AA,DATA+1
mov #$18,CPUSPD ;fop = 6.0MHz in this example
ldhx #$E005 ;Load last address to LADDR
sthx LADDR
ldhx #$E004 ;Load beginning address to H:X
jsr PRGRNGE ;Call PRGRNGE routine
ERARNGE
ERARNGE can be called to erase a page (64 bytes) or a whole array of FLASH. Registers H and X can
be any address within the page or array to be erased. To select erase size, CTRLBYT is used. Writing
$40 to CTRLBYT selects the entire array (MASS) erase. Writing $00 to CTRLBYT selects the page erase.
When other values are written to CTRLBYT, the erase operation is not executed. This routine supports
an internal operating frequency between 1.0 MHz and 8.4 MHz.
In this routine, both PAGE erase time (t
Erase
) and MASS erase time (t
MErase
) are set between 4 ms and
5.5 ms. The CPUSPD value is the nearest integer of f
op
(in MHz) times 4. For example if f
op
is 3.1 MHz,
the CPUSPD is 12 ($0C). If f
op
is 4.9152 MHz, the CPUSPD is 20 ($14).
Interrupts are masked and the COP is serviced in ERARNGE. The first COP is serviced on
(40+3xCPUSPD) bus cycles after this routine is called in the user software.
Entry Condition
CTRLBYT — For MASS erase, write $40. For PAGE erase, write $00.
H:X — Contains an address within a desired erase page or an array.
CPUSPD — Contains the nearest integer value of f
op
(in MHz) times 4.
Exit Condition
None
相關(guān)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ù)閃速存儲(chǔ)器)
相關(guān)代理商/技術(shù)參數(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