I've got to pass along a string of 32 bits to a PIC chip on a bus.
A '0' bit consists of:
keeping the data line low for 26 usec
going high for 12 usec
returning low
A '1' bit consists of:
keeping the data line low for 50 usec
going high for 12 usec
returning low
So I know the length of the stream, I know how to decode the bits. I'll be receiving the bits via serial input (bluetooth), need to decode, and output to another pin on the arduino.
Just need to figure out how to look at (read) the bits.
Are there any examples I can take a look at? Any suggestions?
Ok, it's an audio remote. I'm sending a bitstream from an Android APP via bluetooth to an Arduino. This ties in with the other audio modules / relays, each of these modules have PIC 16F913 chips on them (which respond to the bitstream).
So it's Android/bluetooth --> Arduino/bluetooth --> on data bus (which includes PIC 16F913 on each module).
merlin2049er:
Ok, it's an audio remote. I'm sending a bitstream from an Android APP via bluetooth to an Arduino. This ties in with the other audio modules / relays, each of these modules have PIC 16F913 chips on them (which respond to the bitstream).
So it's Android/bluetooth --> Arduino/bluetooth --> on data bus (which includes PIC 16F913 on each module).
If you had written this in Chinese characters it wouldn't be a lot less informative. To turn a concept into computer code requires a great deal of detailed step by step information and the specifications of any data streams that are already defined.