<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > TQ2440啟動(dòng)代碼分析(二)

          TQ2440啟動(dòng)代碼分析(二)

          作者: 時(shí)間:2016-11-26 來源:網(wǎng)絡(luò) 收藏

          ;=====================================================================

          ; Clock division test

          ; Assemble code, because VSYNC time is very short

          ;=====================================================================

          EXPORT CLKDIV124

          EXPORT CLKDIV144

          CLKDIV124

          ldr r0, = CLKDIVN

          ldr r1, = 0x3 ; 0x3 = 1:2:4

          str r1, [r0]

          ; wait until clock is stable

          nop

          nop

          nop

          nop

          nop

          ldr r0, = REFRESH

          ldr r1, [r0]

          bic r1, r1, #0xff

          bic r1, r1, #(0x7<<8)

          orr r1, r1, #0x470 ; REFCNT135

          str r1, [r0]

          nop

          nop

          nop

          nop

          nop

          mov pc, lr

          CLKDIV144

          ldr r0, = CLKDIVN

          ldr r1, = 0x4 ; 0x4 = 1:4:4

          str r1, [r0]

          ; wait until clock is stable

          nop

          nop

          nop

          nop

          nop

          ldr r0, = REFRESH

          ldr r1, [r0]

          bic r1, r1, #0xff

          bic r1, r1, #(0x7<<8)

          orr r1, r1, #0x630 ; REFCNT675 - 1520

          str r1, [r0]

          nop

          nop

          nop

          nop

          nop

          mov pc, lr

          ALIGN;按照一定的規(guī)則對(duì)齊,^符號(hào)相當(dāng)于偽指令MAP,用于定義一個(gè)結(jié)構(gòu)化的內(nèi)存表的首地址

          AREA RamData, DATA, READWRITE

          ;

          ^ _ISR_STARTADDRESS ; _ISR_STARTADDRESS=0x33FF_FF00

          HandleReset # 4

          HandleUndef # 4

          HandleSWI # 4

          HandlePabort # 4

          HandleDabort # 4

          HandleReserved # 4

          HandleIRQ # 4

          HandleFIQ # 4

          ;Do not use the label IntVectorTable,

          ;The value of IntVectorTable is different with the address you think it may be.

          ;IntVectorTable

          ;@0x33FF_FF20

          HandleEINT0 # 4

          HandleEINT1 # 4

          HandleEINT2 # 4

          HandleEINT3 # 4

          HandleEINT4_7 # 4

          HandleEINT8_23 # 4

          HandleCAM # 4 ; Added for 2440.

          HandleBATFLT # 4

          HandleTICK # 4

          HandleWDT # 4

          HandleTIMER0 # 4

          HandleTIMER1 # 4

          HandleTIMER2 # 4

          HandleTIMER3 # 4

          HandleTIMER4 # 4

          HandleUART2 # 4

          ;@0x33FF_FF60

          HandleLCD # 4

          HandleDMA0 # 4

          HandleDMA1 # 4

          HandleDMA2 # 4

          HandleDMA3 # 4

          HandleMMC # 4

          HandleSPI0 # 4

          HandleUART1 # 4

          HandleNFCON # 4 ; Added for 2440.

          HandleUSBD # 4

          HandleUSBH # 4

          HandleIIC # 4

          HandleUART0 # 4

          HandleSPI1 # 4

          HandleRTC # 4

          HandleADC # 4

          ;@0x33FF_FFA0

          END


          上一頁(yè) 1 2 3 下一頁(yè)

          關(guān)鍵詞: TQ2440啟動(dòng)代

          評(píng)論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();