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
  • You might like to try getting something like this:
    www.hhdsoftware.com/.../serial-monitor-lite.html
    (many similar products are available - including free ones)

    That will let you monitor exactly what the PC software is sending to the display.
    That should help you to understand the protocol...

    You seem to have two problems here:

    1. Learning the 'C' programming language;

    2. Understanding the display protocol.

    I suggest that you don't try to tackle them both at the same time - lay one aside until you've mastered the other.

Reply
  • You might like to try getting something like this:
    www.hhdsoftware.com/.../serial-monitor-lite.html
    (many similar products are available - including free ones)

    That will let you monitor exactly what the PC software is sending to the display.
    That should help you to understand the protocol...

    You seem to have two problems here:

    1. Learning the 'C' programming language;

    2. Understanding the display protocol.

    I suggest that you don't try to tackle them both at the same time - lay one aside until you've mastered the other.

Children
No data