garg29
Advanced Member level 1
uart_gets
Hi friends, i'm just trying to do communication between 2-89S52 microcontrollers.
One is transmitting "HELLO" & other is receiving the same & displaying it on LCD(16x2). The transmitting point is OK as I have checked the result on Hyperterminal. Receiving end is also displaying "HELLO" but with a small problem, at the First instance the word "HELLO" is displayed properly but after that it's displayed as "HHELLO" i.e. character 'H' is displayed twice. In function "void uart_gets(char *s)" I tried putting a line "s--;" this displayed "ELLO" ('H' vanished) first time but "HELLO" (proper) continoulsy after that. below is the code.
Thanks everyone for giving time to read my problem.
Regards.
Hi friends, i'm just trying to do communication between 2-89S52 microcontrollers.
One is transmitting "HELLO" & other is receiving the same & displaying it on LCD(16x2). The transmitting point is OK as I have checked the result on Hyperterminal. Receiving end is also displaying "HELLO" but with a small problem, at the First instance the word "HELLO" is displayed properly but after that it's displayed as "HHELLO" i.e. character 'H' is displayed twice. In function "void uart_gets(char *s)" I tried putting a line "s--;" this displayed "ELLO" ('H' vanished) first time but "HELLO" (proper) continoulsy after that. below is the code.
Thanks everyone for giving time to read my problem.
Regards.