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
  • Hi All,

    Yes Ulf Saß u r correct.I want to send data from mic. to my device.In C51 i have configured as

    SCON=0x50;
    TMOD |=0x20;
    TH1=0xFD;
    TR1=1;
    TI=1;

    for 9600-N-8-1 at 12MHz.

    My device communicate only on this setting - 9600 baud with NOPARITY 8 bit data and ONESTOPBIT.

    I have checked with Hyperterminal it is ok.I get the data on hyperterminal.
    When i send data from computer using VC++ prog. the microshows it correctly.But i can't read from micro. using same VC++ prog. to read.
    what might be the problem ?

    more after u r reply.....
    rutu

Reply
  • Hi All,

    Yes Ulf Saß u r correct.I want to send data from mic. to my device.In C51 i have configured as

    SCON=0x50;
    TMOD |=0x20;
    TH1=0xFD;
    TR1=1;
    TI=1;

    for 9600-N-8-1 at 12MHz.

    My device communicate only on this setting - 9600 baud with NOPARITY 8 bit data and ONESTOPBIT.

    I have checked with Hyperterminal it is ok.I get the data on hyperterminal.
    When i send data from computer using VC++ prog. the microshows it correctly.But i can't read from micro. using same VC++ prog. to read.
    what might be the problem ?

    more after u r reply.....
    rutu

Children