freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

dsp實(shí)驗(yàn)報(bào)告(參考版)

2024-10-13 16:03本頁面
  

【正文】 //初始化LED和DIPDSK6416。六.源代碼及注釋include include “” include “” include “” void main(void){printf(“Hello World!n”)。然后進(jìn)行調(diào)試,設(shè)置斷點(diǎn)。在工程中運(yùn)行“NewTarget Configuration File”新建配置文件。(1)添加源代碼(2)配置CSL庫將C6000的CSL庫,存在本地PC機(jī)硬盤上,我們hello world工程的代碼路徑為C:ticsl。(3)接下來是設(shè)置工程屬性,在“Device Variant”下拉欄中選擇“Generic devices Generic C64xx Device”,“Device Endianness”選擇little,其余保持默認(rèn)值。(1)打開ccs后點(diǎn)擊菜單中的“FileNewProject”,選擇“CCS project”,然后進(jìn)入下一個(gè)頁面進(jìn)行工程的命名。(1)實(shí)現(xiàn)基本功能且不出現(xiàn)任何錯(cuò)誤(2)基于原理實(shí)現(xiàn)多功能的擴(kuò)展四.組內(nèi)分工劉杰程序代碼的編寫與調(diào)試劉燦建立工程以及目標(biāo)系統(tǒng)的配置五.實(shí)驗(yàn)內(nèi)容及流程這次實(shí)驗(yàn)內(nèi)容是顯示hello world和控制LED燈的閃爍。三.實(shí)驗(yàn)任務(wù)及要求(1)在控制臺中顯示Hello World運(yùn)行程序后,在控制臺顯示Hello World(2)控制LED燈閃爍FTP給出一個(gè)LED的程序模板,可以控制LED 0的閃爍。通過做實(shí)驗(yàn),把學(xué)習(xí)的知識利用起來,也對這門課程更加有興趣了。,對TMS320F2812x DSP軟件仿真及調(diào)試有了初步的了解與認(rèn)識,因?yàn)樽鰧?shí)驗(yàn)的時(shí)候都是按照實(shí)驗(yàn)指導(dǎo)書按部就班的,與真正的理解和掌握還是有些距離的。如果不重新加載,那么修改執(zhí)行程序后,其結(jié)果將不會改變。,顯示圖形出現(xiàn)問題,不能顯示,后來在Graph Title 把Input的大寫改為input,在對volume進(jìn)行編譯執(zhí)行后,就可以看到顯示的正弦波圖形了。如果按F10執(zhí)行程序,則程序在mian主函數(shù)中運(yùn)行,如果按F11,則程序進(jìn)入write_buffe函數(shù)內(nèi)部的程序運(yùn)行。,無需連接板卡和仿真器等硬件。但是一般無法構(gòu)造DSP中的外設(shè),所以軟件仿真通常用于調(diào)試純軟件算法和進(jìn)行效率分析等。設(shè)置好的配置中只能有一項(xiàng)。,不是按實(shí)驗(yàn)書上的型號選擇,而是應(yīng)該按照實(shí)驗(yàn)設(shè)備上的型號去添加。=0x0。// Relinquish SCI from Reset{=0xE040。}// Initalize the SCI FIFO void scia_fifo_init() =1。} // Transmit a character from the SCI39。=0x0001。 =1。// 1 stop bit, No loopback// No parity,8 char bits,// async mode, idleline protocol =0x0003。)。//asm(“ESTOP0”)。scia_loopback_init()。// Disable loop back =0x0023。if(LoopCount==256){LoopCount=0。= 0x00FF。// Move to the next character and repeat the testSendChar++。while(!=1){ } // wait for XRDY =1 for empty state// Check received characterReceivedChar = 。// Step Characters forever starting with 0x00 and going through // sending each, check the recieve buffer for the correct value for(。// Initialize the SCI FIFOscia_loopback_init()。ErrorCount = 0。// Step all the Device Peripherals to a known state:// This function is found in // InitPeripherals()。PIE is not used for this example// Initialize the PIE Vector Table To a Known State:// This function is found in .// This function populates the PIE vector table with pointers// to the shell ISR functions found in ()。IFR = 0x0000。// Step PIE vector table:// The PIE vector table is initialized with pointers to shell Interrupt// Service Routines(ISR).The shell routines are found in .// Insert user specific ISR code in the appropriate shell ISR routine in// the file.// Disable and clear all CPU interrupts:DINT。// Disable deadband = 0xA600。// Compare action that takes place// on a cmpare event// output pin 1 CMPR1active low// output pin 3 CMPR2active low// output pin 5 CMPR3active low = 0x0666。// = 0x3C00。// Polarity of GP Timer 2 Compare = Active high = 2。// Setup T1PWM and T2PWM// Drive T1/T2 PWM by pare logic = 1。// Timer2 pare = 0x0000。// Initalize EVA Timer2 = 0x0FFF。// Timer1 pare = 0x0000。} } void init_eva(){ // EVA Configure T1PWM, T2PWM, PWM1PWM6 // Initalize the timers// Initalize EVA Timer1 = 0xFFFF。j 10。i 1000。}} } void delay_loop(){shorti,j。 = i。while(1){for(i=0。// For this example, init the Xintf // Step specific code, enable interrupts:init_eva()。// Step all the Device Peripherals: // This function is found in // InitPeripherals()。IFR = 0x0000。// Initialize the PIE control registers to their default state.// The default state is all PIE interrupts disabled and flags // are cleared.// This function is found in the ()。// EVB PWM 712 pinsEDIS。// Enable PWM pins = 0x00FF。s default state.// InitGpio()。EDIS。// Step System Control: // PLL, WatchDog, enable Peripheral Clocks // This example function is found in the ()。void delay_loop()。附:實(shí)驗(yàn)程序:include “include/”// DSP281x Headerfile Include File include “include/”// DSP281x Examples Include File // Prototype statements for functions found within this init_eva(void)。三、實(shí)驗(yàn)原理電機(jī)模塊的原理圖如下四、實(shí)驗(yàn)步驟;(),編譯,下載程序到DSP; ,用觀察直流電機(jī)運(yùn)行方向和速度的變化;五、實(shí)驗(yàn)心得體會通過本次實(shí)驗(yàn),認(rèn)識了PWM的使用方法,通過親身體驗(yàn),初步掌握了2812對PWM的控制使用方法,加深了對PWM的認(rèn)識。}// Set GPIO input qualifier values //============================= // No more.//=============================龍巖學(xué)院實(shí) 驗(yàn) 報(bào) 告班級07電本(1)班學(xué)號2007050344 姓名 楊寶輝同組人 獨(dú)立實(shí)驗(yàn)日期201061室溫大氣壓成 績直流電機(jī)控制實(shí)驗(yàn)一、實(shí)驗(yàn)?zāi)康?、實(shí)驗(yàn)設(shè)備 ; ;要求學(xué)生掌握2812 PWM的使用方法; 掌握2812對直流電機(jī)的控制。=var3。=var3。=var2。=var2。// GPIO PORTs as output// GPIO DIR select GPIOs as output=var2。=var1。=var1。// sets GPIO Muxs as I/Os// sets GPIO DIR as outputs// sets the Input qualifier values=var1。EALLOW。var2= 0xFFFF。Uint16 var3。=codetab[i]。} } void Gpio_select(void){Uint16 var1。j 10。i 1000。}}} } void delay_loop(){shorti,j。i{Reg06=0x00。}}for(j=0。i{Reg06=0x00。while(1){for(j=0。// For this example, init the Xintf // Step specific code, enable interrupts:=0。// Step all the Device Peripherals: // This function is found in // InitPeripherals()。IFR = 0x0000。// Initialize the PIE control registers to their default state.// The default state is all PIE interrupts disabled and flags // are cleared.// This function is found in the ()。// Skipped for this example // For this example use the following configuration:Gpio_select()。// Step GPIO:// This example function is found in the file and // illustrates how to set the GPIO to it39。// Specific clock setting for this example:EALLOW。main(){short i,j。void Gpio_select(void)。本次實(shí)驗(yàn)的主要目的是通過2812對步進(jìn)機(jī)的的控制,開始對于程序的設(shè)計(jì)沒有頭緒,通過查閱步進(jìn)機(jī)控制的原理,結(jié)合有關(guān)資料才正式設(shè)計(jì)出程序,基本掌握了2812對步進(jìn)機(jī)的控制,也更加熟悉了對DSP程序的設(shè)計(jì),受益匪淺。輸入引腳對應(yīng)讀操作;輸出引腳對應(yīng)寫操作。為1表示是輸出引腳,否則是輸入引腳。對于I/O口有二類寄存器:,使用方法如下:首先確定引腳的功能,即IO控制器寄存器,為1表示引腳功能是原模塊的功能,否則為IO功能。步進(jìn)電機(jī)的控制問題可以總結(jié)為兩點(diǎn): ;。}// Set GPIO input qualifier values //============================= // No more.//=============================龍巖學(xué)院實(shí) 驗(yàn) 報(bào) 告班級07電本(1)班學(xué)號2007050344 姓名 楊寶輝同組人獨(dú)立實(shí)驗(yàn)日期20100527室溫大氣壓成 績步進(jìn)電機(jī)控制實(shí)驗(yàn)一、實(shí)驗(yàn)?zāi)康?、實(shí)驗(yàn)設(shè)備; (插上電機(jī)模塊);; 。=var3。=var3。=var2。=var2。// GPIO PORTs as output// GPIO DIR select GPIOs as output=var2。
點(diǎn)擊復(fù)制文檔內(nèi)容
合同協(xié)議相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1