This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sending data to serial port

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

Parents
  • No, but you could provide a link to it.

    But it certainly sounds like you should lay this aside for a while, and first spend some time learning the basics of 'C', and then then specifics of Keil C51 for the 8051.

    You need to lay the foundations before you start building!

Reply
  • No, but you could provide a link to it.

    But it certainly sounds like you should lay this aside for a while, and first spend some time learning the basics of 'C', and then then specifics of Keil C51 for the 8051.

    You need to lay the foundations before you start building!

Children