Other Parts Discussed in Thread: SPRC097
I've been looking around for example code and/or documentation for the SPI on the 2812 using interrupts. I already downloaded the SPRU059 SPI reference guide. It has all of the facts about the SPI but seems sort of sparce about describing how is the best way to create a driver for the SPI. It seems like there should be more about the mechanism that disables the SPISTE line and what makes the clock continue until all of the message is received from a slave device, stuff like that. I also downloaded the SPRC097.zip V111 example code but the loopback examples do not really show elegant solutions. I might be dense but I always have this probelm with TI documentation; when I use other devices like Analog Devices I do not spend as much time stumbling around. Also should mention I am using the DSP/BIOS but for the SPI this probably doesn't make a lot of difference.
I've got the SPI working OK but I feel like the way I wrote it is not the best way. Looking for more example code I can play around with and to see what others did in the interrupts and how they launched the transmitter isr.