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

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

?? era_alg.asm

?? ti dsp lf2407的flash接口程序
?? ASM
?? 第 1 頁 / 共 3 頁
字號:
;--------------------------------------------------------------------------------------------------
; Filename         : ERA_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 algorithm for ERASING the TMS320LF240x Flash.
; This algorithm is generic to any sector, and performs the pre-erase conditioning for the flash
; module on these parts.
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
; 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 (10 Aug 2001)
;           Comments: Modified the timing delay routines to use AR2 instead of AR7. AR7 is used
;                     by the C-compiler in some cases, and cannot be used without first saving
;                     it. AR2 can be used directly.
; Ver 1.3 (23 Jan 2002)
;           Comments: 
;                   * Added support for the LF2401A. See the file ..\include\var.h on how to 
;                     set one of the available configurations.
;
;                   * 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  ERASE_FLASH

;--------------------------------------------------------------------------------------------------
; Import symbols (and other information) from VAR.H 
;--------------------------------------------------------------------------------------------------
            .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 'ESPL_text'.
;--------------------------------------------------------------------------------------------------
            .sect     "ERA_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
;--------------------------------------------------------------------------------------------------
; ERASE_FLASH: Implementation of the user call for the flash erase routine. Call this with a valid
; sector mask in flashAlgoVars.SECTOR_MASK to erase any sector combination in the flash.
;--------------------------------------------------------------------------------------------------

        .label  EraseAlgoStartMain

ERASE_FLASH:                        ; Call label for assembly-language client applications.
_eraseFlash:                        ; Call label for C-language client applications.
        LDP     #flashAlgoVars.ADDR             ;Set the DP to the flash algo vars.

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.

SECTOR_0:
        LACC    flashAlgoVars.SECTOR_CMD        ;Get the sector processing command.
;--------------------------------------------------------------------------------------------------
        .if(DEV_TYPE = LF2407)
                                                ;Since the LF2401A has four sectors,
                                                ;allow only four bits.
        AND     #000Fh                          ;Mask out unwanted bits.

        .elseif (DEV_TYPE = LF2401A)

                                                ; Since the LF2401A has only two sectors,
                                                ; allow only two bits.
        AND     #0003h                          ;Mask out unwanted bits.

        .endif
;--------------------------------------------------------------------------------------------------
        BCND    NO_SECTORS,EQ                   ;If no sectors are set, then goto
                                                ;error reporting routine.

        SFR                                     ;Get Bit 0.
        SACL    flashAlgoVars.SECTOR_CMD        ;Store the rest of the command back.
;--------------------------------------------------------------------------------------------------
        BCND    SECTOR_1,NC                     ;If bit 0 is set, clear sector 0.
;--------------------------------------------------------------------------------------------------
        .if(DEV_TYPE = LF2407)

    ; Set up the limits for Sector 0 of LF2407 and call the core erase routine.

        SPLK    #0000h,flashAlgoVars.FL_SECST   ;Set up first addr of sector 0.
        SPLK    #0FFFh,flashAlgoVars.FL_SECEND  ;Set up last  addr of sector 0.
        SPLK    #0001h,flashAlgoVars.SECTOR_KEY ;Pass the sector enable key.
        CALL    ERASE_SECTOR                    ;Call clear_sector to clear sector 0.

        .elseif(DEV_TYPE = LF2401A)

    ; Set up the limits for Sector 0 of LF2401A and call the core erase routine.

        SPLK    #0000h,flashAlgoVars.FL_SECST   ;Set up first addr of sector 0.
        SPLK    #0FFFh,flashAlgoVars.FL_SECEND  ;Set up last  addr of sector 0.
        SPLK    #0001h,flashAlgoVars.SECTOR_KEY ;Pass the sector enable key.
        CALL    ERASE_SECTOR                    ;Call clear_sector to clear sector 0.
    
        .endif


;--------------------------------------------------------------------------------------------------
SECTOR_1:
        LACC    flashAlgoVars.SECTOR_CMD        ;Get the sector processing command.
        SFR                                     ;Mask out unwanted bits.
        SACL    flashAlgoVars.SECTOR_CMD        ;Store the rest of the command back.
        BCND    SECTOR_2,NC                     ;If bit 1 is set, clear sector 1.

        .if(DEV_TYPE = LF2407)

    ; Set up the limits for Sector 1 of LF2407 and call the core erase routine.

        SPLK    #1000h,flashAlgoVars.FL_SECST   ;Set up first addr of sector 1.
        SPLK    #3FFFh,flashAlgoVars.FL_SECEND  ;Set up last  addr of sector 1.
        SPLK    #0002h,flashAlgoVars.SECTOR_KEY ;Pass the sector enable key.
        CALL    ERASE_SECTOR                    ;Call clear_sector to clear
                                                ; Sector 1 if requested
        .elseif (DEV_TYPE = LF2401A)

    ; Set up the limits for Sector 1 of LF2401A and call the core erase routine.

        SPLK    #1000h,flashAlgoVars.FL_SECST   ;Set up first addr of sector 1.
        SPLK    #1FFFh,flashAlgoVars.FL_SECEND  ;Set up last  addr of sector 1.
        SPLK    #0002h,flashAlgoVars.SECTOR_KEY ;Pass the sector enable key.
        CALL    ERASE_SECTOR                    ;Call clear_sector to clear
                                                ; Sector 1 if requested

        .endif

;--------------------------------------------------------------------------------------------------


SECTOR_2:
        .if(DEV_TYPE = LF2407)

        ; For the LF2407, check if sector 2 is to be erased. If it is to be
        ; erased then call the core erase routine with the correct limits.


        LACC    flashAlgoVars.SECTOR_CMD        ;Get the sector processing command.
        SFR                                     ;Mask out unwanted bits.
        SACL    flashAlgoVars.SECTOR_CMD        ;Store the rest of the command back.
        BCND    SECTOR_3,NC                     ;If bit 2 is set, clear sector 2.

        SPLK    #4000h,flashAlgoVars.FL_SECST   ;Set up first address of sector 2.
        SPLK    #6FFFh,flashAlgoVars.FL_SECEND  ;Set up last address of sector 2.
        SPLK    #0004h,flashAlgoVars.SECTOR_KEY ;Pass the sector enable key.
        CALL    ERASE_SECTOR                    ;Call clear_sector to clear sector 2.

        ; For the LF2407, check if sector 2 is to be erased. If it is to be
        ; erased then call the core erase routine with the correct limits.

SECTOR_3:
        LACC    flashAlgoVars.SECTOR_CMD        ;Get the sector processing command.
        SFR                                     ;Mask out unwanted bits.
        SACL    flashAlgoVars.SECTOR_CMD        ;Store the rest of the command back.
        BCND    SECTORS_DONE,NC                 ;If bit 3 is set, clear sector 3.

        SPLK    #7000h,flashAlgoVars.FL_SECST   ;Set up first address of sector 3.
        SPLK    #7FFFh,flashAlgoVars.FL_SECEND  ;Set up last address of sector 3.
        SPLK    #0008h,flashAlgoVars.SECTOR_KEY ;Pass the sector enable key.
        CALL    ERASE_SECTOR                    ;Call clear_sector to clear sector 3.

        .endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费成人美女在线观看| 成人av电影在线播放| 成人av在线资源网站| 欧美高清视频一二三区| 国产精品传媒在线| 精品一区二区三区不卡| 欧美老年两性高潮| 亚洲视频 欧洲视频| 国产一区二区三区免费在线观看| 欧美视频一区二区三区在线观看| 国产精品热久久久久夜色精品三区| 日韩av在线播放中文字幕| 色呦呦国产精品| 国产精品久久一级| 国产成人精品免费看| 日韩欧美国产一区在线观看| 亚洲成人久久影院| 欧美日韩一级二级| 一区二区三区日韩精品视频| 99视频热这里只有精品免费| 国产日韩欧美制服另类| 黄色成人免费在线| 精品99一区二区| 久久精品国产精品亚洲综合| 91麻豆精品国产91久久久| 午夜a成v人精品| 欧美日本乱大交xxxxx| 亚洲成人免费看| 欧美一区二视频| 久久精品国产亚洲a| 精品1区2区在线观看| 国产自产视频一区二区三区 | 视频一区中文字幕国产| 色综合咪咪久久| 亚洲精品国产一区二区精华液 | 婷婷久久综合九色综合绿巨人| 91久久免费观看| 亚洲二区视频在线| 69久久99精品久久久久婷婷| 图片区日韩欧美亚洲| 欧美一级精品在线| 国产一区二区三区久久久| 久久精品视频一区二区三区| 国产98色在线|日韩| 亚洲免费成人av| 8v天堂国产在线一区二区| 久久av中文字幕片| 国产精品日韩成人| 欧美影院午夜播放| 麻豆精品一区二区三区| 久久精品综合网| 91在线观看视频| 五月天视频一区| 国产亚洲精久久久久久| 色先锋资源久久综合| 午夜不卡av在线| 欧美日韩国产在线播放网站| 欧美日韩电影在线播放| 国产日产欧产精品推荐色| 国产精品视频一二| 欧美大胆人体bbbb| 日韩一级大片在线观看| 精品电影一区二区| 亚洲高清在线视频| 成人ar影院免费观看视频| 欧美一区二区在线不卡| 亚洲视频在线观看一区| 国产馆精品极品| 久久久久久久久久久电影| 免费成人在线播放| 777午夜精品免费视频| 亚洲一区二区在线观看视频| 9l国产精品久久久久麻豆| 中文字幕国产一区| 国产成人精品午夜视频免费| 精品久久久久久久久久久久久久久久久| 一区二区三区在线高清| 欧美日韩成人在线| 午夜精品久久久久久久99水蜜桃 | 国产精品视频在线看| 另类综合日韩欧美亚洲| 久久精品人人做人人综合 | 一区二区久久久| 欧美系列在线观看| 韩日欧美一区二区三区| 久久免费视频色| 99久久精品免费精品国产| 一区二区国产视频| 91精品国产综合久久香蕉的特点| 天天色综合天天| xnxx国产精品| 欧美日韩视频在线第一区| 免费的成人av| 亚洲国产日韩一级| 欧美激情一区在线| 欧美一级二级三级乱码| 成人性生交大片免费看在线播放| 亚洲精品视频在线看| 欧美电视剧在线观看完整版| 一本大道久久a久久精品综合| 日本特黄久久久高潮| 亚洲精品免费视频| 国产午夜亚洲精品午夜鲁丝片| 在线观看精品一区| 91在线你懂得| 成人黄色一级视频| 国产精品综合在线视频| 婷婷成人综合网| 一区二区三区在线免费视频| 欧美激情一区二区三区四区| 日韩精品一区国产麻豆| 欧美日韩高清不卡| 欧美日韩在线亚洲一区蜜芽| 91麻豆swag| 91天堂素人约啪| 色久综合一二码| 欧美三级日韩三级国产三级| 欧美色中文字幕| 欧美视频一区二区三区四区| 欧美午夜精品免费| 欧美一区二区美女| 欧美精品一区二区三区在线 | 国内久久精品视频| 福利视频网站一区二区三区| 国产美女视频91| 捆绑紧缚一区二区三区视频| 久久91精品国产91久久小草| 国产福利91精品| 91网站视频在线观看| 欧美一三区三区四区免费在线看| 日韩欧美国产小视频| 国产精品传媒入口麻豆| 五月天激情综合| 成人黄色一级视频| 日韩欧美一区二区视频| 国产精品美女久久久久久久| 亚洲成人一区二区| 成人激情黄色小说| 日韩欧美视频一区| 国产精品成人免费精品自在线观看| 亚洲成人av电影在线| 国产成人av电影在线播放| 在线综合亚洲欧美在线视频| 亚洲欧洲日韩在线| 国产91丝袜在线播放九色| 欧美高清hd18日本| 婷婷综合另类小说色区| 中文字幕av资源一区| 欧美伊人久久大香线蕉综合69| 日韩成人免费电影| 欧洲人成人精品| 亚洲精品一卡二卡| 亚洲精品一区二区三区福利 | 精品福利视频一区二区三区| 国产综合久久久久久鬼色| 国产精品九色蝌蚪自拍| 欧美三区免费完整视频在线观看| 午夜精品视频一区| 国产精品久久久久久久岛一牛影视 | 久久亚洲精品小早川怜子| 成人av网站大全| 久久国内精品自在自线400部| 国产欧美精品一区二区三区四区| 99re66热这里只有精品3直播| 日韩精品福利网| 亚洲日本在线视频观看| 欧美精品一区二区久久久| 欧美高清视频不卡网| voyeur盗摄精品| 国模套图日韩精品一区二区| 亚洲一区二区三区四区中文字幕| 国产欧美精品在线观看| 欧美一区午夜视频在线观看 | 亚洲女同ⅹxx女同tv| 精品国产欧美一区二区| 欧美日韩精品系列| 色婷婷亚洲一区二区三区| 成人app软件下载大全免费| 青草av.久久免费一区| 亚洲精品乱码久久久久久久久 | 国产一区三区三区| 精品一区在线看| 国产在线视频不卡二| 国产精品一区二区不卡| 韩国精品久久久| 不卡高清视频专区| 91污片在线观看| 欧美调教femdomvk| 欧美一区二区啪啪| 91精品国产乱| 国产欧美中文在线| 最近日韩中文字幕| 日本在线播放一区二区三区| 婷婷综合五月天| 蜜乳av一区二区| 免费在线看成人av| 狠狠色丁香久久婷婷综合_中| 日日骚欧美日韩| 国产一区二区三区在线观看精品| 国产精品综合一区二区三区|