【正文】
nt *//* HCNTRL1 HCNTRL0 HHWIL */ptr_hpi[2] = (int)(dest_add amp。*source 中的數(shù)據(jù)就是 DSP 的啟動代碼段和數(shù)據(jù)段中的數(shù)據(jù)。轉(zhuǎn)入主程序入口CALL exit 。 運行地址AR2RPT 300hMVPD 0f000h,*AR2+ 。打開編譯模式位RSBX OVM 。棧底SP. . . .. . 學習好幫手ADDM (STACKSIZE1),*(SP) 。與 DSP 的連接電路如上圖。當 HRDY 直接用于來自 C54x CPU,則它不必滿足主機時序要求,該信號可以使用外部邏輯實現(xiàn)重新同步。通過寫 HPIC,主機可以中斷 C54x DSP,并且 HINT 輸出可以被 C54x DSP 用來中斷主機。使用 HCNTL0/1 輸入,主機可以指定對三個 HPI 寄存器的訪問:HPI 控制寄存器、HPI 地址寄存器或HPI 數(shù)據(jù)寄存器。HPI 控制寄存器 HPIC的 BOB 位決定第一個或第二個字節(jié)放置在 16 位字的高 8 位,而主機不必破壞兩個字節(jié)的訪問順序。是一個完整的 DSP 開發(fā)系統(tǒng)。如果在 INT2 引腳產(chǎn)生中斷信號,則選擇了 HPI 模式。自舉加載器使用各種控制信號(包括中斷信號、BIO、和 XF 引腳)以及片內(nèi)存儲器的數(shù)據(jù),來配置和控制自舉. . . .. . 學習好幫手過程。如果 MP/MC 設置為 0,則 C5402 被置于微計算機模式,并且自舉加載器復位時就開始啟動。如果 I\O 空間中沒有關鍵字,將會讀取數(shù)據(jù)空間 FFFFh 上的值作為引導表的起始地址,當沒有可用值時,將會檢測引導模式。上電復位后,C5402 檢測其 MP/MC 引腳,如果 MP/MC=“0”則進入 Bootloader 程序。只是在實現(xiàn)上,數(shù)據(jù)首先從 HOST 發(fā)到 HPID 中,然后根據(jù) HPIA指定的地址,HPID 中的數(shù)據(jù)再寫到片內(nèi) RAM 的地址中。而地址寄存器 HPIA 選. . . .. . 學習好幫手擇后,直接向它寫數(shù)據(jù)就可以了,但是要注意 MSB 和 LSB 的順序。HPI8 的使用是通過對 HPIA、HPIC 和 HPID 三個寄存器賦值實現(xiàn)的。低功耗,工作電源有 3V 和 (內(nèi)核),特別適合電池供電設備。單周期正規(guī)化及指數(shù)譯碼;具有先進的多總線結構,三條 16 位數(shù)據(jù)存儲器總線和一條程序存儲器總線;這種并行結構強大的集算術,邏輯和位操作,可以在一臺機器周期執(zhí)行的操作。關鍵詞 DSP /主機接口引導 /TMS320VC5402/處理器. . . .. . 學習好幫手TMS320VC5402 HOST INTERFACE DESIGN OF THE BOOTABSTRACTThis article mainly introduced the DSP TMS320VC5402 chip boot loading the implementation scheme of the host interface. In the design of the user program code in the host, after power on the DSP processor can pass the host interface will lead into the application of DSP program storage area, normal to enter the user code. Bootlooader is stabilized before they go out in the DSP chip ROM a program code, and its main function is in the power or reset to the user program from the external load to program memory (RAM) on chip RAM or extend, in order to achieve high speed running. Therefore, in this way can realize high speed running at a relatively low cost. Different types of DSP and its Bootlooader is different also. Keywords DSP,host interface,guide the TMS320VC5402,disposer . . . .. . 學習好幫手目 錄中文 摘要 .................................................I英文摘要 ................................................II1 TMS320VC5402 簡介 .......................................1 芯片介紹 ..........................................1 幾種引導裝載方法 ..................................32 系統(tǒng)硬件電路設計 .......................................4 HPI 自舉加載的過程 .................................43 系統(tǒng)的軟件設計 .........................................9 用戶初始化程序 ....................................9 主機通過 HPI 引導程序到目標 DSP....................11結束語 ..................................................12致 謝 .................................