下载此文档

毕业设计(论文)-基于PIC单片机SPI接口的数据采集模块设计.doc


文档分类:通信/电子 | 页数:约45页 举报非法文档有奖
1/45
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/45 下载此文档
文档列表 文档介绍
基于PIC单片机SPI接口的数据采集模块设计
摘要
PIC单片机比MCS-51单片机功能更强大,因为其内部集成了A/D转换模块、USART通讯模块及MSSP端口;本文介绍一种基于PIC16F877A单片机的数据采集模块的设计。首先主机的A/D端口接电位器,实现模拟电压向数字信号的转换,然后对转换后得数据通过SPI接口传输给从机,从机通过显示控制芯片HD7279A,最后通过四位数码管把采集的模拟电压显示出来。
系统需要两片单片机完成,分为主机和从机,主机完成数据的采集、A/D转换,转换结果的输出,从机主要完成数据的接受,工程量变换功能。程序采用C语言编写,在集成开发环境MPLAB-IDE下完成编译及程序下载,最终实现能通过调节电位器实现变化的电压显示。
关键词 PIC单片机数据采集 A/D转换 SPI接口
DESIGN OF DATA COLLECTION SYSTEM BASED ON THE SPI PORT of PIC MICROCONTROLLER
ABSTRACT
The function of PIC MCU is more powerful than MCS-51, because it integrate a large number of on-chip peripherals such as AD converter module. munication module and MSSP port, This article introduced the design of data collection system based on the SPI port of PIC MCU, first the ADC converter module is connected with the potentiometer, so the analog voltage can be converted to digital signal, and then send them to the master microprocessor by the SPI port, The slave display the analog voltage through multi-point calibration which is controlled by the HD7279A.
It needs two pieces of microcontroller to do the job, which is divided into the master and the slave, the pletes data collection, A / D conversion, the conversion results of output, and the later accepts the data transmission as well as the quantity change. C language is used in programming, the MPLAB-IDE integrated development piling and downloading. And finally the analog voltage is displayed.
KEY WORDS PIC MCU Data Collection AD Conversion SPI Port
目录
摘要 I
ABSTRACT II
1 绪论 1
课题背景及研究意义 1
本设计方案介绍 2
2 硬件部分设计 3
PIC单片机介绍 3
PIC单片机的优越之处 3
PIC16F877A最小系统图及主要性能 4
PIC单片机片内ADC模块及接口实现 5
ADC模块结构和操作原理 5
ADC模块相关的寄存器介绍 6
A/D转换接口电路设计 7
主控同步串口MSSP介绍 9
I2C总线介绍 9
SPI 简介 10
SPI主模式接口设计 13
SPI从模式接口设计 14
HD7279A芯片原理介绍及接口实现 15
HD7279A简介 15
HD7279指令介绍 16
HD7279A的接口实现 20
电源模块 23
3 软件设计程序流程图 25
C语言编程简介 25
MPLAB IDE编程环境简介 25
MPLAB ICD2介绍 26
MPLAB

毕业设计(论文)-基于PIC单片机SPI接口的数据采集模块设计 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数45
  • 收藏数0 收藏
  • 顶次数0
  • 上传人3346389411
  • 文件大小0 KB
  • 时间2012-12-04