![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
UARTMSP432 Baudrate configuration. More...
#include <UARTMSP432.h>
Data Fields | |
uint32_t | outputBaudrate |
uint32_t | inputClockFreq |
uint16_t | prescalar |
uint8_t | hwRegUCBRFx |
uint8_t | hwRegUCBRSx |
uint8_t | oversampling |
UARTMSP432 Baudrate configuration.
This structure is used to specifiy the EUSCI controller's clock divider settings to achieve the desired baudrate given the a 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 UARTMSP432_BaudrateConfig::outputBaudrate |
uint32_t UARTMSP432_BaudrateConfig::inputClockFreq |
Search criteria: desired baudrate
uint16_t UARTMSP432_BaudrateConfig::prescalar |
Search criteria: given this input clock frequency
uint8_t UARTMSP432_BaudrateConfig::hwRegUCBRFx |
Clock prescalar
uint8_t UARTMSP432_BaudrateConfig::hwRegUCBRSx |
UCBRFx lookup entry
uint8_t UARTMSP432_BaudrateConfig::oversampling |
UCBRSx lookup entry