亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pgm_alg.asm

?? TMS320C2000Flash操作
?? ASM
?? 第 1 頁 / 共 2 頁
字號:
;--------------------------------------------------------------------------------------------------
; Filename         : PGM_ALG.ASM	  
; Last Modified    : 23 Jan 2002.
; Version          : 1.3
; Originator       : Texas Instruments, DSP Digital Control Systems Group.
;--------------------------------------------------------------------------------------------------
; Description:
;
; This file contains the implementation of the core clear algorithm for 
; progamming user data into the LF240x Flash.
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
; Revision History
; 
; Ver 1.0 (25 May 2001)
; 
;           Comments: Derived from previous source code. Several modifications in place for 
;                     enhanced embeddability.
; Ver 1.1 (10 Aug 2001)
;           Comments: Added code to save/restore the hardware stack. This excludes the possibility
;                     of hardware stack overflow.
;
; Ver 1.2 (16 Oct 2001)
;           Comments: No changes to this file. Changed version number only.
; Ver 1.3 (23 Jan 2002)
;           Comments: 
;                   * Fixed a bug in this file:
;                     Near line 295 (now near line 315) a line of code had a direct address coded
;                     in for data space #0064h. This line is not in keeping with re-locatable 
;                     variables, and the functionality of this line was replaced with relocatable
;                     code when deriving v1.0.
;                     This line of code would corrupt the contents of memory location #0064h.
;                     Hence this line of code was removed.
;                     This line used to read as follows:
;;;;                  BLDD flashAlgoVars.DATA_PTR,#0064h ;Get the next data value to be programmed.
;                      
;                   * This program algorithm will work for DEV_TYPE LF2407 and LF2401A, see 
;                       ..\include\VAR.H on how to choose and set DEV_TYPE.
;
;                   * Modified the macros ACCESS_REGS and ACCESS_ARRAY to not use a hard coded data
;                     mem address. This is to bring these macros in line with the rest of the algo
;                     which uses allocated addresses. These macros still use a hard coded address
;                     for the i/o space address 0xff0f (0ff0fh) since that is a special address,
;                     which will always address the i/o latch which controls the flash memory
;                     mode.
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------

;--------------------------------------------------------------------------------------------------
;
;--------------------------------------------------------------------------------------------------
; Symbols exported from this file
;--------------------------------------------------------------------------------------------------
        .globl  PROGRAM_FLASH

;--------------------------------------------------------------------------------------------------
; Import register definitions and symbol declarations.
;--------------------------------------------------------------------------------------------------
        .include ..\include\var.h

        .include ..\include\rundefs.h
;--------------------------------------------------------------------------------------------------
; Program sections generated by this file:
; All code in this algorithm implementation is assembled into the named section 'ALG_Text". 
; Any relocation sensitive code is placed in the named section 'PSPL_text'.
;--------------------------------------------------------------------------------------------------
            .sect     "PGM_text"

;--------------------------------------------------------------------------------------------------
; Define macros to set the Flash Mode.
; ACCESS_REGS gives access to the Flash Registers in the Pgm Mem Space and ACCESS_ARRAY  gives 
; access to the Flash ARRAY in Pgm Mem Space.
;
;--------------------------------------------------------------------------------------------------
ACCESS_REGS        .macro    
                OUT    flashAlgoVars.PAD,0ff0fh        
                .endm

ACCESS_ARRAY    .macro    
                IN     flashAlgoVars.PAD,0ff0fh
                .endm

;--------------------------------------------------------------------------------------------------
; Define Short DELAY loop macro. 
;  This will be used to generate a short delay upto 256 cycles.
;--------------------------------------------------------------------------------------------------
SDELAY          .macro  COUNT
                RPT     COUNT
                NOP
                .endm
;--------------------------------------------------------------------------------------------------



;--------------------------------------------------------------------------------------------------
; PROGRAM_FLASH:
;--------------------------------------------------------------------------------------------------
; This function is the implementation of the clear algorithm for the pre-erase preconditioning of 
; the flash array. This function is desginated as a LEVEL_1 subroutine.
;--------------------------------------------------------------------------------------------------
PROGRAM_FLASH:                          ; Call label for assembly-language client applications.
_programFlash:                          ; Call label for C-language client applications.
        .label  ProgramAlgoStartMain
        LDP     #flashAlgoVars.ADDR

STACK_SAVE:
        LAR     AR2,#flashAlgoVars.STACK0       ;Use AR2 to save the hardware stack.
        MAR     *,AR2                           ;Make AR2 the current AR

        RPT     #7                              ;Save all the 8 hardware stack locations
        POPD    *+                              ;into RAM block.
       
;--------------------------------------------------------------------------------------------------
; Enable the flash for programming:
; To accept programming commands the following must happen:
;   1. Place the flash in the register mode.
;   2. Copy the sector key to the SECT register.
;   3. Enable the core by setting Bit 0 of the ENAB Register
;--------------------------------------------------------------------------------------------------
ENABLE: ACCESS_REGS                                              ;Put the flash in register mode.

        LACC    #SECT                                            ;Enable sector.
        BLDD    #flashAlgoVars.SECTOR_CMD,flashAlgoVars.PAD      ;
        TBLW    flashAlgoVars.PAD       

        LACC    #ENAB                                            ;Enable core.
        SPLK    #0001h,flashAlgoVars.PAD                         ;
        TBLW    flashAlgoVars.PAD                                ;

;--------------------------------------------------------------------------------------------------
        SPLK    #0000,flashAlgoVars.FL_CMD                       ;
;--------------------------------------------------------------------------------------------------
;       BLDD    flashAlgoVars.DATA_PTR,#flashAlgoVars.DATA       ;Point to first data 
                                                                 ;to be programmed.
;--------------------------------------------------------------------------------------------------
; PGM:
;--------------------------------------------------------------------------------------------------
; This is the loop at the core of the program algorithm. This performs the following steps to 
; program the flash with the new contents of the flash
;   1.  Reads the flash.
;   2.  Compares the contents read out to those pointed to by the 
;       variable DATA_PTR.
;   3.  If any bits need to be programmed forms a bitmask and calls the PROG
;       routine to apply the program pulse.
;
;--------------------------------------------------------------------------------------------------
PGM:    SPLK    #MX_PCNT,flashAlgoVars.PLS_CNT  ;Initialise the pulse counter.

PGVERON:
        LACC    #WADDR                          ;Load WADDR with the address of 
                                                ;the word to be programmed.
        CALL    SETWADDR                        ;Call the routine to do so.

        LACC    flashAlgoVars.FL_CMD            ;Compose the flash command to read
                                                ;the user space in PROGVER mode.
        XOR     #0004h              
        SACL    flashAlgoVars.PAD    

        LACC    #CTRL                           ;Set up the PROGVER mode.
        TBLW    flashAlgoVars.PAD
        SDELAY  #T_pvsu                         ;Wait for T_pvsu(P)

        LACC    #PMPC                           ;Activate the PROGVER mode.
        SPLK    #0005h,flashAlgoVars.PAD    
        TBLW    flashAlgoVars.PAD
        SDELAY  #T_pva_e                        ;Wait T_pva(E)

        CALL    READWORD                        ;Read the word pointed to by ADDR.
    
PGVEROFF:
        SPLK    #0000h,flashAlgoVars.PAD1       ;Deactivate the PROGVER mode.
        CALL    CLRCMD

        SDELAY  #Tpv_h_P                        ; Wait for Program verify hold time

        SPLK    #0001h,flashAlgoVars.PAD1       ;Clear out PMPC and CTRL
        CALL    CLRCMD                          ;Since PMPC is cleared already, it is unchanged.

        SDELAY  #Tpv_h_C                        ;Hold the normal read mode.

;--------------------------------------------------------------------------------------------------
; Compare:
;--------------------------------------------------------------------------------------------------
; This section of code compares the data read out from the flash with the data
; intended to be programmed in the flash.
;   1.  Get the data read out during the read.
;   2.  Create a bitmask by XOR-ing the data read out during verify with the 
;       intended data pointed to by DATA_PTR.
;   3.  If not equal, builds the mask and calls the PROG routine.
;--------------------------------------------------------------------------------------------------
; Notes on building the mask:
;
; This implementation uses the Bitmask = DATA + !READ_Flash boolean expression for building the
; bitmask. (The + is the boolean operator OR, and ! is inversion.)
; The mask building works as follows:
;
;   1. Read the flash data. 
;   2. Invert this by XOR-ing this with 0xffff.
;   3. OR this with the reference data from the buffer.
;   4. Store the result as the mask into the DATA (subsequently sent to WDATA).
;
;   For example lets say the flash cells contain the 16 bits:  cccc cccc cccc cccc.
;
;   CCCC        cccc cccc cccc cccc  (flash contents)
;   XOR 
;   FFFF        1111 1111 1111 1111  (all ones mask)
;   ----        ---- ---- ---- ----
;   PPPP        pppp pppp pppp pppp  (intermediate result)
;   OR          
;   DDDD        dddd dddd dddd dddd  (reference data from RAM buffer)
;   ----        ---- ---- ---- ----
;   MMMM        mmmm mmmm mmmm mmmm  (mask for writing in WDATA)
;
;   Now the bits m are the result as p = ((C ^ 1) + y). The truth table for this is:
; 
;   d    c   c^1 or !c       m = p = !c + d  Action caused by m     Comments
;--------------------------------------------------------------------------------------------------
;   0    0    1              1               No pulse applied.      Note 1.
;   0    1    0              0               Pulse applied.         Note 2.
;   1    0    1              1               No pulse applied.      Note 3.
;   1    1    0              1               No pulse applied.      Note 4.
;
; 
; Note 1:  This is the case wheen the reference data is a 0 and the flash cell is a 0.
;          Clearly since Cell = Reference data, no pulse is needed, and this is what 
;          happens with WDATA = 1 for this bit.
;
; Note 2:  Case where the reference data is a 0, but the cell is a 1. So a pulse is 
;          applied, to program the cell to a 0.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米精品一区二区三区在线观看一| 国产人久久人人人人爽| 日本亚洲欧美天堂免费| 日韩亚洲欧美在线| 成人网男人的天堂| 亚洲国产美国国产综合一区二区| 日韩欧美第一区| 不卡的av电影在线观看| 一区二区三区四区五区视频在线观看| 91精品国产欧美一区二区18| 国内精品写真在线观看| 亚洲激情六月丁香| 69av一区二区三区| 岛国av在线一区| 亚洲香蕉伊在人在线观| 国产日本欧美一区二区| 欧美一区二区免费| 色偷偷成人一区二区三区91| 日韩国产欧美在线视频| 国产日产欧美一区二区三区| 欧美日韩一区二区三区在线看 | 亚洲自拍偷拍麻豆| 日韩欧美综合一区| 欧美亚洲国产一区在线观看网站| 国产精品一区久久久久| 夜夜嗨av一区二区三区网页| 国产精品免费aⅴ片在线观看| 欧美日免费三级在线| 国产精品资源站在线| 天天av天天翘天天综合网| 国产精品网友自拍| 欧美一卡在线观看| 91麻豆精品一区二区三区| 美女爽到高潮91| 亚洲成人高清在线| 亚洲乱码国产乱码精品精的特点| 精品国产一区二区在线观看| 欧美综合一区二区| 成人avav影音| 国产福利一区在线| 国产精品小仙女| 日本欧美加勒比视频| 一区二区三区av电影| 中文一区在线播放| 精品国产亚洲在线| 欧美一区二区三区免费观看视频| 波多野结衣一区二区三区| 国产在线精品国自产拍免费| 亚洲18女电影在线观看| 一区二区三区免费| 亚洲欧洲制服丝袜| 国产精品卡一卡二卡三| 久久夜色精品一区| 26uuu国产在线精品一区二区| 欧美三级三级三级| 国产成人av电影在线播放| 国产精品18久久久久| 毛片av中文字幕一区二区| 免费在线观看视频一区| 亚洲成人av福利| 亚洲一区二区视频在线| 一区二区三区91| 亚洲嫩草精品久久| 一区二区三区免费看视频| 亚洲男同性恋视频| 自拍偷自拍亚洲精品播放| 日本一区二区不卡视频| 亚洲欧洲国产日韩| 亚洲图片欧美激情| 亚洲精品日韩专区silk| 亚洲大片一区二区三区| 午夜视频一区二区| 视频一区视频二区中文| 日本伊人色综合网| 裸体在线国模精品偷拍| 国产一区二区精品久久91| 国产原创一区二区三区| 国产精品自在欧美一区| 91在线porny国产在线看| 欧美日韩国产综合久久| 丝袜美腿亚洲综合| 奇米一区二区三区| 国产精品资源在线观看| 99国产精品久久久久久久久久| 97se亚洲国产综合自在线不卡| 在线视频你懂得一区二区三区| 欧美视频在线不卡| 久久青草欧美一区二区三区| 中文字幕电影一区| 一区二区三区中文字幕| 日本在线观看不卡视频| 国模一区二区三区白浆| 成人白浆超碰人人人人| 欧美片网站yy| 久久久久99精品一区| 一区二区三区在线免费视频| 午夜视频在线观看一区二区三区| 国内成人免费视频| 一本色道久久综合亚洲91| 欧美日韩久久久| xvideos.蜜桃一区二区| 亚洲欧洲综合另类| 免费的国产精品| 成人免费福利片| 欧洲精品在线观看| 欧美精品一区二区久久久| 亚洲综合色丁香婷婷六月图片| 久久精品国产亚洲aⅴ| 粉嫩av一区二区三区| 欧美天天综合网| 国产精品久久久久婷婷二区次| 午夜电影久久久| 成人精品国产一区二区4080| 8x8x8国产精品| 国产精品免费久久| 免费成人av在线| 在线精品视频一区二区三四| 久久亚洲一级片| 亚洲成人免费观看| 91麻豆精品秘密| 2023国产精品| 午夜精品久久久久久不卡8050| 国产成人在线观看| 欧美一区二区三区免费观看视频 | 色综合天天视频在线观看 | 亚洲高清在线精品| 丁香婷婷综合网| 日韩免费性生活视频播放| 亚洲一区视频在线| 国产成人精品亚洲午夜麻豆| 欧美日韩国产综合视频在线观看| 中文字幕一区二区视频| 国产一区999| 91精品国产色综合久久久蜜香臀| 一区二区三区四区不卡在线 | 国产精品美女久久久久久2018| 青娱乐精品在线视频| 在线观看欧美日本| 欧美激情一区二区三区不卡| 麻豆91免费看| 欧美精品在线视频| 亚洲精品国产a| 盗摄精品av一区二区三区| 精品国产免费人成电影在线观看四季| 一区二区三区精品在线| av激情亚洲男人天堂| 欧美国产精品专区| 国产精品99久久久久久久女警| 欧美一区二区三区四区久久| 亚洲国产精品久久久男人的天堂| 成人黄动漫网站免费app| 久久久久久久久99精品| 久久 天天综合| 国产精品久久久久久久蜜臀 | 一区二区在线免费观看| 波多野结衣欧美| 亚洲免费在线电影| 92国产精品观看| 麻豆成人久久精品二区三区小说| 欧美二区三区91| 婷婷综合五月天| 5月丁香婷婷综合| 美女尤物国产一区| 欧美精品一区二区久久婷婷 | 丰满岳乱妇一区二区三区| 欧美国产精品一区二区三区| 国产精品自拍一区| 国产清纯白嫩初高生在线观看91 | 91精品国产乱码久久蜜臀| 日韩电影在线看| 日韩一区二区三区在线视频| 久久99这里只有精品| 精品国产第一区二区三区观看体验| 精品亚洲porn| 国产亚洲欧美中文| 成人av电影在线观看| 亚洲精品网站在线观看| 99国产一区二区三精品乱码| 亚洲蜜臀av乱码久久精品| 欧美色欧美亚洲另类二区| 三级在线观看一区二区| 日韩一区二区三区电影 | 免费精品视频最新在线| 精品三级在线观看| eeuss影院一区二区三区| 亚洲小少妇裸体bbw| 日韩一区二区三区视频在线| 久久国产日韩欧美精品| 欧美激情在线免费观看| 在线视频欧美区| 久久99久久久欧美国产| 国产精品不卡在线观看| 色呦呦网站一区| 青椒成人免费视频| 国产精品成人网| 欧美精选一区二区| 国产九色精品成人porny | 亚洲444eee在线观看| 久久久久国产精品麻豆| 欧洲一区二区av|