This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can I use McASP Frame Sync to drive PRD clock?

Guru 15580 points

I would like to use the receive frame sync interrupt generated by the McASP as the hi res clock signal that drives the PRD function (ie, the PRD counts the number of audio samples received from my codec). Can this be done? How would I go about setting this up in bios v5?

Thx,

MikeH

 

  • Mike,

     

         Section 4.10 of the DSP/BIOS 5 User's Guide specifies that the PRD can be based on I/O Availability or another event as well as the real time clock, as well as how to set up a Period object to not utilize the RTC. I don't have any expereience doing so, but it looks like you'll have to call PRD_tick in an ISR for every sample you get from the codec.

       I don't think there is an interrupt for every AHCLKX/R count, but I know there is one for a Frame Sync. You can probably utilize the ISR for the Frame Sync to call the PRD_Tick to update the system clock.

  • Drew,

    Thanks for the pointer. And yes, there is an interrupt for frame sync that can be used.

    Thx,

    MikeH