• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF Proprietary Software & SimpliciTI Forum » CC1110 Mini 868 Baud rate problem
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

CC1110 Mini 868 Baud rate problem

CC1110 Mini 868 Baud rate problem

This question is answered
jing ming lien
Posted by jing ming lien
on Feb 26 2012 00:01 AM
Prodigy60 points

hi,

The serial output baud rate from my computer was 9600 , how can I set  cc1110 baud rate to 9600 in order to transmit data.
For your information, I'm using AP as Data Hub coding.

Am I suppose to modify the following code:
// Baudrate = 57.6 kbps (UOBAUD.BAUD_M = 34, U0GCR.BAUD_E = 11)

#define UART_BAUD_M  34
#define UART_BAUD_E 11

What should I change for M value and E value to get 9600?
cc1110 IAR Low power RF SimliciTI ED access point IAR SimpliciTI AP as data hub
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Martin B
    Posted by Martin B
    on Feb 26 2012 12:47 PM
    Verified Answer
    Verified by jing ming lien
    Expert6525 points

    Hi

    Please see section 12.14.3 in the CC1110 datasheet for baud rate generation. In this section Table 55 and Table 56 shows the register values for the most common baud rates depending on system clock frequency.

    Below is the table for 26 MHz system clock:

    Best regards

    Martin

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
     button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    cc1110 UART
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jing ming lien
    Posted by jing ming lien
    on Feb 26 2012 21:34 PM
    Prodigy60 points

    Thanks for the help. =))

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jing ming lien
    Posted by jing ming lien
    on Feb 29 2012 06:42 AM
    Prodigy60 points

    Hello,

    Regarding to the following codes, is it alright doing this way for receiving serial data from computer and transmitting out through CC1110 mini wireless connection?
    FYI, i'm modifying AP as data hub coding. 



    if (token)
    {
    uint8_t noAck;
    smplStatus_t rc;

    /* get radio ready...awakens in idle state */
    SMPL_Ioctl( IOCTL_OBJ_RADIO, IOCTL_ACT_RADIO_AWAKE, 0);

    /* Set TID and designate which LED to toggle */
    msg[1] = ++sTid;
    msg[0] = U0DBUF;toggleLED(1);
    done = 0;
    }

    #pragma vector = URX0_VECTOR
    __interrupt void UART0_RX_ISR(void)
    {

    // Clear UART0 RX Interrupt Flag (TCON.URX0IF = 0)
    URX0IF = 0;

    // Read UART0 RX buffer
    uartRxBuffer[uartRxIndex++] = U0DBUF;

    // If all UART data received, stop this UART RX session
    if (uartRxIndex >= SIZE_OF_UART_RX_BUFFER) {
    uartRxIndex = 0;
    uartPktReceived = 1;
    token=1;
    }
    
    
    ________________________________________________________________________________________

    Based on Access Point , is the following codes functioned properly in order to
     transmit received data to computer by serial input?


    
    
    
    
      */
    if (sPeerFrameSem)
    {
    uint8_t msg[MAX_APP_PAYLOAD], len, i;

    /* process all frames waiting */
    for (i=0; i<sNumCurrentPeers; ++i)
    {
    if (SMPL_SUCCESS == SMPL_Receive(sLID[i], msg, &len))
    {

    processMessage(sLID[i], msg, len);
    BSP_ENTER_CRITICAL_SECTION(intState);
    sPeerFrameSem--;
    BSP_EXIT_CRITICAL_SECTION(intState);
    }
    }
    }

    if (token)
    {
    token = 0;
    uart0StartTxForIsr();
    }


    static void processMessage(linkID_t lid, uint8_t *msg, uint8_t len)
    {
    /* do something useful */
    if (len)
    {
    toggleLED(*msg);
    uartTxBuffer[uartTxIndex++]= *msg;
    if(uartTxIndex >= SIZE_OF_UART_TX_BUFFER)
    {
    uartTxIndex = 0;
    token = 1;toggleLED(1);
    }
    }
    return;
    }

    ________________________________________________________________________________

    I actually faced problem of transmitting/receiving data continuously through cc1110 mini. 
    Anyone can help up in solving the particular problem? 


     
    cc1110 IAR SimplciTI Low power RF SimliciTI SimpliciTI End Device End Devices ED End device AP to ED AP access point UART IAR SimpliciTI AP as data hub
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use