![](https://csdnimg.cn/release/download_crawler_static/86681855/bg1.jpg)
#include "Includes.h"
uchar Size = MC35; //请根据您的模块型号设置型号 MC35i/MC35/TC35i/TC35 四种可选
uchar code TEL_temp[20]={'1','8','9','5','8','1','7','3','9','2','8',0x0d,'2','5'};
//存对方号码,0x0d 后面的是代码长度,25 为 5 个汉字长度,每加一个汉字+2
uchar F=0;
uint m;
uint n;
uchar chinit;
uchar chping;
uchar data int_case; //中断标志
uchar uart_buff[MAX_TM]; //通信程序中的缓冲 /////
uchar idata send_count,receive_count;
data uchar AT_Command_Type; //当前发送的命令类型
data uchar AT_Command_Status; //命令发出以后的返回参数
uchar idata para_temp[MAX_T]; //多用临时用
uchar data read_tmp; ///读电话本号参数
uchar data num_tmp1; ///读短信号码参数
uchar data TMP_BUF; // 万用 值
uchar data sms_tmp; ///参数代码
uchar data system_server ; //系统状态
//定时用****************
uint data timercount; //50MS 定时器,
uchar data timer_1S_cnt;
uchar data timer_10S_cnt;
uchar data timer_S_cnt;
uchar data timer_tmp;
//位变量****************
bit TC35_bit ;
bit txd_rxd_bit; //接收正确的指令中断
bit at_send_bit; //发送允许
/*********************************************************************
* 延时 1MS 的函数 *
*********************************************************************/
void delay1ms(uint x){
for(m=0;m<x;m++)
for(n=0;n<120;n++);
}
/*********************************************************************
* C51 中字符串函数的扩充 *
*********************************************************************/