hey,all.I want to using the MCBSP interrupt to program.but i met some troubles.I puzzled about the dsp/bios interrupt program. I hope someone can give me some suggestions about my trouble. thanks in advance. the program follows: #include <std.h> #include "ex3cfg.h" #include <csl_mcbsp.h> extern MCBSP_Handle hMcbsp0; extern MCBSP_Config mcbspCfg0; Void main() { CSL_init(); CSL_cfgInit(); MCBSP_start(hMcbsp0,MCBSP_RCV_START,0x0030); LOG_printf(&trace,"hello,sbs"); return; } Void audio() { Int in_data,out_data; while(!MCBSP_rrdy(hMcbsp0)); in_data=MCBSP_read16(hMcbsp0); out_data=in_data&0xfffe; while(!MCBSP_xrdy(hMcbsp0)); MCBSP_write16(hMcbsp0,out_data); } i use the MCBSP0,and set the HWI4 using the dsp/bios configration. the complile is ok,but the loaded program in the board is nothing.
mcbsp interrupt program
Started by ●April 28, 2006
Reply by ●April 28, 20062006-04-28
sbs108@163.com wrote:> hey,all.I want to using the MCBSP interrupt to program.but i met some > troubles.I puzzled about the dsp/bios interrupt program. I hope someone > can give me some suggestions about my trouble. > thanks in advance. > the program follows:< snip>> i use the MCBSP0,and set the HWI4 using the dsp/bios configration. > the complile is ok,but the loaded program in the board is nothing.Getting interrupts to work with the DSP/BIOS can be a little bit tricky. There is a sample application on TI's website that may be of help. I believe it is titled something along the lines of "running applications from flash memory". While the app note isn't necessarilly what you are after, it does provide both a bios and non bios working example of using interrupts. One thing I did notice, however, is that you stated that you used HWI14. At the very bottom of the BIOS configuration is a a section for configuring PIE Block interrupts. Try using those instead.