mcbsp interrupt program
- From: sbs108@xxxxxxx
- Date: 28 Apr 2006 00:50:13 -0700
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.
.
- Follow-Ups:
- Re: mcbsp interrupt program
- From: Noway2
- Re: mcbsp interrupt program
- Prev by Date: White noise reduction
- Next by Date: ezdspf2812 ADC to measure real value
- Previous by thread: White noise reduction
- Next by thread: Re: mcbsp interrupt program
- Index(es):