> I have the PCM version of the CCS compiler and i am having problems reading a > string through > the serial port and then converting this to a value eg. send "255" and convert > to 255 > anybody able to give an example, also anybody got sample programs for the CCS > compiler > apart from the ones it came with ! > I've always passed the bytes on to a host computer with functions to deal with ascii conversion. But there I used a function called asc() that would do the conversion for me. Otherwise you might be stuck specifying a const array of characters and doing a table lookup for each character, using the index for your number sorry..