apache79
Newbie level 6
Hi,
I am using the MC to accept and transmit the data serially. I have used port 1 as the dataport for lcd and 3 pins of port 2 as command lines for lcd. I am using the baud rate as 9600.
Now the problem is that whenever I send any ASCII codes from the computer to the MC or vice versa, the codes get changed.
For example,
for ascii codes 0 to 47 (decimal) the codes increments by 32. i.e 0 to 47 becomes, 32 to 79 (decimal)
but from 48 (decimal), the code gets incremented by 64. i.e 48 becomes 112, 49 becomes 113 n so on
Any help on the above matter will be highly appreciated,
Thank You
I am using the MC to accept and transmit the data serially. I have used port 1 as the dataport for lcd and 3 pins of port 2 as command lines for lcd. I am using the baud rate as 9600.
Now the problem is that whenever I send any ASCII codes from the computer to the MC or vice versa, the codes get changed.
For example,
for ascii codes 0 to 47 (decimal) the codes increments by 32. i.e 0 to 47 becomes, 32 to 79 (decimal)
but from 48 (decimal), the code gets incremented by 64. i.e 48 becomes 112, 49 becomes 113 n so on
Any help on the above matter will be highly appreciated,
Thank You