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

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

?? boot5409.asm

?? tms320c5409啟動(dòng)代碼
?? ASM
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
*************************************************************************
***	
***     VC5409 Bootloader Software      :       Version  1.02
***                     Origin Date     :       4/22/99
***                     Author(s)       :       PMJ2
***	
*************************************************************************
***	
***     This code sets up and executes the VC5409 Bootloader.
***	
***	Revision History:
***	----------------
***     1.00    Modified the VC5402 bootloader for use    PMJ2   04/22/98
***             on the VC5409. Includes new HPI boot mode,
***             and added McBSP2 code. Includes bug fix 
***             in 8bit parallel mode. Includes bug fix
***             in 8-bit I/O mode, Includes the 8bit 
***             standard serial mode, by changing the 
***             initialization of RCR11 and XCR11 from 
***             040h to 0h. Added a SPI EEPROM bootmode, 
***             which is selected via the INT3 flag 
***             (See notes on SPI boot mode below). 
***             Added code to toggle the BDX2 pin during
***             init, to provide a high-to-low transition
***             that can be used to drive INT3 for selection
***             of the SPI boot mode.
***    
***      1.01   Modified SPI boot.                        PMJ2   09/23/99
***             If the first 8bits are not (08h), 
***             the boot loader will branch to the parallel boot modes.
***             If the second 8bits are not (AAh), the bootloader
***             will branch to the McBSP serial boot initialization.
***             The DX2 pin now toggles instead of the DX1 pin.
***    
***      1.02   Modified Parallel 8-bit.                  PMJ2   12/06/99
***             Modified I/O 8-bit boot modes. 
***             In the parallel 8-bit mode, the AG and AH 
***             are forced to zero for correct evaluation.  
***             In the 8-bit I/O mode, the XPC 
***             destination addr is correclty saved.
***             The BG and BH are forced to zero
***             for correct evaluation. The SPI mode boot
***             branches to the parallel boot after failure
***             of the first condition (08) and second condition (AA).
***             Reset McBSP2 before DX pins toggles. (for debugging)
********************************************************************
***     --------------- Notes on '5409 HPI Boot Mode ---------------
***     The new HPI boot mode allows the host to load the on-chip RAM
***     after the '5409 is reset. The boot-mode also allows the host
***     to specify an entry point at load-time. After completing the
***     bootload process, the host must make another HPI access to load
***     the entry point to location 07Fh of on-chip RAM. This is how it
***     works: after reset, the bootloader initializes address 07Fh to
***     zero, then polls this location for a change while the host is
***     loading the code. When the bootloader detects a change in the
***     contents of address 07Fh, it performs a branch using the contents
***     as the destination address.
***     This new mode doesn't require the INT2 flag for selection. If the
***     INT2 pin is not used to select HPI boot mode, the bootloader
***     periodically checks various boot sources, including HPI, until a
***     boot condition is detected. Alternatively, the INT2 flag can be
***     used to force the bootloader to ignore all boot sources other
***     than HPI. If the INT2 flag is to be used, a high to low transition
***     is required on the INT2 pin within 30 cycles after the '5409 is
***     reset.
*************************************************************************
***     --------------- Notes on '5409 SPI Boot Mode ---------------
***     The SPI boot mode allows the '5409 to boot from an 8-bit serial
***     EEPROM using the SPI protocol. The mode is selected at reset via
***     the INT3 external interrupt . Proper selection of the boot mode
***     requires a high to low transition on the INT3 pin within 30 CPU
***     cycles after the '5409 is reset. 
***
***     The EEPROM must be connected to McBSP2 as follows:
***            McBSP2    EEPROM
***            ******    ******
***            BCLKX     SCK
***            BFSX      /CS
***            BDX       SI
***            BDR       SO
***            XF        /HOLD  (Optional - disables EEPROM when done)
***
***     The boot table used for programming the EEPROM is generated
***     using the 8bit serial option of the Hex conversion utility. 
***      example:
***       -bootorg SERIAL
***       -memwidth 8
*************************************************************************


          .title "bootVC5409"
         .mmregs
         .version 548
         .def    boot
         .def    endboot
         .def    bootend
         .def    dest
         .def    src
         .def    lngth
         .def    hbyte
         .ref    SPI_INIT, SPI_READ, SPI_WRITE
         .ref    SPI_RDSR, SPI_WRSR

*************************************
pa0      .set   0H              ; port address 0h for i/o boot load

xentry   .set   61H             ; XPC of entry point
entry    .set   62H             ; entry point
hbyte    .set   63H             ; high byte of 8-bit serial word
p8word   .set   64H             ; concatenator for 8-bit memory load
src      .set   65H             ; source address
dest     .set   66H             ; destination address (dmov from above)
xdest    .set   67H             ; XPC of destination address.
lngth    .set   68H             ; code length
temp0    .set   69H             ; temporary register0
temp1    .set   6aH             ; temporary register1
temp2    .set   6bH             ; temporary register2
temp3    .set   6cH             ; temporary register3

HPIentry .set   7Fh             ; Entry point for HPI boot.

***********************************************
*    MMR definition for c54xlp peripherals    *
*-------------  MCBSP0  ----------------------*
drr10           .set    21H     ; Data Receive Register
dxr10           .set    23H     ; Data Transmit Register
SPSA0           .set  0038H     ; Serial Port 0 Sub-bank Address Register 
SPSD0           .set  0039H     ; Serial Port 0 Sub-bank Data Register 

*-------------  MCBSP1  ----------------------*
drr11           .set    41H     ; Data Receive Register         
dxr11           .set    43H     ; Data Transmit Register
SPSA1           .set  0048H     ; Serial Port 1 Sub-bank Address Register
SPSD1           .set  0049H     ; Serial Port 1 Sub-bank Data Register

*-------------  MCBSP2  ----------------------
drr12      	    .set    31H	  ; Data Receive Register
dxr12      	    .set    33H	  ; Data Transmit Register
SPSA2           .set  0034H     ; Serial Port 2 Sub-bank Address Register
SPSD2           .set  0035H     ; Serial Port 2 Sub-bank Data Register

*----------- MCBSP CONTROL REGS --------------*
SPCR1_SUBADDR   .set  0000H     ; Serial Port Control Register 1 (subaddress)
SPCR2_SUBADDR   .set  0001H     ; Serial Port 1 Control Register 2 (subaddress)
RCR1_SUBADDR    .set  0002H     ; Receive Control Register 1 (subaddress)
RCR2_SUBADDR    .set  0003H     ; Receive Control Register 2 (subaddress)
XCR1_SUBADDR    .set  0004H     ; Transmit Control Register 1 (subaddress)
XCR2_SUBADDR    .set  0005H     ; Transmit Control Register 2 (subaddress)
SRGR1_SUBADDR   .set  0006H     ; Sample Rate Genarator Register 1 (subaddress)
SRGR2_SUBADDR   .set  0007H     ; Sample Rate Genarator Register 2 (subaddress)
PCR_SUBADDR     .set  000EH     ; Pin Control Register (subaddress)

*-------------- Other contants ---------------*
int2msk         .set   0004H    ; INT2_ bit position on IFR
int3msk         .set   0100H    ; INT3_ bit position in IFR/IMR

**********************************************************
*	bootloader
**********************************************************
         .sect "boot"
boot
         
        ssbx    intm            ; disable all interrupts
        stm     #0FFFFh,@ifr    ; clear IFR flag
        ld      #0, dp
        orm     #02b00h, @st1   ; xf=1, hm=0, intm=1, ovm=1, sxm=1
        orm     #020h, @pmst    ; ovly=1
        stm     #07fffh, swwsr  ; 7 wait states for P_,D_, and I_ spaces
        stm     #0007dh, sp     ; Use top part of scratch-pad RAM for stack.

*****************************************************************
*    RDP, Modified old HPI boot check to support host loading
*    after reset. Initialize HPI boot entry point to 0. The host
*    will change the value of this location after loading RAM.
*****************************************************************
        stm     #0, @HPIentry   ; Set HPI entry to known value.
        stm     #08h, hpic      ; Set HINT pin low. Ok to start
                                ; host load.
*****************************************************************
*    Toggling the BDX pin on McBSP2. This pin can be used to
*    drive /INT3 and select the SPI boot mode, without requiring
*    an external signal.
*****************************************************************

        stm     SPCR2_SUBADDR,SPSA2
        stm     #0000h,SPSD2    ; DISABLES TRANSMIT. (reset)1.02

        stm     #PCR_SUBADDR, SPSA2
        stm     #02000h, SPSD2  ; Set DX low.

        stm     #PCR_SUBADDR, SPSA2
        stm     #02020h, SPSD2  ; Set DX high.
        rpt     #5              ; Keep high a while.
        nop
        stm     #02000h, SPSD2  ; Set DX low.

        rpt     #5              ; wait several cycles
        nop                     ; before checking INT2
        bitf    @ifr, #int2msk  ; Check if INT2_ flag is set
        nop
        bc      HPI, tc         ; If int2 is set then HPI boot.

        bitf    @ifr, #int3msk  ; Else, check if INT3_ flag is set
        nop
        bc      SPIBOOT, tc     ; If int3 is set then SPI boot.

        b       parallel        ; Otherwise, check other boot modes.
*****************************************************************
*    HPI boot mode selected through int2.
*****************************************************************
HPI                             ; Else, this is an HPI boot, all
                                ; other boot modes are ignored.
        stm     #int2msk, ifr   ; Clear INT2_ bit in ifr.

        ldm     HPIentry, a     ; Get HPI entry vector.
        bc      hpiboot, aneq   ; If not zero, HPI boot.
        b       $-3             ; else, keep looping.


*****************************************************************
*    Check Parallel Boot
*****************************************************************
parallel
        stm     #0h, @xentry    ; initialize the entry point
        stm     #boot, @entry   ;
        portr   #0ffffh, @src   ; read source address of boot table
        mvdk    @src, ar1       ; ar1 points at source memory (Data)
        ld      *ar1+, a        ; load accumulator A with BRW
        sub     #10AAh, a, b    ; check 16-bit Boot?
        bc      par16, beq      ; a=010AAh
        and     #0ffh, a        ; check acc AL = 08
        sub     #8h, a, b       ; check 8-bit Boot?
        bc      chk_data, bneq  ; a=08xxh
        ld      *ar1+, a        ; 8-bit mode, LSB
        and     #0ffh, a        ; check acc AL = AAh
        sub     #0AAh, a        ; LSB = 0AAh?
        bc      par08, aeq      ; 8-bit Parallel Boot
chk_data stm     #0FFFFh, ar1    ; check data memory 0xFFFF
        nop                     ; prevent pipeline conflict
        nop                     ;
        ld      *ar1+, a        ; load accumulator A with BRW
        stlm    a, ar1          ; ar1 point at source memory (Data)
        nop                     ; prevent posibble pipeline conflic
        nop                     ;
        ld      *ar1+, a        ; load acculator A with BRW
        sub     #10AAh, a, b    ; check 16-bit Boot?
        bc      par16, beq      ; a=010AAh
        stm     #0FFFFh, ar1    ; check data memory 0xFFFF & 0xFFFE
        nop                     ; prevent possible pipeline conflic
        nop                     ;
        ldu   *ar1-, a          ; acc A <-- source address
        and   #0FFh, a          ; 0 the high byte
        add   *ar1, 8, a        ;
        stlm    a, ar1          ;
        nop                     ; prvent possible pipeline conflic
        nop                     ;
        ld      *ar1+, a        ; load accumulator A with BRW
        and   #0ffh, a          ; check acc AL = 08h
        sub     #8h, a, b       ; check 8-bit Boot?
        bc      ser_ini, bneq   ; acc A = 08xxh
        ld      *ar1+, a        ; 8-bit mode, LSB
        and     #0ffh, a        ; check acc AL = AAh
        sub     #0AAh, a        ; LSB = 0AAh?
        bc      par08, aeq      ; 8-bit Parallel Boot

ser_ini
 
********************************************************************************
*
*                    Initialization for 5409 McBSPs                             
*
********************************************************************************
*
* 1. McBSP0 is configured for 16-bit, BCLKX input, BFSX input.                  
*
********************************************************************************
*
        STM     SPCR1_SUBADDR,SPSA0
        STM     #0000h,SPSD0            ; DISABLES RECEIVE.
	
        STM     SPCR2_SUBADDR,SPSA0
        STM     #0000h,SPSD0            ; DISABLES TRANSMIT.

        STM     RCR1_SUBADDR,SPSA0      ; Set the receive word length to 16-bit.
        STM     #0040H,SPSD0
	
        STM     RCR2_SUBADDR,SPSA0      ; Set the receive word length to 16-bit.
        STM     #0041H,SPSD0            ; Single Phase, 16-bit, No Compan,1bit 
*Delay.

        STM     SRGR1_SUBADDR,SPSA0 
        STM     #0000H,SPSD0            ; Clear the clkdiv and frame width.

        STM     SRGR2_SUBADDR,SPSA0 
        STM     #0000H,SPSD0            ; Clksm=0 External source.

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久国色av免费看影院| 美女网站视频久久| 69堂亚洲精品首页| 粉嫩av一区二区三区在线播放| 一区二区三区免费看视频| 精品美女一区二区| 在线观看日韩毛片| 成人不卡免费av| 美国十次了思思久久精品导航| 尤物av一区二区| 国产日产欧美精品一区二区三区| 51精品国自产在线| 日本久久精品电影| 成人h动漫精品| 国产福利精品一区二区| 男男gaygay亚洲| 亚洲成人免费影院| 亚洲老妇xxxxxx| 国产精品久线观看视频| 久久久av毛片精品| 日韩视频免费观看高清完整版在线观看| 91麻豆福利精品推荐| 成人蜜臀av电影| 国产精品白丝av| 久久99九九99精品| 蜜桃视频在线观看一区| 日韩在线观看一区二区| 午夜精品福利在线| 亚洲午夜久久久久久久久久久| 亚洲欧美日韩国产手机在线| 18成人在线观看| 亚洲人妖av一区二区| 自拍偷拍欧美精品| 综合色中文字幕| ●精品国产综合乱码久久久久| 精品一区二区三区视频在线观看| 人禽交欧美网站| 奇米一区二区三区av| 老汉av免费一区二区三区| 热久久久久久久| 日韩和的一区二区| 亚洲国产一区视频| 日本免费新一区视频| 欧美a一区二区| 黄色日韩网站视频| 国产精品亚洲午夜一区二区三区| 国产精品99久久久久久久女警| 国产经典欧美精品| bt欧美亚洲午夜电影天堂| 91亚洲精品一区二区乱码| 91成人免费在线| 欧美精品久久久久久久久老牛影院 | 欧美日韩国产成人在线91| 欧美精品高清视频| 欧美一级午夜免费电影| 日韩精品一区二区在线观看| 久久久久久久久久美女| 中文字幕在线观看不卡视频| 亚洲伦理在线免费看| 99久久777色| 92精品国产成人观看免费| 在线视频一区二区三区| 91精品国产综合久久久久| 欧美r级在线观看| 欧美激情在线看| 一区二区三区美女| 琪琪久久久久日韩精品| 国产馆精品极品| 欧洲一区在线电影| 欧美tickling网站挠脚心| 中文字幕精品一区二区精品绿巨人 | 欧洲另类一二三四区| 欧美一区二区在线视频| 国产午夜精品美女毛片视频| 一区二区三区四区高清精品免费观看| 日韩精品欧美成人高清一区二区| 国产精品一区专区| 在线日韩av片| 久久综合国产精品| 夜色激情一区二区| 精品一区二区三区在线播放视频 | 91蜜桃网址入口| 欧美一卡在线观看| 中文字幕视频一区| 男男成人高潮片免费网站| 成人午夜视频福利| 欧美一级午夜免费电影| 中文字幕中文字幕中文字幕亚洲无线| 亚洲国产三级在线| 成人性生交大片免费| 日韩欧美一级在线播放| 专区另类欧美日韩| 激情国产一区二区 | 92国产精品观看| 日韩欧美一级片| 亚洲一区二区五区| 国产91露脸合集magnet| 91精品国产综合久久精品app | 26uuu色噜噜精品一区| 亚洲免费观看高清完整版在线观看熊| 欧美人成免费网站| 国产精品丝袜久久久久久app| 天堂在线一区二区| 91黄色在线观看| 国产精品全国免费观看高清| 精品一区二区影视| 69久久夜色精品国产69蝌蚪网| 自拍偷拍亚洲激情| 成人综合婷婷国产精品久久 | www.亚洲免费av| 精品久久久久一区二区国产| 亚洲成av人在线观看| 99re亚洲国产精品| 国产精品区一区二区三| 国产一区二区免费看| 欧美一二三四区在线| 亚洲成人免费视| 欧美视频三区在线播放| 亚洲免费观看视频| 91蜜桃传媒精品久久久一区二区| 国产午夜亚洲精品羞羞网站| 极品少妇xxxx精品少妇偷拍| 91精品欧美一区二区三区综合在| 亚洲国产综合91精品麻豆 | 久久久蜜桃精品| 精品一区二区国语对白| 日韩欧美第一区| 日本成人在线电影网| 777欧美精品| 免费看黄色91| 欧美一区2区视频在线观看| 日本视频一区二区三区| 91精品国产91综合久久蜜臀| 日本麻豆一区二区三区视频| 欧美一级欧美一级在线播放| 日本网站在线观看一区二区三区| 91精品国产综合久久久蜜臀图片| 五月婷婷另类国产| 91精品国产黑色紧身裤美女| 奇米亚洲午夜久久精品| 精品国产自在久精品国产| 精品中文字幕一区二区小辣椒| 337p粉嫩大胆噜噜噜噜噜91av| 国模少妇一区二区三区| 国产欧美va欧美不卡在线| 成人午夜电影久久影院| 亚洲男人天堂av| 欧美自拍偷拍一区| 三级在线观看一区二区| 日韩你懂的电影在线观看| 国产乱理伦片在线观看夜一区| 国产欧美日产一区| 91亚洲永久精品| 日韩专区一卡二卡| 久久亚洲二区三区| 91视频在线看| 日韩二区三区四区| 久久亚洲一区二区三区明星换脸| 成人爱爱电影网址| 亚洲第一主播视频| 精品国产精品网麻豆系列| 成人爱爱电影网址| 亚洲成人免费影院| 2024国产精品视频| 色综合久久88色综合天天6| 午夜欧美2019年伦理| 精品欧美一区二区在线观看| 成人av午夜电影| 亚洲mv在线观看| 久久久.com| 欧美在线免费播放| 欧美日韩一区精品| 激情小说欧美图片| 一区二区在线看| 欧美成人免费网站| 一本高清dvd不卡在线观看| 日韩高清在线观看| 中文字幕一区二区三区四区| 欧美日韩国产乱码电影| 国产高清不卡一区二区| 午夜欧美在线一二页| 国产欧美日韩精品在线| 欧美日韩综合在线免费观看| 狠狠狠色丁香婷婷综合激情| 一区二区三区波多野结衣在线观看| 日韩免费观看高清完整版 | 91精品国产福利在线观看| 成人国产精品免费观看动漫| 日韩精品成人一区二区三区 | 国产欧美一区二区三区沐欲| 欧美日韩国产综合视频在线观看| 国产精品亚洲第一| 亚洲超丰满肉感bbw| 国产精品久久久久久久第一福利| 91麻豆精品国产91| 色综合天天综合| 国产成人在线观看免费网站| 日韩经典中文字幕一区| 亚洲欧美偷拍另类a∨色屁股| 久久亚洲二区三区|