This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1111 RS232 Dongle Example, need to change the UART



Hi,

 

I have recompiled the CC1110 software for the rs232_eb_example to work on the CC1111 chip. I can get the devices to bond successfully and data can be seen/sent on UART0.

I would like to change this for my custom hardware to use UART1 (Alt1) without handshaking. I have tried this myself and nothing appears on P0_4 or P0_5 (supposed to be the UART1 pins in Alt1 configuration)

Can anybody please help?

 

Regards,

Nigel.

  • Hi there,

    One typical pit-fall is forgetting to set the following registers correctly:
    PERCFG.UxCFG
    PxSEL.SELPx_y

    For further troubleshooting I would check out the UART Design Note:
    https://community.ti.com/forums/p/641/1683.aspx#1683


    Cheers,
    RF4ALL

  •  

    Hi,

     

    Thanks for the reply. I have tried the routines from the application note, and still no communication?

    Below is my setup...

     

    //setup UART
       IP0 = 0x08;//Uart RX and TX interrupt highest priority
       IP1 = 0x08;//Uart RX and TX interrupt highest priority
       //selectUartSettings();
       //setup I/O for Uart1
       uartMapPort(1,1);
       uartInitBitrate(163, 8); //9600
      
       uartProtConfig.uartNum = 1;
       uartProtConfig.FLOW = 0;
       uartInitProtocol(&uartProtConfig);
       //lcdUpdateLine(LINE2,(__xdata char *) &lcdBindText[0]);

       U1CSR |= 0x40; //turn on RX
       INT_ENABLE(INUM_URX1, INT_ON);
       INT_ENABLE(INUM_UTX1, INT_ON);

       INT_GLOBAL_ENABLE(TRUE);

     

    Any Ideas?

     

    Thanks

  • Hi there,

    If you look at the hardware schematics for the EB, you'll find that the SRF04EB RS232 port interfaces [CC1110.P0.2:5].
    So far, so good. It is possible to map USART1 to [CC1110.P0.2:5], but as you'll discover from the signal mapping
    in the UART Design Note, the [UART1.TX/RX/CTS/RTS] and [UART0.TX/RX/CTS/RTS] signals are not mapped to the same
    CC1110 pins. For instance, assuming Alt1 location, [UART1.TX] will be mapped to [CC1110.P0.4], while [UART0.TX] will be
    mapped to [CC1110.P0.3]. So, I'm afraid you've run into a EB hardware design constraint in this case, that is; your intention
    is regrettably not supported by the EB hardware layout.


    Cheers,
    RF4ALL