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.

RM57L843: MiBSpi DMA with interrupt.

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Hello,

I want to configure MibSpi with DMA in interrupt mode, so that when DMA receive buffer is filled with data mibspi module should raise an interrupt.

How can i do the following configuration in halcogen and if possible a example code will be helpful.

Thanks and Regards,

Shantanu S.

  • Hello,

    The interrupts available in multi-buffer mode are:

    • Transmission error interrupt

    • Receive overrun interrupt

    • TG suspended interrupt

    • TG completed interrupt

    For using MibSPI complete interrupt, please refer to the HALCoGen example: example_mibspi_trigger_tick.c

    You can use DMA interrupt. Each DMA channel can generate the following interrupts:

    • Frame transfer complete (FTC) interrupt: an interrupt is issued after the last element of a frame has been transferred.

    • Last frame transfer started (LFS) interrupt: an interrupt is issued before the first element of the last frame of a block transfer has started.

    • First half of block complete (HBC) interrupt: an interrupt is issued if more than half of the block is transferred.

    • Block transfer complete (BTC) interrupt: an interrupt is issued after the last element of the last frame has been transferred.

    The DMA block transfer complete interrupt can be enabled lie this: dmaEnableInterrupt(DMA_CH8, FTC, DMA_INTA); where DMA_CH8 is configured for MibSPI3 RX