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

Computer COM port & microcontroller COM port ??

Hi all,

I have written a program in VC++ to write a char array of 13 bytes on COM port using 9600-N-8-1 parameters.

when i send this to my target device it responds, but same program when i send through 89S51 my device does not respond.To set 9600-N-8-1 i have written 0xFD value.

Can anyone no the reason for such strange behaviour.

Please let me know....

rutu.

Parents
  • If I understood, you try to send data from a 89S51 to your target device?
    You should check, if the 89S51 is sending (for example connect it to a PC with a terminal programm like Hyperterminal or Docklight, check with a scope).
    For RS232 debugging I always use Docklight. There is a free eva-version on the web.

Reply
  • If I understood, you try to send data from a 89S51 to your target device?
    You should check, if the 89S51 is sending (for example connect it to a PC with a terminal programm like Hyperterminal or Docklight, check with a scope).
    For RS232 debugging I always use Docklight. There is a free eva-version on the web.

Children