MSP430G2553测试程序(串口程序,定时器模式)
//
//
//
//
//
//
//
//
//
//
// Built with
//串口调试助手,下载地址: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)
{
}
MSP430G2553串口程序定时器模 相关文章:
- MSP430G2553笔记(11-26)
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)