Skip to Navigation
Home
  • Company
    • Quick Facts
    • Board of Directors
    • Management Team
    • Press Releases
    • News Coverage
    • Newsletter
    • Careers
    • Articles
    • Ember Chronology
    • Contact Us
  • Products
    • ZigBee Chips
    • ZigBee Software
    • ZigBee Development Tools
    • Documentation
  • Buy
    • Digi-Key (Online)
    • Distributors
  • Applications
    • AMI & AMR
    • Integrated Home Automation
    • Building Automation
    • Others
  • ZigBee
    • About ZigBee
    • Ember & ZigBee
    • ZigBee FAQ
    • Download Specifications
    • ZigBee Events
  • Partners
  • Support
    • Training
  • Events
Home › FAQs

I need to use the UART at a rate other than what is supported. How can I specify a new baud rate?

Categories:
  • Software : Embedded
  • EM250

First, the developer needs to determine if the baud rate is possible with the Em250. The BAUD rate generator is based on a 12 MHz clock (24 MHz main crystal divided by 2). To generate the correct BAUD rate, the developer needs to specify a divide ratio from 12 MHz to generate the correct bit rate. For example, if I wish to generate a 115.2 kbps BAUD rate, I would need to use a divide ratio of 12 MHz / 115.2 kHz = 104.


Note that this actually specifies a BAUD rate of 115.384, which is about 0.16% faster than true 115.2 kbps. BAUD rates must be within 5% to avoid bit errors, assuming the device on the other end is precise. It is usually a good idea to stay within 2.5% on both sides to be sure.


Once the divide ratio has been computed, it needs to be defined as EMBER_SERIAL_BAUD_CUSTOM in the board file. An example may be found in hal/micro/xap2b/em250/board/dev0455.h in our EmberZNet 2.5.3 release. From within the application, the developer should select BAUD_CUSTOM when initializing the serial port.

 

  • Login to post comments
  • Printer-friendly version

Search

FAQs

  • All (162)
  • Software : Embedded (62)
  • Software : Networking (70)
  • Hardware : Design (22)
  • Hardware : Manufacturing (10)
  • Tools : Dev Boards (2)
  • Tools : ISD, ISA (20)
  • Tools : xIDE (6)
  • Tools : Other (7)
  • ZigBee (1)
  • Change Notification (0)
Primary links
  • Developer Blog
  • Documentation
    • Release Notes
  • Contributed Software
  • FAQs
  • Change Notifications
  • Training
Portal
  • My Account
  • Search
User login
  • Request new password

Company | Products | Buy | Applications | ZigBee | Partners | Support | Events | Contact Us

©2007-2008 Ember Corporation | All rights reserved | Privacy