livewire_541
New Member
Hi all,
Lately I've been trying to send a bit stream (a byte actually) by dividing it into single bits, right shifting the byte and transmitting it only on one pin of the microcontroller(RB0), of course the bit duration/period is a 'waitms' or 'waitus'
statement.
On the other hand, the reciever (Nothing's wireless by the way, it's all wired)
left shifts the bits acquired (at RB0 of the receiver) and forms a variable (byte data type).
Problem is, even when I added sync pulses the result was the same: a completely different byte is received! not even the reverse of the original!!
so what's the big idea?
PS: I've attached the programs down below-open them with notepad
Lately I've been trying to send a bit stream (a byte actually) by dividing it into single bits, right shifting the byte and transmitting it only on one pin of the microcontroller(RB0), of course the bit duration/period is a 'waitms' or 'waitus'
statement.
On the other hand, the reciever (Nothing's wireless by the way, it's all wired)
left shifts the bits acquired (at RB0 of the receiver) and forms a variable (byte data type).
Problem is, even when I added sync pulses the result was the same: a completely different byte is received! not even the reverse of the original!!
so what's the big idea?
PS: I've attached the programs down below-open them with notepad