Hi Hans, I could not see something wrong in the code, except that the bitrate calculation is not correct because your PIC runs at 4 MHz instead of 8 MHz but that would not be a problem since it is the same for the transmitter and the receiver.
So what is not working? Did you try to connect the output of the transmitter directly to the input of the receiver to test if that works (so without an RF module)? Another question. This sample program assumes that the transmitter and receiver have an input to select a high or low bitrate. Since you disabled the weak pull-up in your program (your PIC does not have this on all pins) these pins are floating so it is not sure what is selected as bitrate. It could then happen that the transmitter is using a high bitrate and the receiver a low bitrate (or the other way around or even a random behaviour) and that will not work. So my suggestion is to use pull-up resistors on the input pin or at least connect them to ground or VCC and selecting the same bitrate on both sides. Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens hans <[email protected]> Verzonden: zaterdag 18 juni 2022 18:46 Aan: jallib <[email protected]> Onderwerp: [jallib] 12F617_virtual_wire_transmitter/receiverrework for a 16F648a Hello all, Here I am again. I have tried to adapt the example program : 12F617_virtual_wire_transmitter/receiver for a 16F648a. Even though the compilation doesn't throw any errors, the case doesn't work. Do any of you have the time and inclination to take a look at it? Thanks again for the umpteenth time. Hans -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/8fa787a0-5cb5-4951-8467-76fe8ed5c891n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/8fa787a0-5cb5-4951-8467-76fe8ed5c891n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/GVXP195MB163713D93233F54A68D57A9CE6B19%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.
