|
论文编号ZXX431 论文字数:10415,页数:44
摘 要
本单片机系统采用AT89S52控制,整个硬件系统由A/D、D/A转换、LED显示、键盘、并行通信等模块组成。本设计只完成了单片机部分的开发设计,没有设计外部的采集和控制电路。因为没有外部采集电路,所以不能完成具体的测量功能,要完成具体的测量功能(如测量压力、温度、湿度)还要配上外部的各种传感器采集电路和相应的软件。若配上采集电路和相应的软件就能将测量结果用LED数码管十进制显示出来,其中包括了A/D、D/A转换,还可以用按键来控制,进行人机对话;系统中设置了5个按键,其中1个是复位键,其余的4个键,用程序来控制实现不同的功能。之所以没有设计外部采集电路是因为设计了外部采集电路系统的功能就比较单一,不方便系统功能的外部扩展。该系统还能实现单片机与PC机的并行通信和编程的下载、软件设计的时钟显示。
关键词:AT89S52单片机;并行通信;LED数码管显示
Abstract
AT89S52 SCM system adopts the control, the whole hardware system consists of A/D and D/A transformation, LED display, keyboard, parallel communication module. This design only completed the microcontroller part of the design development, no design external gathering and control circuit. Because there is no external acquisition circuit, so you can't accomplish specific measurement function, to accomplish specific measurement functions (such as measuring pressure, temperature, humidity) also deserve to various sensors outside of acquisition circuit and the corresponding software. If the match on acquisition circuit and the corresponding software can with the measured results LED digital tube decimal shown, including the A/D and D/A transformation, still can use the button to control for the man-machine dialogue; System set up five buttons, which one is reset button, the rest of the four key, with procedures to control the realization of different functions. Did not design external acquisition circuit because the external acquisition circuit design is the function of the system is more onefold, inconvenient system function of external expansion. This system can achieve the microcontroller and PC parallel communication and programming to download, software design of the clock display.
Key words: AT89S52 SCM; Parallel communication; LED digital tube display
目 录
摘 要 I
Abstract II
目 录 III
第1章 绪 论 1
1.1 系统开发背景和意义 1
1.2 设计目标 1
1.3 设计方案的选择 1
第2章 硬件系统设计 4
2.1 硬件设计框图 4
2.2 各功能模块电路的设计 4
2.2.1 并行通信电路 4
2.2.2 单片机外围电路 5
2.2.3 A/D转换和D/A转换电路 6
2.2.4 LED数码管显示电路 9
2.2.5 键盘电路 10
2.2.6 电源电路 10
第3章 软件系统设计 12
3.1 主程序流程图 12
3.2 各子模块程序设计 12
3.2.1 时钟处理模块 12
3.2.2 键盘处理模块 13
3.2.3 显示模块 14
3.2.4 并行通信模块 14
第4章 系统的调试 15
4.1 硬件调试 15
4.2 软件调试 17
结 论 19
致 谢 20
参考文献 21
附录A 系统硬件电路图 22
附录B 元件清单 23
附录C 部分程序源代码 24 |
|