/deng 2
#include //包含单片机寄存器的头文件
#include
#include "Bit_Port.h"
#include "key.h"
#include "commonality.h"
code unsigned char BUJIN[] = { 0x01, 0x03 , 0x02 , 0x06 , 0x04 , 0x0c , 0x08 , 0x09 } ; //步进电子程序代码
code unsigned char BUJINF []={ 0x09 , 0x08 , 0x0c , 0x04 , 0x06 , 0x02 , 0x03 , 0x01 } ; //
unsigned char code ASCII[15] = {'0','1','2','3','4','5','6','7','8','9','.','-','M'};
char shu ; //用于计算串口接收到了好多的数据
unsigned char mm = 0; //定时器2 用时间标志 为了控制超声波模块
unsigned int juli ; // 时间标尺全局变量 ,用于实现超声波测距的时间算法
unsigned long shendu ; //深度值,在程序初始化时取得桶的深度
unsigned int LEDsj ; //LED 灯时间控制
unsigned char DATE [10] ; //用于串口接收数据的数组
//unsigned char disbuff[4] = { 0,0,0,0,};
#include //包含单片机寄存器的头文件
#include
#include "Bit_Port.h"
#include "key.h"
#include "commonality.h"
code unsigned char BUJIN[] = { 0x01, 0x03 , 0x02 , 0x06 , 0x04 , 0x0c , 0x08 , 0x09 } ; //步进电子程序代码
code unsigned char BUJINF []={ 0x09 , 0x08 , 0x0c , 0x04 , 0x06 , 0x02 , 0x03 , 0x01 } ; //
unsigned char code ASCII[15] = {'0','1','2','3','4','5','6','7','8','9','.','-','M'};
char shu ; //用于计算串口接收到了好多的数据
unsigned char mm = 0; //定时器2 用时间标志 为了控制超声波模块
unsigned int juli ; // 时间标尺全局变量 ,用于实现超声波测距的时间算法
unsigned long shendu ; //深度值,在程序初始化时取得桶的深度
unsigned int LEDsj ; //LED 灯时间控制
unsigned char DATE [10] ; //用于串口接收数据的数组
//unsigned char disbuff[4] = { 0,0,0,0,};