In this lab, we demo echoes back characters received via a PC serial port.You can remove the jumpers of the RXD and TXD on board to disconnect the UART.Another UART port is pin6 and pin7 ( P1.2_BCLUART_RXD and P1.3_BCLUART_TXD) and connected to the J101 (jumpers connector to the emulation MCU part).The UART port pin98/pin99 (P9.6 and P9.7) is routed to the J5 connector in the MSP432 launchpad.In the MSP432 launchpad schematic, we can see pin6, pin7, pin98, and pin99 as the two UART ports.One online tool to setup the parameters:.If N is equal or greater than 16, it is recommended to use the oversampling baud-rate generation mode by setting UCOS16 The division factor N is often a noninteger value, thus, at least one divider and one modulator stage is used to meet the factor as closely as possible.For a given BRCLK clock source, the baud rate used determines the required division factor N: N = fBRCLK / baud rate.The overall diagram shows the eUSCI_Ax when configured for UART mode.UART mode is selected when the UCSYNC bit is cleared. In asynchronous mode, the eUSCI_Ax modules connect the device to an external system through two external pins, UCAxRXD and UCAxTXD.
The eUSCI_A module supports two serial communication modes:.In the pin diagram, we have two UART ports.UART With Automatic Baud-Rate Detection.MSP432 eUSCI contains the following modules as shown in the MSP432 datasheet. The eUSCI module supports synchronous communication protocols such as SPI (3-pin or 4-pin) and I 2C, and asynchronous communication protocols such as UART, enhanced UART with automatic baud-rate detection, and IrDA. The eUSCI modules are used for serial data communication.The UART, I2C, SPI are in the module of Enhanced Universal Serial Communication Interface (eUSCI) In the functional diagram of MSP432 in MSP432 datasheet, we know there are multiple peripheral units. We will explore two options of using UART: driverlib and TI Drivers. In this lab, we will play with the uart interface of the MSP432.