Less code usage. If for some reason you need Serin, it may hang if the device is not replying correctly. Hserin has timout and will save the day.
For your project it may not have any meaning, but...
Hello,
you're right
my assumption was that software or hardware control serial communication are the same
and one way or another I'll get the same result.
if I may ask in this project what...
if I reduce control values to 1 or two, then it works, but totally wrong data is being decoded.
CuriousOne Yesterday, 06:07I just tried this code, and it does not work:
TX:
Main:
FOR TxValue = 0 TO 255
Yes, X is word type, and it sometimes get values over 8 bits, but never 345.
I tried sending lower numbers, like 4 or 16 or whatever - they also got distorted.
I also tried like this:
...
Bhoomi Online is a digital land records portal launched by the Government of
Karnataka that allows people to easily access their land information online.
Through this platform, users can check...
Hello Ioannis,
good question,
when I design the PCB I used the PortB.5 with a 20Mhz crystal with bigger pcb foot print 46x17mm
then I decided to lower the parts count and the PCB foot print...
1. How can you be sure that the receiving PIC will start "listening" just before the sending PIC? Better use a start character on the sender and use this character as a WAIT one on the receiving PIC...
Ioannis - 28th September 2025, 22:13Thanks for posting your project.
But why not use the Hardware USART instead of the Software one?
Ioannis
Re: Can't reliably transfer over serial connection between two PICs
How about this code:
Ioannis Yesterday, 21:41x vart word
x=345
barka:
serout2 portc.3,84,["s",x]
pause 100
goto barka