MoniUART.c
资源名称:MSP430.rar [点击查看]
上传用户:buddy3
上传日期:2022-06-12
资源大小:100k
文件大小:1k
源码类别:
GPS编程
开发平台:
C/C++
- #include "..config.h"
- #define MoniInPort P3^2; //模拟串口IN INT0
- #define MoniOutPort P3^4; //模拟串口OUT T0
- //MoniSBUFOutData=MoniSBUF^0; //中断发送位
- //sbit MoniSBUFInData = MoniSBUF^7; //中断接收位
- unsigned char MoniSBUF; //中断收发送数据RAM
- void MoniUART_Init(void)
- {
- TACTL = TASSEL0 + TACLR; //0X0200+0X0004=0X0204
- //CCTL0 = CCIE;
- //CCR0 = 16384;
- TACTL |= MC0;
- _EINT();
- return;
- }
- int tttttttttt = 0;
- interrupt [TIMERA0_VECTOR] void Timer_A(void)
- {
- tttttttttt++;
- }