Originally Posted by root
How are you communicating with the compas chip? (Sip?)
And what errors are you getting?
Do you have any tools like a logic analyser or "bus pirate" that you can use to see if the error is in the output of the compass chip or in the receiving by the pic? (Can you confirm that the pic is getting good data?)
I don't know what SIP is. I'm using Oshonsoft for programming.
The errors have been intermittent, sometimes I get READings, using a computer terminal.
I have tried a test using the connections as the image. As you can see, even with a 1K pullup, the PIC is pulling the Compass output down to '0'
The MOSI PIN TRIS is set to IN.
I've been on different forums, and tried many ideas. There have been lots of program/pcb checks. It appears that the SPI settings are being over ridden somewhere along the line.