SPI Master / SPI Slave via PIC

Jump To:
The Theory
           With a few samples of how to perform SPI reads and writes under our belt, I'm going to introduce the simple and straight forward way that we will tell our SPI slave to output to the LED port on the PIC.

A Simple SPI Write

           Since SPI is a very flexibile protocol, that means there is room for us to design and use it however we like. So I figured, why not make things easier for you the learner! In my method of communicating PIC to PIC, 8 bits of data are sent directly to the SPI slave. These 8 bits will be the count value to be displayed on the LED output port. The main difference between this simple write and the previous theoretical SPI write is that no address is used. Basically, there is only 1 address in our SPI slave device, and we will constantly be refreshing it.



;