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
  • According to Keil's baudrate calculator you can't do 9600 baud with timer 1 at 12MHz.
    While, you, indeed, can do it relatively precise with timer 2 - Why, Oh Why, does so many use these silly non-UART frequencies for their crystals? I honestly believe that 11.0592 is the most sold frequency, so it can not be a matter of avialability. If the original poster has taken a glance at Atmels s51 appnotes re UART, he would have seen that all specify 11.0592 crystal.

    Oh well, it is probably too much to ask that someone that is too lazy to spell the words out and instead writes stupid SMS would read something.

    Erik

Reply
  • According to Keil's baudrate calculator you can't do 9600 baud with timer 1 at 12MHz.
    While, you, indeed, can do it relatively precise with timer 2 - Why, Oh Why, does so many use these silly non-UART frequencies for their crystals? I honestly believe that 11.0592 is the most sold frequency, so it can not be a matter of avialability. If the original poster has taken a glance at Atmels s51 appnotes re UART, he would have seen that all specify 11.0592 crystal.

    Oh well, it is probably too much to ask that someone that is too lazy to spell the words out and instead writes stupid SMS would read something.

    Erik

Children