当前位置:首页 > STM32单片机 - 图文
中国地质大学(北京)2014年本科实习报告
分类号 密级
中国地质大学(北京)
本 科 实 验 报 告
题 目 多路数据采集系统和信号发生器设计
学生姓名 学 号 1010112133
学生姓名 学 号 1010112125
院(系) 地信 专 业 测控技术与仪器
二零一四 年 三 月
1
中国地质大学(北京)2014年本科实习报告
摘 要
本此实次是基于ARM Cortex-M3的STM32系列单片机的应用实践,介绍了基于STM32单片机的数据采集的硬件设计和软件设计,数据采集系统是模拟域与数字域之间必不可少的纽带,它的存在具有着非常重要的作用。本文介绍的重点是数据采集系统,而该系统硬件部分的重心在于单片机。数据采集与通信控制采用了模块化的设计,数据采集与通信控制采用了单片机STM32来实现,硬件部分是以单片机为核心,还包括A/D模数转换模块和串行接口部分。该系统从机负责数据采集并应答主机的命令。输入数据是由现场模拟信号产生器产生,8路被测电压再通过模数转换器ADC0809进行模数转换,实现对采集到的数据进行模拟量到数字量的转换,并将转换后的数据传输到上位机,由上位机负责数据的接受、处理和显示结果。软件部分应用Keil uVision4通过C语言编写控制软件,对数据采集系统、模数转换系统、数据显示、数据通信等程序进行了设计。
关键词: STM32单片机 ADC0809 数据采集 Labview上位机
2
中国地质大学(北京)2014年本科实习报告
Abstract
The experiment is based on the ARM Cortex-M3 microcontroller applications STM32 family practice , describes the STM32 microcontroller data acquisition hardware design and software design, data acquisition system is essential between the analog domain and digital domain link, it existence has a very important role. Focus of this paper is the data acquisition system, and the hardware part of the center of gravity of the system lies in the microcontroller . Data acquisition and communication control uses a modular design, data collection and communication control using the STM32 microcontroller to implement the hardware part is a microcontroller core, also includes A / D conversion module and the serial interface section. The system is responsible for data collection from the machine and answer a host of commands. The input data is generated by the field generated by the analog signal , then the measured voltage 8 analog to digital conversion by analog to digital converter ADC0809, to achieve the collected data to the digital to analog conversion, and the converted data to the host computer , be accepted by the host computer is responsible for data processing and display results. Keil uVision4 part of the application software by C language control software, data acquisition systems , analog- to-digital conversion systems, data display, data communications and other procedures designed.
Keywords: STM32 MCU ADC0809 data acquisition Labview PC
3
中国地质大学(北京)2014年本科实习报告
目录
第一章 绪论 .................................................................................................................. 5
1.1 研究背景及其目的意义 ................................................................................. 5 第二章 实验任务及要求 ............................................................ 错误!未定义书签。
2.1多路数据采集系统设计任务……………………………………………… 4 2.2系统原理框图 ................................................................ 错误!未定义书签。 第三章 各路信号产生 .................................................................................................. 5
3.1 方波的产生 ................................. 错误!未定义书签。 3.1.1 方波发生原理(PWM模式)………………………………………………..8
3.2正弦波的产生 ................................................ 9 3.3三角波的产生 ............................................... 10 第四章 数据采集部分……………………………………………………………..11
4.1 数据采集原理……………………………………………………………11 4.1.1 ADC0809介绍及原理 ....................................... 12 第五章 上位机部分 ................................................ 14
5.1 Labview简介 ............................................... 15 5.2 Labview .................................................... 15 第六章 调试部分…………………………………………………………………………….16 第七章 心得体会…………………………………………………………………………….17 参考文献 ...................................................................................... 错误!未定义书签。
4
共分享92篇相关文档