Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).
|
DSPers, I am working on McBSP to receive data, and map it to HWI (already use dispatcher to be able to use HWI function that was written in C), so that when McBSP interrupt, it will do the function specified in HWI. But when run, nothing happened. I would like to ask that : 1.Am I right that connect McBSP's interrupt to HWI ? 2.In main(), I wrote MCBSP_enableRcv(hMcbsp0); Is this enough ? 3.In HWI interrupt, I wrote interrupt void MyMcBSP0_Test (void) { a = MCBSP_read(hMcbsp0);} Is this enough ? Thanks In Advance, TR. |
|
|
|
You can use the McBSP to generate an HWI. That is certainly an acceptable approach. That said, I would strongly recommend that you hook up a DMA channel to the McBSP and use it to process blocks at a time. You will get much more efficiency out of the DSP that way. Andrew E. At 10:53 PM 8/1/2002 -0700, Thanawach Reungnava wrote: >DSPers, > I am working on McBSP to receive data, and map it to >HWI (already >use dispatcher to be able to use HWI function that was >written in C), >so that when McBSP interrupt, it will do the function >specified in >HWI. But when run, nothing happened. I would like to >ask that : >1.Am I right that connect McBSP's interrupt to HWI ? >2.In main(), I wrote > MCBSP_enableRcv(hMcbsp0); >Is this enough ? >3.In HWI interrupt, I wrote >interrupt void MyMcBSP0_Test (void) { > a = MCBSP_read(hMcbsp0);} >Is this enough ? > Thanks In Advance, > TR. > >_____________________________________ |