Joined: 26 Nov 2003 Posts: 151 Location: Grayson, GA
SPI ISR
Posted: Sun Apr 13, 2008 8:39 pm
I am converting from I2C PIC Master/PIC Slave communications to SPI PIC Master/PIC Slave because I need more speed in the transfers than I2C.
I used the I2C ISR in the example files and that works well. However, when I look at the Ex_SPI_Slave.c example it does not use an interrupt routine. Is there an example of SPI ISR in another file or can I just modify the I2C routine and use the spi_data_is_in and instruction type being sent instead of i2c_isr_state?
Maybe if I use the interrupt I won't even need to monitor spi_data_is_in?
Joined: 26 Nov 2003 Posts: 151 Location: Grayson, GA
Posted: Mon Apr 14, 2008 6:24 am
Exactly what I was looking for. I did a search but never saw that particular post. Thanks again.
I will be using HW SPI on both ends of the link and using the Slave Select method to alert the slave of incoming.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum