two thoughts
1 investigate why rx line is being held low and stop it from happening
2 change strategy and use the usart
two thoughts
1 investigate why rx line is being held low and stop it from happening
2 change strategy and use the usart
Warning I'm not a teacher
Thanks Richard,
I am going to try to consider all the possible failures of the radio receiver.
Do you mean to use the HW UART pin RC7 ?
The point is that i am using two UART in this project.
Any other possibilty to consider ?
Thanks again for your interest on the matter.
regards
Ambro
If you can use another PIC there are some with 2 uarts. Either 16F or 18F like these:
16F19175
16F19176
18F43K22
18F44K22
18F45K22
and many other pin compatible with your chip.
Ioannis
yes , you did not indicate the uart was already in useDo you mean to use the HW UART pin RC7 ?
as ionis says a better chip with 2 eusartsAny other possibilty to consider ?
or
check pin status before using serin
or
write your own serin routine that can detect a permanent spacing condition
Warning I'm not a teacher
I have to ask, What is the serial input port connected to? Does the receiver have a CMOS output meaning it can sink and source voltage for the input pin? If it is an open collector output from the receiver then I would connect a pullup resistor of about 10K ohms from +5 to the input pin of the micro. I have never had issues with the SERIN command if used with a pullup resistor.
Dave Purola,
N8NTA
EN82fn
Thanks very much for all the suggestions received.
I did solve the problem by checking the pin state before launch SERIN2: it is working now.
All the best to all of you,
regards
Bookmarks