单片机多任务操作的多功能采集卡设计  被引量:5

Design of the Multi-functional Data Acquisition Module Based on Multi-tasking Operating Mode of MCU

在线阅读下载全文

作  者:阿占文 冯清香 

机构地区:[1]华中科技大学机械科学与工程学院,湖北武汉430074

出  处:《自动化仪表》2014年第1期84-87,共4页Process Automation Instrumentation

摘  要:针对普通采集卡程序的顺序执行法在复杂程序中存在的流程不清晰、维护困难的问题,运用单片机多任务操作模式,设计了一种多功能数据采集卡,给出了具体实现代码和硬件电路。通过时间片轮询方式,实现了串口通信、频率信号采集和A/D转换、D/A和开关量输出的多任务操作。该采集卡现已运用于HJD-DJ1型电机试验台。使用结果表明,该采集卡的使用使程序的可读性和可维护性都有所提高,在实现采集卡各种功能的前提下,减少了外围元件,降低了硬件开发难度。To solve the problems existing in sequential execution method of conventional acquisition module, e.g. , not clarity in process of complex program and hard to maintenance, etc. , the multi-functional data acquisition module has been designed by using the multi-tasking operating mode of single chip machine. The specific implementing code and hardware circuit are given. Through time slice polling mode, multiple tasks are operated, including serial port conanunication, frequency signal acquisition and A/D conversion, D/A and discrete signal output. This module is applied for the test bench of HJD-DJ1 motor, the result indicates that the readability and maintainability of the program are improved, under the premise of completely implement various functions of the acquisition module, the peripheral components and hardware development effort can be reduced.

关 键 词:多任务模式 任务细分 频率采集 PWM D A转换 多功能数据采集卡 

分 类 号:TP399[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象