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

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

?? pgm_alg.asm

?? TMS320C2000Flash操作
?? ASM
?? 第 1 頁 / 共 2 頁
字號:
;
; Note 3.  Case where the reference data is a 1, but the cell is a 0. This is a case
;          where the program routine is asked to 'program' a cell to a 1, while the
;          cell is already at a 0. This is a VIOLATION of the established flow, and 
;          no pulses are really required. So no pulse is applied. This will lead 
;          (rightly so) to an error condition.
; Note 4:  This is the case wheen the reference data is a 1 and the flash cell is a 1.
;          Clearly since Cell = Reference data, no pulse is needed, and this is what 
;          happens with WDATA = 1 for this bit.
;
;--------------------------------------------------------------------------------------------------
GET_DATA:
        LAR     AR2,flashAlgoVars.DATA_PTR              ;Load AR2 with the address of the data.
        BLDD    *,#flashAlgoVars.DATA                   ;Load DATA with the intended contents.
;--------------------------------------------------------------------------------------------------
; Zero Bit Error Check:
; A zero bit error is defined as occurring when a bit in flash is a zero, when its intended value
; as defined by the RAM buffer is a one. 
; The function used to detect this is err= (!READ).(DATA)
; If non zero, a zero bit error is defined as having occurred.
; This needs to be checked once per word. This avoids application of MAX_PCNT pulses to a cell
; that is a zero, but is a one in the RAM buffer.
;--------------------------------------------------------------------------------------------------
ZERO_BIT_ERROR_CHK:
        LACL    flashAlgoVars.READ                      ;Get the value read out during the verify.
        XOR     #0ffffh                                 ;Invert read out from flash.
        AND     flashAlgoVars.DATA                      ;ACC= (!READ).(DATA)

        BCND    ZERO_BIT_ERROR,NEQ                      ;Branch to the corresponding error handler
                                                        ;when this error happens.
;--------------------------------------------------------------------------------------------------
COMPARE:
        LACL    flashAlgoVars.READ                      ;Get the value read out during the verify.
        XOR     flashAlgoVars.DATA                      ;XOR the read out value with the desired
                                                        ;data.

        BCND    NEXTWORD,EQ                             ;If ==0 then this word is done pgm-ing,
                                                        ;if not start building the mask.

        LACC    flashAlgoVars.READ                      ;Get the contents READ from flash.
        XOR     #0ffffh                                 ;ACC = !Flash.
        OR      flashAlgoVars.DATA                      ;ACC = !FLASH + Data. i.e. ACC = MASK.
        SACL    flashAlgoVars.DATA                      ;Store mask in DATA, since PROG expects
                                                        ;the mask there.
        CALL    PROG              
;--------------------------------------------------------------------------------------------------
; PGCNT:
;--------------------------------------------------------------------------------------------------
;   This routine keeps track of the number of pulses applied to the flash memory location. If 
;   number of pulses allowed reaches zero, error handling is commenced. Otherwise the program 
;   pulse counter is decremented and one more cycle is commenced.
;--------------------------------------------------------------------------------------------------
PGCNT:  LACC    flashAlgoVars.PLS_CNT                   ;Get the number of pulses remaining.
        SUB     #1                                      ;Decrement the pulse counter
        SACL    flashAlgoVars.PLS_CNT                   ;and store it back.
        BCND    PULSE_LIMIT_ERROR,EQ                    ;If zero, then branch to error handling.
        B       PGVERON                                 ;else, verify the word programmed.

;--------------------------------------------------------------------------------------------------
; NEXTWORD
;--------------------------------------------------------------------------------------------------
; This section checks if the last address in the block is done.
; If not increments the address and loops back to program the next word.
;--------------------------------------------------------------------------------------------------
NEXTWORD:
        LACC    flashAlgoVars.FL_SECEND                 ;Get the counter.
        SUB     #1                                      ;and advance it.
        SACL    flashAlgoVars.FL_SECEND

        BCND    NW,NEQ                                  ;If the counter is non-zero, more words in
                                                        ;this block remain to be programmed. So
                                                        ;proceed to program the next word.

        B       END1                                    ;Other wise exit the programming routine.
;--------------------------------------------------------------------------------------------------
NW      LACC    flashAlgoVars.ADDR                      ;Get the address variable and increment
        ADD     #1                                      ;the address counter and store it back.
        SACL    flashAlgoVars.ADDR                      ;

        SPLK    #MX_PCNT,flashAlgoVars.PLS_CNT          ;Initialize the Program Pulse Counter.

        LACC    flashAlgoVars.DATA_PTR                  ;Increment the pointer into the buffer
        ADD     #1                                      ;containing the programming data.
        SACL    flashAlgoVars.DATA_PTR
    
        B       PGVERON                                 ;begin prog of next word
;--------------------------------------------------------------------------------------------------
; Program:
;--------------------------------------------------------------------------------------------------
;       This subroutine applies a single program pulse to the flash word at 
;       the address ADDR.
;       DATA contains the bitmask for the pulses. 
;--------------------------------------------------------------------------------------------------
PROG    LACC    #WDATA                                  ;Load data to be prog
        TBLW    flashAlgoVars.DATA

        LACC    flashAlgoVars.FL_CMD
        XOR     #0003h                                  ;PROG CMND
        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 CNTL
        CALL    CLRCMD


        SDELAY  #Tph_A                                  ;Wait in normal read mode.


        RET
;--------------------------------------------------------------------------------------------------
; Handles the error code generation for the case when bit(s) cannot be programmed even after
; the application of the maximum allowed pulses.
;--------------------------------------------------------------------------------------------------
PULSE_LIMIT_ERROR:
        SPLK    #0005h,flashAlgoVars.PAD1
        CALL    CLRCMD

        SPLK    #3,flashAlgoVars.ALGO_STATUS    
        ACCESS_ARRAY
        MAR     *,AR1
        B       STACK_RESTORE
;--------------------------------------------------------------------------------------------------
; Handles the error code generation for the case when a zero bit error has occurred.
; A zero bit error is defined as occurring when a bit in flash is a zero, when its intended value
; as defined by the RAM buffer is a one. 
;--------------------------------------------------------------------------------------------------
ZERO_BIT_ERROR:
        SPLK    #0005h,flashAlgoVars.PAD1
        CALL    CLRCMD

        SPLK    #4,flashAlgoVars.ALGO_STATUS    
        ACCESS_ARRAY
        MAR     *,AR1
        B       STACK_RESTORE

;--------------------------------------------------------------------------------------------------
; READWORD
;--------------------------------------------------------------------------------------------------
; This routine performs the following operations
;    1.    Reads the word at the location pointed to by ADDR.
;    2.  Stores the word in the variable READ.
;    3.  Returns to the caller in Register Mode.
;--------------------------------------------------------------------------------------------------
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:   LACC    flashAlgoVars.ADDR                      ;Get the address variable and increment
        ADD     #1                                      ;the address counter and store it back.
        SACL    flashAlgoVars.ADDR                      ;

        SPLK    #0006h,flashAlgoVars.PAD1               ;Clear 6 regs.
        CALL    CLRCMD
        
        SPLK    #0,flashAlgoVars.ALGO_STATUS            ;Zero error code, since programming
                                                        ;completed successfully.
        ACCESS_ARRAY                                    
        B       STACK_RESTORE


;--------------------------------------------------------------------------------------------------
; Restore the hardware stack and exit to caller.
;--------------------------------------------------------------------------------------------------
STACK_RESTORE:
        LAR     AR2,#flashAlgoVars.STACK7       ;Point AR2 to the last of the stored stack contents
        MAR     *,AR2                           ;Make AR2 the current AR
        
        RPT     #7                              ;Restore ALL stack locations.
        PSHD    *-
        MAR     *,AR1                           ;Make AR1 the current AR
        RET                                     ;Return to caller








;--------------------------------------------------------------------------------------------------
; CLRCMD
;--------------------------------------------------------------------------------------------------
;     This routine performs the following operations
;   1.     Places the flash in normal read mode by writing 0000 to two control 
;        registers PMPC,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  ProgramAlgoEndMain

        .sect   "PSPL_text"
SETWADDR:
        .label  ProgramAlgoStartSpl
        TBLW    flashAlgoVars.ADDR        
        RET
        .label  ProgramAlgoEndSpl

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本高清不卡视频| 欧美精品一区二区在线观看| 欧美精品三级日韩久久| 日韩午夜在线播放| 日韩理论片中文av| 国产精品一卡二| 在线精品视频免费观看| 欧美国产欧美亚州国产日韩mv天天看完整 | 3d成人动漫网站| 精品成人私密视频| 一二三区精品福利视频| 国产成人免费高清| 欧美日韩一区小说| 亚洲一卡二卡三卡四卡| 99re成人精品视频| 综合久久国产九一剧情麻豆| 欧美日韩免费在线视频| 中文字幕亚洲成人| 国产成人av福利| 国产91精品露脸国语对白| 欧美一区二区三区系列电影| 亚洲主播在线观看| 91麻豆swag| 国产视频不卡一区| 裸体在线国模精品偷拍| 在线免费亚洲电影| 欧美激情一区二区| 国产一区二三区好的| av不卡免费电影| 精品国产一区二区在线观看| 亚洲成a人片在线不卡一二三区| 成人精品视频一区二区三区尤物| 欧美一区二区私人影院日本| 免费精品视频在线| 欧美蜜桃一区二区三区| 亚洲视频一区二区免费在线观看| 国产精品亚洲成人| 中文字幕二三区不卡| 国产乱码精品一区二区三区av | 在线播放视频一区| 日韩成人一级大片| 日韩精品在线一区| 国产精品一级在线| 亚洲麻豆国产自偷在线| 欧美性淫爽ww久久久久无| 午夜亚洲国产au精品一区二区| 欧美另类高清zo欧美| 麻豆极品一区二区三区| 久久久久久久精| hitomi一区二区三区精品| 亚洲美女偷拍久久| 在线播放91灌醉迷j高跟美女| 免费成人美女在线观看| 国产亚洲成av人在线观看导航| 国产99精品视频| 亚洲激情男女视频| 日韩限制级电影在线观看| 国内精品久久久久影院薰衣草| 国产精品乱码久久久久久| 一本久久a久久精品亚洲| 午夜久久久久久久久| 久久久久青草大香线综合精品| 91在线云播放| 51精品视频一区二区三区| 韩国三级中文字幕hd久久精品| 国产精品福利电影一区二区三区四区| 91福利精品第一导航| 成人国产精品免费观看视频| 亚洲激情自拍视频| 欧美电影免费观看完整版| 福利91精品一区二区三区| 亚洲视频 欧洲视频| 欧美丰满美乳xxx高潮www| 精品在线亚洲视频| 亚洲桃色在线一区| 日韩一区二区三区三四区视频在线观看| 精品亚洲国产成人av制服丝袜| 国产精品一区一区三区| 亚洲欧美日韩国产另类专区| 69精品人人人人| 成a人片亚洲日本久久| 亚洲国产精品自拍| 中文久久乱码一区二区| 91精品国产丝袜白色高跟鞋| 97国产精品videossex| 国内精品在线播放| 日本视频免费一区| 亚洲最色的网站| 国产精品入口麻豆原神| 日韩视频中午一区| 91精品办公室少妇高潮对白| 国产大片一区二区| 日韩美女天天操| 欧美丝袜第三区| 成人免费高清在线观看| 黄色日韩网站视频| 日本午夜精品一区二区三区电影| 成人欧美一区二区三区小说| 久久久五月婷婷| 日韩欧美在线不卡| 91精品久久久久久久99蜜桃| 91福利国产成人精品照片| 顶级嫩模精品视频在线看| 精品动漫一区二区三区在线观看| 欧美中文字幕亚洲一区二区va在线| 99精品视频在线观看免费| 国产精品乡下勾搭老头1| 精品一区二区在线播放| 麻豆久久久久久| 秋霞午夜鲁丝一区二区老狼| 偷拍一区二区三区| 亚洲电影视频在线| 欧美日韩卡一卡二| 欧美伊人久久久久久久久影院| 91日韩精品一区| 99在线视频精品| 99r国产精品| av亚洲精华国产精华精| 菠萝蜜视频在线观看一区| 成人激情免费网站| 成人h动漫精品一区二| 不卡的av电影| 亚洲男同性视频| 亚洲视频一区二区在线观看| 亚洲欧美日韩一区二区| 国产精品麻豆久久久| 亚洲欧美日韩一区二区| 亚洲国产成人高清精品| 性做久久久久久久免费看| 日韩二区三区四区| 久久aⅴ国产欧美74aaa| 国产在线视频一区二区三区| 99久久婷婷国产综合精品 | 欧美日韩精品系列| 欧美日韩视频在线一区二区| 日韩视频123| 日本一区二区三区dvd视频在线| 国产精品你懂的| 一区二区在线观看免费视频播放| 一区二区在线看| 久久电影网电视剧免费观看| 粉嫩av一区二区三区粉嫩| 97久久精品人人澡人人爽| 欧美日本一区二区三区四区 | 中文字幕一区二区在线观看| 亚洲自拍偷拍欧美| 蜜桃一区二区三区在线观看| 福利一区二区在线| 欧美怡红院视频| 久久精品一级爱片| 亚洲精选视频免费看| 蜜乳av一区二区| 97精品国产97久久久久久久久久久久| 欧美日韩精品欧美日韩精品一| 精品黑人一区二区三区久久| 亚洲欧美另类久久久精品| 日韩二区在线观看| www.亚洲激情.com| 日韩一级成人av| 亚洲日本va午夜在线影院| 日韩va亚洲va欧美va久久| 成人aaaa免费全部观看| 欧美一区二区私人影院日本| 国产精品久久久久久一区二区三区| 亚洲h在线观看| 99精品欧美一区二区三区小说 | 在线亚洲一区二区| 久久无码av三级| 亚洲一二三四久久| 国产精品乡下勾搭老头1| 91精品国产综合久久精品性色 | 日本少妇一区二区| 91麻豆福利精品推荐| 久久久综合精品| 免费久久99精品国产| 欧美色偷偷大香| 亚洲三级电影网站| 国产老肥熟一区二区三区| 欧美日韩在线播放一区| 国产精品国产馆在线真实露脸| 久久99精品久久只有精品| 欧美日韩亚洲综合一区| 亚洲天天做日日做天天谢日日欢 | 午夜免费欧美电影| 在线免费不卡电影| 亚洲色图都市小说| 99re热视频精品| 中文av一区特黄| 国产成人在线观看免费网站| 精品国内片67194| 免费在线看一区| 欧美精品视频www在线观看| 亚洲一区av在线| 日本伦理一区二区| 亚洲精品视频一区二区| 色综合一区二区三区| 综合久久一区二区三区| 99精品视频在线观看| 亚洲免费视频成人| 色哦色哦哦色天天综合|