博客
关于我
基于单片机简易洗衣机系统仿真设计-全套资料
阅读量:385 次
发布时间:2019-03-05

本文共 803 字,大约阅读时间需要 2 分钟。

【资源下载】下载地址如下1419:

#include 
#include "lcd1602.h" #include "beep.h"#define uchar unsigned char #define uint unsigned int #define out P1sbit start=P3^3;sbit oe=P3^1;sbit eoc=P3^2;sbit clock=P3^0;bit flag=0;/*--------------------------------------------------------------------------*//*功能描述:通过读取ADC0809电压值 *//*输入参数:无 *//*输出参数:电压值(V*100) *//*--------------------------------------------------------------------------*/unsigned char Read_ADC0809(void){ unsigned char temp; start=0; start=1; start=0; //启动转换 while(1){clock=!clock;if(eoc==1)break;}//等待转换结束 //clock=!clock; oe=1; //允许输出 temp = out; //暂存转换结果 oe=0; //关闭输出 return temp;}

 

 

  

 

转载地址:http://pkiwz.baihongyu.com/

你可能感兴趣的文章
MySQL-【1】配置
查看>>
MySQL-【4】基本操作
查看>>
Mysql-丢失更新
查看>>
Mysql-事务阻塞
查看>>
Mysql-存储引擎
查看>>
mysql-开启慢查询&所有操作记录日志
查看>>
MySQL-数据目录
查看>>
MySQL-数据页的结构
查看>>
MySQL-架构篇
查看>>
MySQL-索引的分类(聚簇索引、二级索引、联合索引)
查看>>
Mysql-触发器及创建触发器失败原因
查看>>
MySQL-连接
查看>>
mysql-递归查询(二)
查看>>
MySQL5.1安装
查看>>
mysql5.5和5.6版本间的坑
查看>>
mysql5.5最简安装教程
查看>>
mysql5.6 TIME,DATETIME,TIMESTAMP
查看>>
mysql5.6.21重置数据库的root密码
查看>>
Mysql5.6主从复制-基于binlog
查看>>
MySQL5.6忘记root密码(win平台)
查看>>