Post Go back to editing

Use ADSP-21469 SPORT Frame Sync for Miscellaneous Interrupt

Thread Summary

The user is trying to use ADSP-21469 SPORT Frame Sync (as DAC/Chip Select) to write to multiple DACs every 250us. The issue was that only the Timer1 interrupt was occurring, not the Misc DAIH interrupt. The solution involved reading the latch register in the DAI ISR and correcting the SRU routing to use MISCA instead of MISCB1. The user verified the solution with a scope and confirmed the firmware is working as expected.
AI Generated Content

Hi all,

I am trying to use ADSP-21469 SPORT Frame Sync (as DAC /Chip Select) for DSP to write to multiple DAC's every 250us.  I set the GP Timer1 to 250us. During each Timer1 interrupt, I need to generate 4 Frames Sync's (/Chip Select) for the Quad Channel DAC. I can't use the interrupt generated by SPORT0 TX because that interrupt happens before data transmission completes.

Question 1: Can I route the output of SPORT0_FS_O to 2 inputs as this?

SRU(SPORT0_FS_O, DAI_PB04_I);       /* DAI_P04 to SPORT0 FS (TFS0)   */
SRU(SPORT0_FS_O, MISCB1_I);          /* Frame1 (DAI_P04) to MISCB1   */

Question2: I enabled the Timer1 interrupt and the Misc DAIH interrupt, but only the Timer1 interrupt happens, not the Misc DAIH interrupt. Did I miss something in the setting?

I have attached the main file. No need to bother looking for the header file VP_version.h it's only for version control and book keeping.

Regards,

RRC

Parents
  • Hi,

    >>Question 1: Can I route the output of SPORT0_FS_O to 2 inputs as this?

    >>SRU(SPORT0_FS_O, DAI_PB04_I);       /* DAI_P04 to SPORT0 FS (TFS0)   */
    >>SRU(SPORT0_FS_O, MISCB1_I);          /* Frame1 (DAI_P04) to MISCB1   */

    MISCB1 is not part of the SRU2 Group inputs. The SPORT0_FS_O is not a source to this input. The sources to this input come from the DPI pins and the timer. You could use SPORT0_FS_O signal to source MISCA inputs which is part of the SRU group E.

    For details on the SRU group sources please refer to the hardware reference manual.

    >>Question2: I enabled the Timer1 interrupt and the Misc DAIH interrupt, but only the Timer1 interrupt happens, not the Misc DAIH interrupt. Did I miss >>something in the setting?

    Since the above routing is not valid you are seeing a Misc DAIH interrupt.

    Hope this information helps in solving the issue.

    Thanks,

    Divya

Reply
  • Hi,

    >>Question 1: Can I route the output of SPORT0_FS_O to 2 inputs as this?

    >>SRU(SPORT0_FS_O, DAI_PB04_I);       /* DAI_P04 to SPORT0 FS (TFS0)   */
    >>SRU(SPORT0_FS_O, MISCB1_I);          /* Frame1 (DAI_P04) to MISCB1   */

    MISCB1 is not part of the SRU2 Group inputs. The SPORT0_FS_O is not a source to this input. The sources to this input come from the DPI pins and the timer. You could use SPORT0_FS_O signal to source MISCA inputs which is part of the SRU group E.

    For details on the SRU group sources please refer to the hardware reference manual.

    >>Question2: I enabled the Timer1 interrupt and the Misc DAIH interrupt, but only the Timer1 interrupt happens, not the Misc DAIH interrupt. Did I miss >>something in the setting?

    Since the above routing is not valid you are seeing a Misc DAIH interrupt.

    Hope this information helps in solving the issue.

    Thanks,

    Divya

Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.