MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups

    How can i define daud rate in avr microcontrollers ?

    General Discussion
    2
    2
    106
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Richu Bini last edited by

      while learning the USART communication in avr setting baud rate part seems little confusing to me .

      There are two registers for setting baud rate UBRROH AND UBBRROL
      How Can i use these registers...?

      1 Reply Last reply Reply Quote 0
      • salmanfaris
        salmanfaris last edited by

        Hi @Richu-Bini, The Uart Baud Rate Register (UBRR) is used to set the clock for the UART shift registers and For standard crystal and resonator frequencies, the most commonly used baud rates for asynchronous operation can be generated by using the UBRR settings provided by the AVR Datasheet: AVR306: Using the AVR USART on tinyAVR and megaAVR devices

        And you can find the equation from the datasheet to calculate the UBRR values depends on the clock source it has.

        8422ea95-2844-483c-8e41-acab03c9ec41-image.png more details at the AVR306: Using the AVR USART on tinyAVR and
        megaAVR devices

        alt text src: http://www.avrbeginners.net/architecture/uart/uart.html#baud_generator

        resource:

        • https://cache.amobbs.com/bbs_upload782111/files_22/ourdev_508497.html
        • http://www.avrbeginners.net/architecture/uart/uart.html#baud_generator
        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        Recent Posts

        • Hi @Vipin-I-V ,

          This seems to be an interesting project.

          Please share the development here...

          I was thinking of something similar, but not for gaming. Won't it be cool to have the Ctrl, Cmd & Alt keys as pedals? Please share your thoughts & insights.

          • read more
        • Hi @mkgrmAbhinand ,

          Did your issue resolve?

          • read more
        • @mkgrmabhinand Hi, It Looks like you didn't install the NodeJS on your computer, or didn't add the PATH correctly in the environment variables.

          Could you confirm that you installed the Node JS in your computer from the .exe or .msi installation files?

          If not and if you want to run Node-RED, you need to install recommended NodeJS version 14.x and you can download the version here .

          • read more
        • 2022-10-09 (1).png

          • read more
        • Thanks for sharing @rafitc99 . Glad to know that it was solved.

          • read more
        By MakerGram | A XiStart Initiative | Built with ♥ NodeBB
        Copyright © 2021 MakerGram, All rights reserved.
        Privacy Policy | Terms & Conditions | Disclaimer | Code of Conduct