DSPRelated.com
Forums

Texas DSP 2812 and McBSP

Started by Torgeir Jakobsen November 30, 2004
Hi all DSP experts :-)

I have a problem with the McBSP receive interrupt on the 2812 DSP from
Texas. Do anyone have working code on this DSP ?
I have done much the same as on the 5510 DSP where I did not have this
problem, so I do not understand why it is not working here ?

Thanks in advance.

Torgeir

--
Best regards
Torgeir Jakobsen
Development Engineer, Technology Department
Aanderaa Instruments AS
e-mail: torgeir.jakobsen@aanderaa.no
Phone: +47 55109977
Fax: +47 55109910


There are more things you need to enable to get interrupts on the 2812 than 
there are on the 5510.  Are you sure that you have enabled the PIE, set the 
proper bit in the PIEIER for the McBSP interrupt, acknowledged the PIE 
(PIEACK), set the corresponding IER bit, and cleared the INTM bit?

Also, are you sure that you have configured the McBSP to generate a receive 
interrupt?  Are you seeing the RRDY flag which indicates there is data in 
the McBSP to be read?

Brad

"Torgeir Jakobsen" <torgeir.jakobsen@aanderaa.no> wrote in message 
news:41acb09f$1@news.wineasy.se...
> Hi all DSP experts :-) > > I have a problem with the McBSP receive interrupt on the 2812 DSP from > Texas. Do anyone have working code on this DSP ? > I have done much the same as on the 5510 DSP where I did not have this > problem, so I do not understand why it is not working here ? > > Thanks in advance. > > Torgeir > > -- > Best regards > Torgeir Jakobsen > Development Engineer, Technology Department > Aanderaa Instruments AS > e-mail: torgeir.jakobsen@aanderaa.no > Phone: +47 55109977 > Fax: +47 55109910 > >
Thank you Brad,

I have done the things you describe:
- Enabled PIE
- Set PIEIER for McBSP receive interrupt
- Acknowledged the PIE
- Set IER
- Cleared INTM.

First it looked like RRDY was not set, but now the RRDY is set. I have also
enabled the transmit interrupt to see if this was working better.  I can see
that RRDY and XRDY is set but the PIEIFR register (and PIEACK) does not flag
any interrupt, even if McBSP is set to generate interrupt on RRDY and XRDY
and the PIEIER is set to enable both interrupts.
I am using the sample rate generator, and the clock and frame signals are
generated correctly (measured with oscilloscope).

Any suggestions ?


"Brad Griffis" <bradgriffis@hotmail.com> wrote in message
news:4m9rd.1094$nE7.772@newssvr17.news.prodigy.com...
> There are more things you need to enable to get interrupts on the 2812
than
> there are on the 5510. Are you sure that you have enabled the PIE, set
the
> proper bit in the PIEIER for the McBSP interrupt, acknowledged the PIE > (PIEACK), set the corresponding IER bit, and cleared the INTM bit? > > Also, are you sure that you have configured the McBSP to generate a
receive
> interrupt? Are you seeing the RRDY flag which indicates there is data in > the McBSP to be read? > > Brad > > "Torgeir Jakobsen" <torgeir.jakobsen@aanderaa.no> wrote in message > news:41acb09f$1@news.wineasy.se... > > Hi all DSP experts :-) > > > > I have a problem with the McBSP receive interrupt on the 2812 DSP from > > Texas. Do anyone have working code on this DSP ? > > I have done much the same as on the 5510 DSP where I did not have this > > problem, so I do not understand why it is not working here ? > > > > Thanks in advance. > > > > Torgeir > > > > -- > > Best regards > > Torgeir Jakobsen > > Development Engineer, Technology Department > > Aanderaa Instruments AS > > e-mail: torgeir.jakobsen@aanderaa.no > > Phone: +47 55109977 > > Fax: +47 55109910 > > > > > >