Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
When controlling SPI on a PIC an address is used, I follow this example from the Oshonsoft manual:
When connecting a 5110 module, which doesn't have addresses, how do I write an Oshonsoft program using one?
I have not studied the 5110 but I would have thought you need to somehow address a register with the SPI befor loading the command/data.???
I'm not sure, as I'm copying an existing program into Oshonsoft.
I tried various combinations and this works on the Oshonsoft Oscilloscope.
Checking your program it will not work as you expect, partly due to Osh.
Look at this alternative using Const, much tidier, also Osh is happy using names in Proc/Func
Run it twice, once as Write and another as Read
I have assumed an address method of 0x01, but as said, I have not studied the 5110