Hi Rob
Great, I have taken out the selection and forced both to the low bitrate 
and it works. 
Thanks
regards
Hans

Op zondag 19 juni 2022 om 08:18:20 UTC+2 schreef [email protected]:

> 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].
> 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/38f54ae9-03a5-4418-97a2-2c0ae8072eb0n%40googlegroups.com.

Reply via email to