PRINT performs a conversion automatically. So if you do a PRINT numvar , it will convert the numeric value of numvar into ASCII and then send the ASCII data as if you had used Str().
So this code:
Sendvalue = Str(i) 'give a value to send
Print Sendvalue 'send value
can be done as : print I
for the odd chars : try to run the code without adding info to the display. maybe the lcd is picking up noise.
when the sender does not send (power off) the lcd will be blank?
does the program resets?
you need to know if the odd character is actually received or not. you could show the length of the received data on the lcd to check that.
the best is to have a micro with 2 hw ports, or by using 1 SW UART for sending some debug info to a serial port.
but you could also make a proteus simulation with the 2 projects running in 1 simulation.
↧