serial data to PIC

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?

Just need to figure out how to look at (read) the bits.

On the PIC, right?

Perhaps they could help you at the Ford dealer.

Just need to figure out how to look at (read) the bits.

bitRead?

Ok thanks. Should I process each bit as it arrives, or wait until I get the 44 bits in the stream and then process the stream?

merlin2049er:
Ok thanks. Should I process each bit as it arrives, or wait until I get the 44 bits in the stream and then process the stream?

Doesn't that depend on what your project requires - which you haven't told us.

Is this data flowing from an Arduino to a PIC or from a PIC to an Arduino?

...R

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.

...R