基于单片机的多路模拟输出及通信设计论文.doc
- rovend个人认证 |
- 2021-05-14 发布|
- 949 KB|
- 34页
摘 要
模拟信号的输出是生产过程中非常重要的一个环节,它直接影响到控制系统性能。采用上位机对系统进行控制是一个工业生产中经常遇到的问题,采用上位机通过RS-485控制单片机不仅具有控制方便、操作简单等优点,而且可以在节约操作成本的同时大幅度的提高控制安全。整个系统的电路结构简单,可靠性能高。本文着重介绍了该系统的硬件设计方法。
本设计是设计一个8路的模拟量输出系统,外部信号由RS-485通信传送给控制器作为控制的依据,决定每路模拟量输出通道输出的大小。本设计要求输出4-20mA电流。精度要求做到1%。因此本设计采用的单片机是AT80C51,只所以采用51单片机是因为该单片机在软件编写时,用C语言编写比较的灵活,价格便宜。采用的DA芯片是DAC0832,DAC0832的转换精度可以做到1%。
关键词:D/A,单片机,异步串行通信
ABSTRACT
The output of the analog signal is very important for the production process, which directly affects the control system performance. The use of PC control system is often encountered in an industrial production problems, the use of PC control via RS-485 chip is not only easy to control, but also can save substantial operating costs while improving control security. The structure of the whole system is simple, it has hi