基于物联网的安保系统软件设计-测控模块_毕业论文 下载本文

西安欧亚学院本科毕业论文(设计)

基于物联网的安保系统软件设计—测控模块

摘要:在现在的信息时代,物联网已成为信息网络发展的一个必然趋势,而安防这个概念我们已不再陌生,它与我们的生活息息相关,所以安防物联就有待我们的研究与开发。安防物联网系统最突出的特点是其终端产品具有智能化、一体化,能够连接多种传感器,能够通过互联网传输报警图像和信息,同时具有网络平台监控报警服务功能。根据行业的特点,物联网安防产品要求具有体积小巧、造价低廉,集监控、图像分析、智能处理、前端存储、警笛讯响、主动报警等多种功能于一体,可连接多个传感器,能脱离电脑主机单独运行。

在整个软件开发过程中利用IAR进行软件的编辑和仿真。通过仿真器JLINK将程序下载到目标板,先进行单个分支模块的设计与调试,最后进行整个模块的整合调试,实现人机交换。

关键词:ARM;UART0;RTC

西安欧亚学院本科毕业论文(设计)

Based on network security system that software design-measurement — control module

Abstract: Now in the information age, the thing networking information network has become a certain trend of development of, and prevent this concept to we no longer strange, it with our life, so that they should be united security of our research and development. Security content networking system the most outstanding characteristic is its end products have intelligence, integration, able to connect a variety of sensors, can through the Internet to transmit alarm image and information, and at the same time a network platform monitoring alarm service functions. According to the characteristics of the industry, network security products that are required to have small size and low cost, the collection monitoring, image analysis, intelligent processing, storage, siren front-sound, and the active alarm and other functions in a body, can connect multiple sensor, from the main computer run separately.

In the software development process of software and the editor of IAR simulation. Through the simulator will JLINK program download to the target board, first for a single branch module design and commissioning, finally the module integration commissioning, realize human-machine exchange. Key words: ARM;UART0;RTC

西安欧亚学院本科毕业论文(设计)

目录

1 绪论 ................................................................................................................................. 1

1.1 技术背景 ............................................................................................................... 1 1.2 选题意义 ............................................................................................................... 1 1.3 课题设计思路 ....................................................................................................... 1 1.4 整体结构 ............................................................................................................... 2 2 LPC1768芯片介绍 ......................................................................................................... 3

2.1 LPC1768简介 ....................................................................................................... 3 2.2 技术特性 ............................................................................................................... 3 2.3 LPC1768的结构功能介绍 ................................................................................... 4 3 应用模块 ......................................................................................................................... 5

3.1 存储器 ................................................................................................................... 5 3.2 系统控制模块 ....................................................................................................... 6 3.3 UART模块 ........................................................................................................... 6 3.3.1 主要寄存器描述 ............................................................................................... 6 3.3.2 编程结构 ........................................................................................................... 7 3.4 实时日历时钟RTC .............................................................................................. 8 3.4.1 概述 ................................................................................................................... 8 3.4.2 特殊寄存器 ....................................................................................................... 9 3.5 LCD显示模块 .................................................................................................... 10 3.5.1 简介 ................................................................................................................. 10 3.5.2 指令集使用示例 ............................................................................................. 10 4 开发工具介绍 ............................................................................................................... 14

4.1 IAR EWARM开发软件 ..................................................................................... 14 4.1.1 简介 ................................................................................................................. 14 4.1.2 项目创建 ......................................................................................................... 14 4.1.3 IAR项目管理 ................................................................................................. 14 4.1.4 集成开发环境的界面 ..................................................................................... 14 4.1.5 调试器 ............................................................................................................. 15 4.1.6 C/C++编译器 .................................................................................................. 16 4.1.7 汇编器 ............................................................................................................. 16 4.2 J-LINK仿真器简介 ............................................................................................ 16

I

西安欧亚学院本科毕业论文(设计)

4.2.1 J-Link ARM主要特点 .................................................................................... 17 4.2.2 J-Link支持ARM内核 ................................................................................... 17 4.2.3 J-Link在IAR开发环境调试过程 ................................................................. 17 5 程序设计 ....................................................................................................................... 19

5.1 LPC1768芯片底层代码 ..................................................................................... 19 5.2 主程序 ................................................................................................................. 21 5.3 系统初化设计 ..................................................................................................... 25 5.4 UARTO初始化................................................................................................... 27 5.5 GPIO模块程序 ................................................................................................... 27 5.6 RTC模块 ............................................................................................................ 28 5.7 触屏操作界面模块 ............................................................................................... 30 6 系统调试 ....................................................................................................................... 34

6.1 整体概述 ............................................................................................................. 34 6.2 调试环境 ............................................................................................................. 34 6.3 调试及问题处理 ................................................................................................. 34 结论 ..................................................................................................................................... 35 致辞 ..................................................................................................... 错误!未定义书签。 参考文献 ............................................................................................................................. 36

II