Baud 1200

From: terry (leonlai2k_at_yahoo.com)
Date: 11/29/04

  • Next message: CBFalconer: "Re: need help finding voice modem"
    Date: 28 Nov 2004 23:34:20 -0800
    
    

    Hi,

    I used ATMega16 UART to communicate with a target device which is of
    baud 1200 but failed. I then tried to communicate the UART with PC COM
    Port and terminal software. I found the communication is OK when the
    baud is from 115200 down to 2400. But straight characters appear when
    the baud rate turns to 1200.

    My baud setting function is:

    void uartSetBaudRate(u32 baudrate)
    {
      u16 bauddiv=F_CPU/baudrate/16L-1;
      outb(UBRRL, bauddiv);
      outb(UBRRH, bauddiv>>8);
    }

    Do anyone has my similar problem? The MCU clock speed is 7.3728MHz.

    Thanks!


  • Next message: CBFalconer: "Re: need help finding voice modem"

    Relevant Pages

    • Re: HP 50g Connection to Multimeter
      ... to lower your baud rate below 2400. ... and the multimeter) at 600 baud. ... As some multimeters are designed to communicate with a PC, ...
      (comp.sys.hp48)
    • Re: Baud 1200
      ... > I used ATMega16 UART to communicate with a target device which is of ... I then tried to communicate the UART with PC COM ... > the baud rate turns to 1200. ... the 8 least significant bits of the USART baud rate. ...
      (comp.arch.embedded)