Working RC5/RC6 transmission of 1 byte, 3 integers
Moderator: Benj
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
Working RC5/RC6 transmission of 1 byte, 3 integers
The advantage is that each bit has its own synchronisation transition (0->1 or 1->0). That makes it easier compared to RS232.
The choice of 1 byte and 3 integers is due to an application of me. It can easily be changed in the program.
The bit period time in these examples is 2 x 255 usec. That is due to the fact that this is about the maximum speed with 433MHz transmission between the RC5-Tx (transmitter) and the RC5-Rx (Receiver). If both Tx and Rx are directly connected the bit speed can even be 2 x 100 usec.
With 2 startbits and 1 byte and 3 integers that takes minimal: 2+8+3x16= 58 bits or 58 x2x100usec = 11.2 msec.
The 433 MHZ transmitter has been described in Elektor September 2013 http://www.elektor.com/120049 or http://www.elektor.com/elektor-magazine ... er-2013-en. But I use the 16F1847 microchip in stead of the 16F628A.
Succes
Jan Lichtenbelt
- Attachments
-
- RC5_Rx_V16F1847.fcfx
- (31.12 KiB) Downloaded 207 times
-
- RC5_Tx_V16F1847.fcfx
- (14.84 KiB) Downloaded 223 times
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
Re: Working RC5/RC6 transmission of 1 byte, 3 integers
Improved file Rx
- Attachments
-
- RC5_Rx_V16F1847_V2.fcfx
- (31.17 KiB) Downloaded 235 times