I am building firmware for this pic to interface it with a Vector 2VXe compass module. The datasheet states the basic Datagram Structure to be
Sync Flag
0xAA
Frame Type
0xXX (example 0x01)
Terminator
0x00
If I am using pbp and the shiftin(out) commands, how exatcly do I format the data? Do I send the bit representation of the hex (example: 170 for 0xAA), or could I simply shiftin(out) a variable that contains a string like "0xAA"?
I have a rough draft that I threw up in a couple of days, and now I am going back to fix the areas that I needed more information on. Could I post my code? Its about 700 lines long.
Bookmarks