![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
UARTUSCIA Baudrate configuration. More...
#include <UARTUSCIA.h>
Data Fields | |
uint32_t | outputBaudrate |
uint32_t | inputClockFreq |
uint8_t | prescalar |
uint8_t | hwRegUCBRFx |
uint8_t | hwRegUCBRSx |
uint8_t | oversampling |
UARTUSCIA Baudrate configuration.
This structure is used to specifiy the usci controller's clock divider settings to achieve the desired baudrate given the indicated clock input frequency. Divider values can be determined by referring to the MSP430 baudrate calculator. https://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430BaudRateConverter/index.html
A sample structure is shown below:
uint32_t UARTUSCIA_BaudrateConfig::outputBaudrate |
uint32_t UARTUSCIA_BaudrateConfig::inputClockFreq |
Search criteria: desired baudrate
uint8_t UARTUSCIA_BaudrateConfig::prescalar |
Search criteria: given this input clock frequency
uint8_t UARTUSCIA_BaudrateConfig::hwRegUCBRFx |
Clock prescalar
uint8_t UARTUSCIA_BaudrateConfig::hwRegUCBRSx |
UCBRFx lookup entry
uint8_t UARTUSCIA_BaudrateConfig::oversampling |
UCBRSx lookup entry