摘要: 阅读全文
posted @ 2024-01-02 21:47 豌豆茶 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1 实物与模型 (1)为什么DO和DI引脚连在一个引脚上? 由于ADC0832在通信时并不是会同时使用DO和DI端口,并且DO和DI端口与单片机的接口是双向的,所以在设计电路中可以用一根线将DO端和DI端连接到一起。 (2)ADC0832的外部连接采用SPI总线结构,这样便把它的连接方式与其他设备统 阅读全文
posted @ 2023-02-09 17:34 豌豆茶 阅读(756) 评论(0) 推荐(0) 编辑
摘要: 1 实验现象(每间隔1s自动切换模拟信号采集通道,通过数码管显示测量的电压值) 2 硬件设计 3 程序设计 3.1 主函数 #include <REG52.H> #include "DisplaySmg.h" #include "ADC0809.h" #include "Timer0.h" unsi 阅读全文
posted @ 2023-02-08 16:29 豌豆茶 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 1 实验现象 2 实验原理(略) 3 系统设计(略) 4 硬件设计 5 软件设计 5.1 主函数 #include "DisplaySmg.h" #include "ADC0809.h" #include "Timer0.h" unsigned char adc_result = 0; int ad 阅读全文
posted @ 2023-02-08 10:53 豌豆茶 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1 实验现象 2 实验原理 ADC0809的工作过程:首先输入3位地址,并使ALE=1,将地址输入地址锁存器中。此地址经译码选通8路模拟输入之一到比较器。START上升沿将逐次逼近寄存器复位。下降沿启动ADC转换,之后EOC输出信号变低,指示转换正在进行。直到ADC转换完成,EOC变为高电平,指示A 阅读全文
posted @ 2023-02-03 18:29 豌豆茶 阅读(1049) 评论(1) 推荐(0) 编辑
摘要: 1 实验现象 2 实验原理 3 系统设计 4 硬件设计 5 软件设计 5.1 主程序 #include <REG52.H> #include "DisplaySmg.h" #include "ADC0809.h" #include "Timer0.h" #include "Timer1.h" uns 阅读全文
posted @ 2023-02-02 21:43 豌豆茶 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 1 仿真现象 2 程序设计 2.1 主程序 #include <REG52.H> #include "DisplaySmg.h" #include "Timer0.h" unsigned int adc_result = 1234; void disp_num(void) //显示四位十进制数 { 阅读全文
posted @ 2023-02-01 21:42 豌豆茶 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 1 仿真现象 2 程序设计 2.1 主程序 #include "DisplaySmg.h" #include "Timer0.h" sbit LED = P1^0; unsigned int SystemTimer=0; //系统时间 unsigned char SystemFlag=1; //初始 阅读全文
posted @ 2023-01-31 21:51 豌豆茶 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1 实验现象(四个参数:窗口(通道)+分隔符+参数数据) 2 参考程序 2.1 主函数 #include "DisplaySmg.h" unsigned char wnd; //窗口或参数的个数,状态机设计 unsigned char param1=55; //参数1 unsigned char p 阅读全文
posted @ 2023-01-31 08:42 豌豆茶 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1 项目要求 (1)数码管开机初始显示 ,正常运行时显示2013; (2)数码管显示任意四位十进制数; 2 仿真测试 3 参考程序 3.1 主函数 #include "DisplaySmg.h" void main() { //任务1 正常运行时显示2023 unsigned int i; //0~ 阅读全文
posted @ 2023-01-30 20:42 豌豆茶 阅读(444) 评论(0) 推荐(0) 编辑