Search the Community
Showing results for tags 'SPI Example Code Working'.
Found 1 result
OK. I have banged on this for many hours, but I finally have not only a working master and slave, but I have them talking back and forth to one another. I could not find a decent example that didn't use a bunch of built in routines that don't let me know what's really going on. SO. Below are the codes for the master and slave along with the hex files and the schematic I used to make this work. The CPP files can be copies directly into a stand alone project and should compile withouit any trouble. I hope this helps someone else struggling to learn how SPI works. 18F4520-SPI-Master.cpp 18F4520-SPI-Slave.cpp SPI-Schematic-Working.pdf 18F4520-SPI-Master.hex.txt 18F4520-SPI-Slave.hex.txt