SPI slave tx software buffer - interrupt when done?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

When using the SPI slave tx software buffer in the API, how do I get an interrupt when a transfer is complete?

I.e. not when the software buffer has been transferred into the FIFO, but when the last byte of the transfer placed in the soft buffer has started to come out of the TX pin.

0 Likes
1 Solution
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

Hi,

Please navigate to the "Advanced" tab of SPI configuration window and enable interrupts according to your application.

If you require an interrupt to be generated when a transfer is complete, you could enable the following interrupts:

1. Interrupt on SPI done

2. Interrupt on Tx FIFO Empty

You can also refer to component datasheet, available at http://www.cypress.com/file/185846/download (Page 9)

Thanks,

Shanmathi

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

Modifying the SPIS DMA example to do the same would also work for me.

0 Likes
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

Hi,

Please navigate to the "Advanced" tab of SPI configuration window and enable interrupts according to your application.

If you require an interrupt to be generated when a transfer is complete, you could enable the following interrupts:

1. Interrupt on SPI done

2. Interrupt on Tx FIFO Empty

You can also refer to component datasheet, available at http://www.cypress.com/file/185846/download (Page 9)

Thanks,

Shanmathi

0 Likes

I am doing the same thing, but where does the interrupt for the SPI vector to, I expected to see an SPI_Int.c listing, but did not?

0 Likes

Never mind, found it

0 Likes