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.

SmartRF05EB + CC2530 UART configuration

Other Parts Discussed in Thread: CC2530EM, CC2530

Hi. I'm writing an app for the SmartRF05EB (v1.8.1) + CC2530EM that sends data to a PC over the RS-232 serial port. I can configure baudrate, flow control, timeout and max buffer size using halUARTCfg_t, but can I configure the stop and parity bits??

Thanks in andvance!

  • Hi Mr Electron,

    the driver does not support configuring the parity and stop bits through the halUARTCfg_t structure.

    We use the default settings of the USART module, which are no parity and 1 stop bit.

    However, the part does so what you can do is to change the HAL UART driver to take into account this and modify the corresponding UxCR register.

    Definition of the bitmask for stop bit and parity configuration can be found in the corresponding uart driver file, ie _hal_uart_xxx.c.

    For more information on the meaning of those values and fields, please check out Chapter 17.8 in CC2530 user's guide:  http://www.ti.com/lit/ug/swru191f/swru191f.pdf 

    Thanks,

    TheDarkSide

  • How. Please explain.

  • Hi sumit,

    TheDarkSide has answered this question:

    However, the part does so what you can do is to change the HAL UART driver to take into account this and modify the corresponding UxCR register.

    Definition of the bitmask for stop bit and parity configuration can be found in the corresponding uart driver file, ie _hal_uart_xxx.c.

    For more information on the meaning of those values and fields, please check out Chapter 17.8 in CC2530 user's guide:  http://www.ti.com/lit/ug/swru191f/swru191f.pdf