I am interfacing an led with via serial port. I have set up the serial port already.
I have a display with these specification parameters: baudrate:2400 data:8 bits end code:1bit
I am trying to display the test code which comes in the following format: "10"+"01H"+"0FFH"
I tried printf but didn't work: printf("10"+"0x01"+"0x0FF"); Any suggestions??
10x
My guess is that you want to send the character '1' followed by the character '0' followed by the hexadecimal value 0x01, followed by the hexadecimal value 0xff. Just remember that you must check that the UART is ready for more characters before writing a character to SBUF.