5秒后页面跳转
AN2635 PDF预览

AN2635

更新时间: 2022-04-23 23:00:11
品牌 Logo 应用领域
飞思卡尔 - FREESCALE 闪存
页数 文件大小 规格书
36页 149K
描述
On-Chip FLASH Programming Routines

AN2635 数据手册

 浏览型号AN2635的Datasheet PDF文件第29页浏览型号AN2635的Datasheet PDF文件第30页浏览型号AN2635的Datasheet PDF文件第31页浏览型号AN2635的Datasheet PDF文件第33页浏览型号AN2635的Datasheet PDF文件第34页浏览型号AN2635的Datasheet PDF文件第35页 
On-Chip Routines Source Code  
;*********************************************************************  
;* Step 7 and Step 8 are repeated until a value in location LADDR+1  
;* reaches to zero.  
;*********************************************************************  
PRGstep7:  
pshx  
pshh  
;[2] temp flash pointer (lo) [F]  
;[2] temp flash pointer (hi) [G]  
;* Current stack frame  
;*  
;*  
;*  
;*  
;*  
;*  
;*  
SP+1 [G] flash pointer (hi) temp store so H:X available  
SP+2 [F] flash pointer (lo) temp store so H:X available  
SP+3 [E] PCH (return addr hi)  
SP+4 [D] PCL (return addr lo)  
SP+5 [C] bytes remaining to prog..not counting this block  
SP+6 [B] LADDR+1  
SP+7 [A] LADDR  
clrh  
ldx  
lda  
pulh  
pulx  
sta  
;[1] clear upper half of H:X  
RamPntrLo  
DATA,x  
;[3] get DATA array pointer (lo)  
;[3] read data from a DATA array  
;[2] restore flash pointer (hi) [G]  
;[2] restore flash pointer (lo) [F]  
;[.w] write data to Flash addr  
,x  
;
(Prog Algo Step 7)  
;*********************************************************************  
;* Compute Tprog based on bus speed  
;* For slowest bus speeds (CPUSPD=4), Tprog = 38 bus cycles. For  
;* other speeds, Tprog = 8 * CPUSPD + 5 bus cycles.  
PRGstep8:  
;delay for Tprog (Prog Algo Step 8)  
;[3]  
;[2] if CPUSPD=4 (bus = 1MHz),  
;[3] Tprog=38 cycles  
;[1] for other cases  
lda  
cmp  
beq  
asla  
sub  
CPUSPD  
#4  
PRGstep9  
#9  
;[2] A = 2 x CPUSPD - 9  
DelayPRG:  
PRGstep9:  
nop  
;[1] 1~ delay  
;[3] Tprog = 8 * CPUSPD + 5 cycles  
dbnza DelayPRG  
;
(Prog Algo Step 9)  
aix  
inc  
dec  
bne  
#1  
;[2] point to next FLASH address  
;[4] increment DATA array pointer  
;[4] decrement byte counter  
RamPntrLo  
ByteCntr  
PRGstep7  
;[3] loop until byte counter is = 0  
rol  
ror  
sei  
1,sp  
1,sp  
;[5] ROL/ROR/SEI makes 12~ delay  
;[5] to match delay to PRGstep10  
;[2]  
PRGstep10:  
PRGstep11:  
PRGstep12:  
lda  
sta  
#mHVEN  
FLCR  
;[2] clear PGM, leave HVEN=1  
;[..w.]  
(Prog Algo Step 10)  
lda  
dbnza  
CPUSPD  
*
;[3] delay for time Tnvh  
;[3*CPUSPD]  
(Prog Algo Step 11)  
clra  
sta  
;[1] pattern to clear HVEN  
;[..w.] clear HVEN bit in FLCR  
FLCR  
On-Chip FLASH Programming Routines, Rev. 4  
32  
Freescale Semiconductor  

与AN2635相关器件

型号 品牌 获取价格 描述 数据表
AN-264 ADI

获取价格

DYNAMIC CHARACTERISTICS OF TRACKING CONVERTERS BY MARK THOMAS
AN2640K ETC

获取价格

VHD VIDEO DISC PLAYER CHROMA AND LUMINANCE PROCESSING CIRCUIT
AN265 SILICON

获取价格

2ND-GENERATION PROSLIC㈢ GUI USER’S GUIDE
AN2661NK ETC

获取价格

TV/Video Signal Processor
AN2662K PANASONIC

获取价格

Consumer Circuit, Bipolar, PDIP30, 0.400 INCH, SHRINK, PLASTIC, DIP-30
AN2663K PANASONIC

获取价格

Consumer Circuit, Bipolar, PDIP24, 0.300 INCH, SHRINK, PLASTIC, DIP-24
AN2663S PANASONIC

获取价格

Consumer Circuit, Bipolar, PDSO24, 0.375 INCH, PLASTIC, SOP-24
AN2684 STMICROELECTRONICS

获取价格

The STEVAL-IFP006V1 demonstration board has been developed
AN26KV32C TI

获取价格

LOW-VOLTAGE HIGH-SPEED QUADRUPLE DIFFERENTIAL LINE RECEIVER
AN2700000707051B YAGEO

获取价格

Mobile Station Antenna, 2650MHz Min, 2750MHz Max, 1.2dB Gain