亚洲欧美第一页_禁久久精品乱码_粉嫩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蜜臀| 日韩国产精品91| 亚洲福利电影网| 国产精品系列在线观看| 欧美亚洲综合在线| 国产精品女主播在线观看| 日韩精品免费专区| 91蜜桃传媒精品久久久一区二区| 欧美成人一区二区三区在线观看 | av中文字幕在线不卡| 欧美日韩成人一区二区| 中文字幕色av一区二区三区| 国产麻豆成人精品| 日韩免费一区二区| 午夜欧美2019年伦理| 色综合网色综合| 中文字幕亚洲一区二区av在线| 国产乱子轮精品视频| 777午夜精品免费视频| 亚洲欧美激情小说另类| av电影在线观看一区| 国产日韩欧美激情| 国产资源精品在线观看| 欧美一区二区成人6969| 日本中文字幕一区二区有限公司| 欧美三级三级三级| 亚洲一区二区四区蜜桃| 色婷婷综合久久久久中文| 中文字幕亚洲综合久久菠萝蜜| 成人亚洲一区二区一| 中文字幕免费在线观看视频一区| 精品一区二区精品| 欧美岛国在线观看| 久久超级碰视频| 国产天堂亚洲国产碰碰| 国产成人亚洲综合a∨婷婷| 久久久久久亚洲综合| 国产成人综合网| 中文字幕日韩精品一区| 色欧美日韩亚洲| 亚洲h在线观看| 日韩欧美亚洲国产精品字幕久久久| 捆绑调教一区二区三区| 日韩免费观看高清完整版在线观看| 黑人巨大精品欧美一区| 欧美国产成人精品| 99久久精品免费看国产免费软件| 国产精品色哟哟网站| 99久久伊人网影院| 亚洲制服丝袜av| 日韩一区二区精品葵司在线| 狠狠色丁香九九婷婷综合五月 | 在线综合+亚洲+欧美中文字幕| 日本aⅴ亚洲精品中文乱码| 欧美xxxxx牲另类人与| 韩国av一区二区三区| 中文字幕日韩一区| 欧美日本一区二区| 国产一区二区视频在线| 国产精品久久久久久久久晋中 | 日日嗨av一区二区三区四区| 日韩丝袜情趣美女图片| 国产精品一区在线观看你懂的| 亚洲人成人一区二区在线观看 | 国产一区在线看| 亚洲欧美精品午睡沙发| 91精品国产色综合久久久蜜香臀| 国产成人亚洲综合色影视| 一区二区三区成人| www激情久久| 欧美色综合影院| 国产a久久麻豆| 亚洲午夜一区二区| 国产婷婷一区二区| 欧美精品 国产精品| 粉嫩欧美一区二区三区高清影视| 亚洲一二三区在线观看| 国产日本一区二区| 欧美日本韩国一区二区三区视频 | 国产成都精品91一区二区三| 亚洲一区二区三区视频在线| 国产日本一区二区| 欧美一区二区啪啪| 一本一道综合狠狠老| 国产综合一区二区| 天天综合网 天天综合色| 国产精品无遮挡| 精品国产制服丝袜高跟| 欧美日韩精品免费| 成人av资源下载| 国内不卡的二区三区中文字幕| 亚洲二区在线视频| 亚洲女爱视频在线| 欧美国产欧美综合| 精品精品国产高清一毛片一天堂| 欧美一a一片一级一片| 91色porny| 99re这里都是精品| 成人性生交大片免费看视频在线 | 免费观看30秒视频久久| 亚洲免费看黄网站| 亚洲欧洲精品天堂一级| 中文欧美字幕免费| 久久久久国产精品免费免费搜索| 欧美大片日本大片免费观看| 7777精品伊人久久久大香线蕉的| 在线观看日韩一区| 色哟哟亚洲精品| 日本道色综合久久| 色伊人久久综合中文字幕| 99久久婷婷国产| 91在线免费播放| 色久优优欧美色久优优| 91丨porny丨国产| 色综合久久99| 欧美色老头old∨ideo| 欧美性猛交一区二区三区精品| 在线免费观看视频一区| 色94色欧美sute亚洲13| 欧亚洲嫩模精品一区三区| 欧美性猛交xxxxxx富婆| 欧美高清性hdvideosex| 日韩一卡二卡三卡| 欧美一区2区视频在线观看| 欧美成人艳星乳罩| 久久理论电影网| 国产精品灌醉下药二区| 亚洲女人的天堂| 日韩国产精品久久久久久亚洲| 久久se精品一区精品二区| 国产高清精品在线| 99免费精品视频| 欧美日韩国产三级| 日韩三级伦理片妻子的秘密按摩| 欧美精品一区二区三区在线播放| 日本一区二区三区四区| 亚洲色图.com| 免费一区二区视频| 风间由美性色一区二区三区| 日本韩国精品在线| 在线综合亚洲欧美在线视频| 国产网红主播福利一区二区| 亚洲欧美日韩小说| 老司机免费视频一区二区三区| 成人一级片网址| 欧美军同video69gay| 久久先锋影音av鲁色资源网| 国产精品国产三级国产普通话蜜臀| 亚洲成人免费视| 国产91精品一区二区麻豆网站 | 91视频在线看| 日韩女优毛片在线| 亚洲美女免费视频| 麻豆国产欧美一区二区三区| 成人伦理片在线| 日韩一区二区三区av| 中文久久乱码一区二区| 五月天一区二区三区| 成人在线综合网| 91精品国产综合久久精品麻豆| 国产精品天干天干在线综合| 无码av免费一区二区三区试看| 国产98色在线|日韩| 91精品麻豆日日躁夜夜躁| 亚洲福利一二三区| 久久99国产乱子伦精品免费| 在线影院国内精品| 国产香蕉久久精品综合网| 亚洲一级二级在线| 懂色av噜噜一区二区三区av| 日韩欧美综合一区| 亚洲一区二区在线播放相泽| 成人精品国产福利| 欧美精品一区二区三区在线播放| 午夜在线成人av| 一本久久综合亚洲鲁鲁五月天| 亚洲精品在线网站| 蜜臀a∨国产成人精品| 欧美性猛片aaaaaaa做受| 亚洲国产精品黑人久久久| 另类欧美日韩国产在线| 欧美日韩精品一区二区三区四区 | 久久久国产精品不卡| 日韩综合小视频| 欧美视频在线一区二区三区 | 欧美午夜一区二区三区 | 成人动漫av在线| 精品999久久久| 麻豆国产欧美一区二区三区| 欧美日韩久久一区| 亚洲一区二区三区视频在线播放| 91免费视频观看| 国产精品国产a| 99在线精品免费| 中文字幕精品一区二区精品绿巨人 | 久久99精品网久久| 日韩美女视频在线| 久久97超碰国产精品超碰| 日韩欧美国产综合在线一区二区三区| 亚洲国产视频网站|