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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? clr_alg.asm

?? TMS320C2000Flash操作
?? ASM
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
;  Next, the following steps are performed
;  1. DATA is set to 0000h for use in the compare stage, since in clear the flash is set to all 
;     words = 0000h.
;  2. Calls the Level 2 routine CLR_LOOP to clear the sector user space.
;  3. Calls the Level 2 routine CLR_LOOP to clear the sector base space.
;     This clears out any bits in the base sector space that were not  mapped into the user space.
;  4. It then calls the Level2 routine CLR_LOOP to clear the redundant 
;     row bits, that were not mapped into the user space.
;--------------------------------------------------------------------------------------------------
        SPLK    #0000h,flashAlgoVars.DATA       ;Load 0000h for compare.
        SPLK    #0000h,flashAlgoVars.FL_CMD     ;Setup the routine to address the base space.
        SPLK    #0001H,flashAlgoVars.FAIL_CMD   ;Setup the routine to fail if any bits in 
                                                ;the user space fail to clear.
        CALL    CLR_LOOP                        ;Call the CLR_Loop routine to clear 
                                                ;the user space.
;--------------------------------------------------------------------------------------------------
        .if (DEV_TYPE = LF2407)                 ; If the setting is the LF2407 then

        LACC    flashAlgoVars.SECTOR_KEY        ;Get the sector key.
        AND     #0006H                          ;Mask out bits for sectors 0 and 3.
        BCND    NO_RED_CLEAR,EQ                 ;Perform NOROWRED and PRECON steps only
                                                ;for sectors 1 and 2.
        .endif
;--------------------------------------------------------------------------------------------------
        SPLK    #0080h,flashAlgoVars.FL_CMD     ;Setup the NOROWRED mode.
        SPLK    #0000H,flashAlgoVars.FAIL_CMD   ;Set up the routine to ingnore failure of
                                                ;bits to program on MX_PCNT pulses.
        CALL    CLR_LOOP                        ;Clear the base sector space (NOROWRED)

        SPLK    #0100h,flashAlgoVars.FL_CMD     ;Setup the redundancy precondition mode.
        SPLK    #0000H,flashAlgoVars.FAIL_CMD   ;Set up the routine to ingnore failure of
                                                ;bits to program on MX_PCNT pulses.
        CALL    CLR_LOOP                        ;Call the CLR_Loop routine to clear 
                                                ;the redundant bits.
;--------------------------------------------------------------------------------------------------
NO_RED_CLEAR:
        CALL     END1
        RET

;--------------------------------------------------------------------------------------------------
;   CLR_LOOP:
;--------------------------------------------------------------------------------------------------
;   This function is desginated as a LEVEL_3 subroutine.
;--------------------------------------------------------------------------------------------------
;   This function is the implementation for the clear loop. It reads the flash one word at a 
;   time in PROGVER mode. It then compares this word to the word in DATA. In case of the this
;   algo, it is always  0000h. If then goes processes the next word if it is already zero, 
;   else it enters BITMASK to form the bitmask for applying programming pulses to the Flash array.
;--------------------------------------------------------------------------------------------------
CLR_LOOP:
        SPLK    #MX_PCNT,flashAlgoVars.PLS_CNT  ;Initialize the program pulse count. 
        BLDD    #flashAlgoVars.FL_SECST,flashAlgoVars.ADDR        
                                                ;Initialize the address counter.

PGVERON:
        LACC    #WADDR                          ;Load the WADDR Register with the address of
        CALL    SETWADDR                        ;the word to be programmed.

        LACC    flashAlgoVars.FL_CMD            
        XOR     #0004h                          ;(PROGVER Command)Program Verification Command.
        SACL    flashAlgoVars.PAD                        

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

        LACC    #PMPC                
        SPLK    #0005h,flashAlgoVars.PAD
        TBLW    flashAlgoVars.PAD               ;Activate the PGVER Mode by writing to 
                                                ;PMPC.
        SDELAY   #T_pva_e                       ;Wait T_pva(E) 
        CALL     READWORD
    
PGVEROFF:
        SPLK    #0000h,flashAlgoVars.PAD1       ;Clear out PMPC.
        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:
        LACC    flashAlgoVars.READ              ;Get the value of the word read out during
                                                ;Program Verify.
        OR      #0000h                          ;OR this value with 0000h
        BCND    NEXTWORD,EQ                     ;If == 0000h then this word (*ADDR) is
                                                ;programmed, process the next word.
;--------------------------------------------------------------------------------------------------
; BITMASK:
;       This section forms the bitmask to write to the WDATA register.
;       READ contains the value read during program verify above,
;       and this is used to build the mask.
;       Once the mask is built, the sub-routine PROG is called.
;--------------------------------------------------------------------------------------------------
; Notes on building the mask:
;
; ** IMPORTANT: This mask building assumes processing is always to clear the 
; **             flash, i.e. the end value in the flash is assumed to be 0000h.
; **
; 
; This works as follows:
;       1.  Get the value read out during program verify.
;        2. Any bits that are 0s should not get any more pulses.  While any bits that are 1s 
;           should get pulses.
;        3. To apply pulses bits in the WDATA register should be 0s.
;        4. XOR the read value with 0ffffh. This inverts all bits in the read value. So bits that
;           are 0s send 1s in the corresponding bits in WDATA and bits that are 1s send 0s in the
;           corresponding bits in WDATA.
;        5. This ensures that prog applied pulses to those bits read out as 1s.
;--------------------------------------------------------------------------------------------------
        LACC    flashAlgoVars.READ              ;Get the value read during program verify
        XOR     #0ffffh                         ;Acc has the bits now to be written to WDATA.
        SACL    flashAlgoVars.DATA,0            ;Store acc in flashAlgoVars.DATA
        CALL    PROG                            ;Call the PROGRAM routine, that applies the
                                                ;pulses.
;--------------------------------------------------------------------------------------------------
; PGCNT: Program Pulse Count Advance / Check:
;        1. Advance the pulse counter.
;        2. Check the pulse counter to see if this has exceeded limits.          
;        3. Error handling if (2) is true.
;--------------------------------------------------------------------------------------------------
PGCNT:  LACC    flashAlgoVars.PLS_CNT           ;Decrement the pulse counter
        SUB     #1                              ;
        SACL    flashAlgoVars.PLS_CNT           ;Pulse counter now has remaining 
                                                ;pulses allowable.
                                    
        BCND    CHK_IF_FAIL,EQ                  ;If zero then the pulse count is exceeded,
                                                ;enter error handling,
        B        PGVERON                        ;verify word programmed
;--------------------------------------------------------------------------------------------------
CHK_IF_FAIL:                                    ; If here then MAX_PCNT pulses have been 
                                                ; applied. So, check the fail command.
        LACL    flashAlgoVars.FAIL_CMD          ; Get the FAIL_CMD passed from caller.
        BCND    ERROR,NEQ                       ; If non-zero begin error handling.
        B       NEXTWORD                        ; If fail command is zero, then the 
                                                ; caller intended to allow programming
                                                ; failures. So continue the flow.
ERROR:  CALL    END1
        B       ERROR1

;--------------------------------------------------------------------------------------------------
; NEXTWORD
; This block does the following things:
;   1.  Checks if the ADDR is at the last address in the sector.
;   2.  If not, increments ADDR.
;   3.  Sets up program pulse count for programming the next word.
;--------------------------------------------------------------------------------------------------
NEXTWORD:

        LACL    flashAlgoVars.ADDR              ;ACC = (address of previous word programmed).
        SUB     flashAlgoVars.FL_SECEND         ;ACC = (prev word addr) - (last address of sector)
        BCND    NW,NEQ                          ;If there is a match end the routine,
        RET                                     ;otherwise continue with the next word.

NW      LACL    flashAlgoVars.ADDR              ;ACC = (address of previous word programmed).
        ADD     #1                              ;INCREMENT ADDR
        SACL    flashAlgoVars.ADDR              ;STORE ADDR OF NEXT WORD

        SPLK    #MX_PCNT,flashAlgoVars.PLS_CNT  ;Initialize PROGRAM PULSE COUNT 
        B       PGVERON                         ;begin prog of next word


;--------------------------------------------------------------------------------------------------
; PROG: Program subroutine.
;--------------------------------------------------------------------------------------------------
; This is a LEVEL4 subroutine.
;--------------------------------------------------------------------------------------------------
;       
;    1.     This subroutine applies programming pulses to the flash word based on
;        the bitmask built by the caller and placed in flashAlgoVars.DATA.
;
;    2.  The pulses are applied to the main array or the redundant rows depending  
;          on the status of flashAlgoVars.FL_CMD.
;        FL_CMD = 0080h (NOROWRED) programs the bits in the main array.
;        FL_CMD = 0100h (PRECON).
;--------------------------------------------------------------------------------------------------
PROG    LACC    #WDATA                          ;Load data to be prog
        TBLW    flashAlgoVars.DATA              ;Write data to the WDATA register.

        LACC    flashAlgoVars.FL_CMD            ;Get the flash command.
        XOR     #0003h                          ;Add in the bits for the PROG mode.
        SACL    flashAlgoVars.PAD

        LACC    #CTRL                           ;Init prog mode 
        TBLW    flashAlgoVars.PAD            
        SDELAY  #T_psu_p                        ;Wait T_psu(P)

        LACC    #PMPC                           ;Turn on prog voltages
        SPLK    #0005h,flashAlgoVars.PAD    
        TBLW    flashAlgoVars.PAD

PPW     SDELAY  #T_prog_e1                      ;PROG pulse width part 1
        SDELAY  #T_prog_e2                      ;PROG pulse width part 2

        SPLK    #0000h,flashAlgoVars.PAD        ;Turn off PROG Voltages.
        TBLW    flashAlgoVars.PAD

        SDELAY  #Tph_P                          ;Wait T_ph(P)     (HOLD TIME).

        SPLK    #0001h,flashAlgoVars.PAD1       ;Clear PMPC and CTRL.
        CALL    CLRCMD                          ;Since PMPC is 0s already from above,
                                                ;really the only thing affected is CTRL

        SDELAY  #Tph_A                          ;Wait in normal read mode.


        RET                                     





;--------------------------------------------------------------------------------------------------
; READWORD
; This routine performs the following operations
;    1. Reads the word at the location pointed to by flashAlgoVars.ADDR.
;    2. Stores the word in the variable READ.
;    3. Returns to the caller in Register Mode.
;    This is a LEVEL4 subroutine.
;--------------------------------------------------------------------------------------------------
READWORD:
        ACCESS_ARRAY
        LACC    flashAlgoVars.ADDR              ;Read word flash 
        TBLR    flashAlgoVars.READ              ;store word in READ (data space)
        ACCESS_REGS
        RET
;--------------------------------------------------------------------------------------------------
;    END1:                                       
;     This routine performs the following operations
;   1.  Clears the control registers PMPC,CNTL,WADDR,WDATA,ENABLE AND SECTOR)
;   2.  Returns to the caller in ARRAY Mode.
;--------------------------------------------------------------------------------------------------
END1:   SPLK    #0006h,flashAlgoVars.PAD1       ;CLEAR ALL SIX 
        CALL    CLRCMD
        ACCESS_ARRAY
        RET

;--------------------------------------------------------------------------------------------------
; CLRCMD
;--------------------------------------------------------------------------------------------------
;     This routine performs the following operations
;   1.  Places the flash in normal read mode by writing 0000 to two control 
;       registers PMPC=0000,CNTL=0000.
;   2.  Returns to the caller in Register Mode.
;--------------------------------------------------------------------------------------------------
CLRCMD: ACCESS_REGS
        SPLK    #0,flashAlgoVars.PAD
        LACC    #0
        RPT     flashAlgoVars.PAD1
        TBLW    flashAlgoVars.PAD
        RET

        .label  ClearAlgoEndMain

        .sect    "CSPL_text"
SETWADDR:
        .label  ClearAlgoStartSpl
        TBLW    flashAlgoVars.ADDR              ;Perform the write to the address register.
        RET
        .label  ClearAlgoEndSpl


?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青青草成人在线观看| 欧美亚洲国产一区二区三区va| 成人av动漫在线| 99精品国产热久久91蜜凸| 欧美三级中文字| 久久午夜羞羞影院免费观看| 日精品一区二区三区| 免费观看在线色综合| 成人激情小说网站| 欧美性色综合网| 欧美v国产在线一区二区三区| 国产精品久久久久久久久免费樱桃 | 日韩欧美视频一区| 国产精品妹子av| 日韩中文欧美在线| 北岛玲一区二区三区四区| 欧美人xxxx| 国产精品久久久久国产精品日日| 亚洲福利一区二区| 高清shemale亚洲人妖| 欧美军同video69gay| 久久久精品影视| 三级欧美韩日大片在线看| 懂色中文一区二区在线播放| 欧美日韩国产bt| 国产精品视频免费看| 日韩av高清在线观看| 91视视频在线观看入口直接观看www| 日韩一区二区三区三四区视频在线观看 | 亚洲福利电影网| 成人午夜视频在线观看| 欧美一卡二卡三卡| 亚洲人123区| 国模冰冰炮一区二区| 欧美精品少妇一区二区三区| 国产精品久久久久影院亚瑟 | 91精品国产福利| 亚洲蜜桃精久久久久久久| 韩国av一区二区三区四区| 欧美日韩综合不卡| 亚洲欧美另类图片小说| 国产69精品久久99不卡| 日韩精品资源二区在线| 亚洲成人免费视| 色诱亚洲精品久久久久久| 国产欧美日韩亚州综合| 美女国产一区二区三区| 欧美日韩高清在线| 亚洲精品高清视频在线观看| 国产.欧美.日韩| 337p日本欧洲亚洲大胆精品| 日本aⅴ亚洲精品中文乱码| 在线视频你懂得一区| 亚洲日本va午夜在线电影| 国产精品18久久久久久久久久久久 | 国产欧美一区二区精品仙草咪 | 久久久九九九九| 久久草av在线| 欧美一区二区在线免费播放| 亚洲福利视频一区| 在线观看亚洲专区| 夜夜嗨av一区二区三区中文字幕| 99久久婷婷国产| 日韩理论片中文av| 色综合久久中文字幕综合网| 亚洲品质自拍视频网站| 91麻豆自制传媒国产之光| 成人免费在线视频| 色婷婷久久久亚洲一区二区三区| 亚洲欧美综合色| 不卡一区在线观看| 亚洲欧美日韩在线| 色老头久久综合| 一区二区三区不卡在线观看| 91久久一区二区| 亚洲国产美女搞黄色| 欧美日本韩国一区| 麻豆成人91精品二区三区| 日韩一区二区三区高清免费看看 | 日韩一区国产二区欧美三区| 奇米888四色在线精品| 91麻豆精品国产91久久久久久| 日韩精品电影一区亚洲| 欧美一区二区在线播放| 麻豆国产欧美一区二区三区| 精品久久久久久久久久久久久久久久久 | 国产91精品一区二区| 中文字幕中文字幕一区二区| 色综合久久久网| 亚洲成a人片在线观看中文| 制服.丝袜.亚洲.中文.综合| 日韩中文字幕区一区有砖一区 | 国产成人在线视频网站| 亚洲欧洲日产国码二区| 欧美亚洲国产一区在线观看网站| 五月天激情小说综合| 日韩欧美色综合网站| 国产精品18久久久久久久久久久久| 国产精品另类一区| 一本在线高清不卡dvd| 亚洲主播在线观看| 日韩一区二区电影在线| 国产成人精品影视| 亚洲黄色片在线观看| 欧美日韩一级大片网址| 久久99精品久久只有精品| 国产三级欧美三级日产三级99| www.久久精品| 亚洲午夜电影在线观看| 精品国产一区二区在线观看| caoporn国产一区二区| 亚洲va中文字幕| 久久久精品欧美丰满| 日本韩国一区二区三区视频| 美腿丝袜亚洲综合| 国产精品成人免费| 欧美一级专区免费大片| 本田岬高潮一区二区三区| 日韩 欧美一区二区三区| 欧美极品xxx| 欧美日韩不卡视频| 成人午夜免费视频| 日韩不卡在线观看日韩不卡视频| 久久精品综合网| 欧美日韩一区二区三区免费看| 韩国中文字幕2020精品| 亚洲精品视频在线| 精品久久久久一区二区国产| 色视频成人在线观看免| 美女一区二区三区| 樱桃视频在线观看一区| 久久中文娱乐网| 欧美三级日韩三级国产三级| 国产成人精品亚洲777人妖| 亚洲第一主播视频| 国产精品久久久久久久午夜片| 日韩一区二区精品葵司在线| 91蝌蚪国产九色| 国产一区二区三区四区在线观看| 亚洲图片一区二区| 国产精品高潮久久久久无| 精品久久久久一区二区国产| 欧美色图天堂网| 99国产精品视频免费观看| 久草中文综合在线| 午夜一区二区三区视频| 自拍偷拍亚洲综合| 久久精品欧美一区二区三区不卡 | 老司机精品视频一区二区三区| 综合久久久久综合| 国产视频一区在线观看| 日韩欧美国产不卡| 欧美群妇大交群的观看方式| 91日韩一区二区三区| 国产成人综合亚洲网站| 久久99热狠狠色一区二区| 亚洲国产一区二区三区| 国产精品福利影院| 国产日韩欧美高清| 久久婷婷国产综合国色天香| 欧美日韩高清一区二区不卡| 日本丰满少妇一区二区三区| 成人免费看视频| 国产精品 日产精品 欧美精品| 日韩综合一区二区| 五月天激情综合网| 午夜激情综合网| 亚洲午夜在线观看视频在线| 日韩美女视频19| 国产精品久久久久婷婷| 亚洲国产精品成人久久综合一区 | 91在线观看美女| 丁香婷婷综合五月| 丁香网亚洲国际| 成人久久久精品乱码一区二区三区| 狠狠色丁香九九婷婷综合五月| 久久精品国产免费| 久久成人麻豆午夜电影| 精一区二区三区| 精品一二线国产| 国模娜娜一区二区三区| 国产一区二区三区蝌蚪| 国产精品影视在线观看| 国产精品18久久久久| 国产成人免费网站| 成人午夜视频免费看| caoporn国产精品| 色综合久久88色综合天天| 在线亚洲免费视频| 欧美日韩精品免费观看视频| 欧美日本在线视频| 日韩欧美一卡二卡| 久久久久久免费| 亚洲国产成人在线| 亚洲三级在线播放| 亚洲大片在线观看| 蜜桃在线一区二区三区| 国产一区二区三区av电影| 成人国产在线观看| 在线观看亚洲成人|