拿到MSP432P401R评估板v1.0(这个请注意一下,目前在德州仪器官网上找到的硬件原理图是v2.0,v1.0的串口所在的引脚是RXD,TXD引脚),先将串口调试好,便于下一步工作的展开。首先,查看TI提供的代码例子,这个例子就在TI的MSPWare代码包内。注释如下:
//******************************************************************************
// MSP432P401 Demo - eUSCI_A0 UART echo at 9600 baud using BRCLK = 12MHz
//
// Description: This demo echoes back characters received via a PC serialport.
// SMCLK/DCO is used as a clock source and the device is put in LPM3
// Theauto-clock enable feature is used by the eUSCI and SMCLK is turned off
// when theUART is idle and turned on when a receive edge is detected.
// Note thatlevel shifte