This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
sam22 said:Can anyone tell me how do i convert the characters i receive via serial port on board to their integer values. After that how can i display it. I tried it on LCDMEM[3], but all the segments were glowing.
Typically, the characters received via a serial port from something like a PC using HyperTerminal, etc. are in ASCII format as an ASCII string. For example, the value 1234 would be a string '1234' sent via the serial port. This is a null terminated string (ie. 5 characters in reality).
You can use the atoi() function defined in stdlib.h to convert from a string to an integer.
At that point, you will need to convert this integer value into what format is required by the LCD interface.
**Attention** This is a public forum