Clarification on SPORT grouping behavior

I have read and re-read the section in the HRM about SPORT grouping and I still can't seem to get it to work.

Figure 22-13 shows 2 groups per DAI: Group 0 contains SPORT0/1 and Group 1 contains SPORT2/3.

Then the DAI_GBL_INT_EN register has bits like GRP0_SP2AINT_EN and GRP1_SP2AINT_EN, which makes it seem like it is possible to put the SPORT in whichever group you want, 0 or 1.

I want to group SPORT 1, 2, and 3 with a single interrupt. I can't seem to get that to happen. It seems like SPORT1/2 are fixed to Group 0, and SPORT 3/4 are fixed to Group 1. This makes it so you must use 2 interrupts, INTR_DAI0_GBL_SPORT_INT0 (for Group 0) and INTR_DAI0_GBL_SPORT_INT1 (for Group 1).

Is it just not possible to have 1 interrupt for all the SPORTs in the DAI? What is the deal with the group 0/1 assignment, and how does it work?

  • 0
    •  Analog Employees 
    on Dec 24, 2020 12:30 PM 2 months ago

    Hi,

    1) Regarding, "Is it just not possible to have 1 interrupt for all the SPORTs in the DAI? What is the deal with the group 0/1 assignment, and how does it work?"
    >> All the interrupts/triggers in a single group are ANDed and a single interrupt/trigger goes to SEC/TRU.
    To generate group interrupt/trigger, all the SPORTs in the corresponding group should be configured to generate interrupt (DMA_CFG.INT)/trigger (DMA_CFG.TRIG).
    The interrupts/triggers generated by the SPORTs in a group can either be used as a single group interrupt/trigger (enabled by the DAI_GBL_INT_EN register) or the individual SPORT DMA done interrupts/triggers.
    Please refer "Grouping of SPORTs" in chapter-22 from ADSP-2156x HRM at below.

    https://www.analog.com/media/en/dsp-documentation/processor-manuals/adsp-2156x_hwr.pdf

    The DAI0 contains SPORT0-3 and DAI1 contains SPORT4-7. All references to SPORT 0-3 in the context of DAI1 must be read as SPORT4-7. 7.

    2) Regarding, "I want to group SPORT 1, 2, and 3 with a single interrupt. I can't seem to get that to happen. It seems like SPORT1/2 are fixed to Group 0, and SPORT 3/4 are fixed to Group 1."
    >> Yes, SPORT 1,2 are fixed to group 0 and SPORT 3,4 fixed into group 1.

    Regards,
    Anand Selvaraj.