小型机器人红外测距装置.docVIP

  • 22
  • 0
  • 约4.65千字
  • 约 5页
  • 2017-09-23 发布于河南
  • 举报
小型机器人红外测距装置.txt蜜蜂整日忙碌,受到赞扬;蚊子不停奔波,人见人打。多么忙不重要,为什么忙才重要。#include reg51.h #include intrins.h #define uchar unsigned char #define uint unsigned int #define ulong unsigned long sbit RS=P2^0; //LCD命令/数据端 sbit RW=P2^1; //LCD读/写端 sbit LCDE=P2^2; //LCD使能端 sbit MCP_CS=P2^3; //MCP3001与AT89S52的管脚接线定义 sbit MCP_DO=P2^4; sbit MCP_CLK=P2^5; uint measure; uchar flag; //Busy标志 uchar code dis[]={Measure Start}; //显示 uchar code dis1[] = {Distance:}; //显示表头 uchar code dis2[] = {0123456789.cm}; //显示代码 uchar code dis3[]={Out Measure!}; //显示 uchar dis_buf[6]; //显

文档评论(0)

1亿VIP精品文档

相关文档