//
//
//
//
//
//
//
//
//
//
//串口调试助手,下载地址:http://www.sudt.com/download/AccessPort137.zip
//******************************************************************************
#include "msp430g2553.h"
//------------------------------------------------------------------------------
// Hardware-related definitions
//------------------------------------------------------------------------------
#define UART_TXD
#define UART_RXD
//------------------------------------------------------------------------------
// Conditions for 9600 Baud SW UART, SMCLK = 1MHz,设置波特率,仅仅修改下面一下数据即可,如9600,2400
//9600,2400工作稳定。波特率不宜太高。
//------------------------------------------------------------------------------
#define UART_TBIT_DIV_2
#define UART_TBIT
//------------------------------------------------------------------------------
// Global variables used for full-duplex UART communication
//------------------------------------------------------------------------------
unsigned int txData;
unsigned char rxBuffer;
//------------------------------------------------------------------------------
// Function prototypes
//------------------------------------------------------------------------------
void TimerA_UART_init(void);
void TimerA_UART_tx(unsigned char byte);
void TimerA_UART_print(char *string);
//------------------------------------------------------------------------------
// main()
//------------------------------------------------------------------------------
void main(void)
{
}
//------------------------------------------------------------------------------
// Function configures Timer_A for full-duplex UART operation
//------------------------------------------------------------------------------
void TimerA_UART_init(void)
{
}
//------------------------------------------------------------------------------
// Outputs one byte using the Timer_A UART
//------------------------------------------------------------------------------
void TimerA_UART_tx(unsigned char byte)
{