Thanks for the response. The link you gave me seems to be focused on opening COM ports in Windows. What I'm looking for is help on sending raw hex (like 0xFE) in C using a microcontroller. I have the micro connected to the LCD and it's displaying text, but I'm not sure of the best way to send hex commands in C. I thought using a printf statement with %X would do the trick, but it just prints the characters as text on the LCD.
On page 149 of the ATmega16 datasheet, there is a good example of transmitting data (hex data). I am not sure if there are any built-in functions in the software/compiler you are using; but the example on the datasheet is generic and works down to the register levels, so there is a small chance of getting it wrong.
Best Regards,
Raquel Malinis
Design and Development
Matrix Orbital