What am I doing wrong?
Posted: Sun Nov 23, 2014 6:40 pm
Hi. Just trying to get SPI working between a pic18f46k20 and a mcp23s17. Right now it's just a simple test program but I just can't get anything to work. I had tried a test program from a forum post on here that was for Flowcode v5 but it didn't work either. The program I'm currently fiddling with is structurally modeled after that one. I've tried extrapolating information out of c code examples but that hasn't helped. I know the hardware is functional because I can program the chip with a demo c program and it works but I don't know enough about programming in c yet to import that functionality into Flowcode so I can use it for the rest of the project. Can anyone lend me a hand?
the datasheet for the mcp23s17 is:
http://ww1.microchip.com/downloads/en/D ... 21952b.pdf
My Flowcode is:
the datasheet for the mcp23s17 is:
http://ww1.microchip.com/downloads/en/D ... 21952b.pdf
My Flowcode is: