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. |
|
TI's DSP/BIOS : McBSP --> HWI
Started by ●August 2, 2002
Reply by ●August 2, 20022002-08-02
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. > >_____________________________________ >Note: If you do a simple "reply" with your email client, only the author >of this message will receive your answer. You need to do a "reply all" if >you want your answer to be distributed to the entire group. > >_____________________________________ >About this discussion group: > >To Join: Send an email to > >To Post: Send an email to > >To Leave: Send an email to > >Archives: http://www.yahoogroups.com/group/c6x > >Other Groups: http://www.dsprelated.com >">http://docs.yahoo.com/info/terms/ |