Skip to main content
ilkerguruz
Associate
January 25, 2011
Question

300 baud

  • January 25, 2011
  • 3 replies
  • 744 views
Posted on January 25, 2011 at 14:38

300 baud

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 14:22

    Try using a USART on APB1, and have APB1 running at 18 MHz (ie 72 / 4)

    BRR = 18000000 / 300; // 60000
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    damh
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:22

    Calculate and compare ;)

    32 bit value would not fit in 16 bit ;)

    ilkerguruz
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 14:22

    hi,

    Everyone

    PLLMULL=PLLSRC*2

    PLLXTPRE=HES/2

    //main

    USART1->BRR=((unsigned int)(12000000/(16*300)))<<4;

    //it is work :)