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.

RM46L852: How are triggered mibspiHighLevelInterrupt and mibspiLowLevelInterrrupt ?

Part Number: RM46L852

Hello everyone !

I'm using a launchlx2-rm46 board as SPI master and a custom board as SPI slave.

I'm using the standard SPI mode for both and the polling mode for the master and the interrupt mode for the slave.

When I use spiSendAndGetData on the slave to receive and transmit a frame of three bytes I've two mibSpi interrupt gererated (Transmit Buffer Empty Interrupt) just after the call of the function without sending any data from the master,  Is that normal ?

So I'm wondering what does trigger the mibSpi interrupts ?

Best Regards,

Fabian

  • When I use spiSendAndGetData on the slave to receive and transmit a frame of three bytes I've two mibSpi interrupt gererated (Transmit Buffer Empty Interrupt) just after the call of the function without sending any data from the master,  Is that normal ?

    It is correct. The transmit empty interrupt is generated after spiInit() and TX/RX interrupt are enabled since the TXBUFF is empty. The next transmit empty interrupt is generated when a word is copied to the shift register either directly from SPIDAT0/SPIDAT1 or from the TXBUF register.

    Receive complete interrupt is generated when a word is received and copied into the buffer register (SPIBUF).