SPI IP remains the same across F28 and F29 devices.
- In F29, the SPI peripheral generates level interrupts, which should be cleared in ISR to avoid generating false pending interrupt on clear edge. The ISR flow follows:
ISR functionality
- Peripheral interrupt clear (SPI_clearInterruptStatus)
- Wait for peripheral interrupt clear : Poll for SPI interrupt status flag (or) Insert NOP (~7)
- PIPE interrupt clear (Interrupt_clearFlag)
- Wait for PIPE interrupt clear : Insert NOP (~7)
Return from ISR
- Note
- In F28 devices, the SPI is clocked by LSPCLK. In F29 devices, the module is directly clocked by SYSCLK. The prescalers used for baud rate configuration need to be updated accordingly.
Driverlib API mapping
F28 Function | F29 Function | Comments |
SPI_setConfig | SPI_setConfig | The parameter lspclkHz is replaced with sysclkHz. The macro DEVICE_SYSCLK_FREQ can be used. |