Design and Implementation of Flexible Hardware Platform Based on PIC Microcontroller
- Author
- TianDeLi
- Advisor
- DuXiaoTong
- School
- Shandong University
- Major
- Detection Technology and Automation
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 78
- Citations
- 1
Abstract
In the embedded development, based on the PIC microcontroller design some functional modules will often be reused, such as communication module, display module, etc.. Embedded device hardware design after a good need for software debugging, if it is already debugged module can be before the source port to new hardware, then hardware-related code re-edit before use. But when the module function is more complex and the code is large, from the source to find and hardware resources corresponding parts, if the module is more complex and there are a lot of source code appears the process is relatively complicated, but also more prone to error, will debug bring some Difficulty. In this paper, PIC microcontrollers integrated development environment MPLAB IDE using C30 and C18 compiler, designed for some functional modules and algorithms source category in the subsequent development of simple to use flexible hardware platform. According to the current PIC microcontrollers using Bootloader for embedded devices software upgrade, be embedded device program memory user application completely erase and then write the new HEX file approach proposed improvements. First, according to project requirements designed based on the PIC microcontroller hardware circuit, on the basis of debugging circuit Ethernet communication, real-time clock, external storage, LCD and RS-485 function modules, based PIC microcontrollers embedded real-time operating system software design. Secondly, the PIC uses the compiler to do a more in-depth research, the use of the development project function module source code as the basis for the use of internal compiler some executable files in the source files packaged into a library file. These libraries using PIC microcontroller software development can be applied directly, the way that the code is greatly reduced, development can be greatly simplified; Not only did GM, because multiple files into one file makes links easier, grouping related modules together, but also conducive to maintaining the code; Because the functionality provided by library functions have been previously treated as a relocatable binary files, so the software compile the entire project when the efficiency will be greatly improved. Again, the use of traditional Bootloader for PIC embedded device software upgrade, we found when upgrading the embedded device program memory user application to completely erase and then write the entire new HEX file, the efficiency is lower under. To do this using a new method to improve the Bootloader, both to ensure the reliability and simplifies equipment upgrade process. Finally, in a new project using PIC-based microcontroller flexible hardware platform and improved Bootloader the device software upgrades. Initially some of the function module debugging is relatively simple, time-consuming than the previous greatly reduced; software upgrade efficiency has greatly improved, upgraded the system is stable. That the use of a flexible hardware platform in the new development can not affect the stability of the system case to shorten the development cycle, improve the Bootloader is feasible, efficient and reliable.
Table of contents
Abstract 10-12
ABSTRACT 12-14
first chapter 14-18
1.1 research background 14 - 15
1.2 research projects direction 15-16
1.3 research projects content and arrangement 16-18
1.3.1 The main research contents 16 -17
1.3.2 This paper is organized each chapter 17-18
Chapter flexible hardware platform design basis 18-38
2.1 Energy Saving Control System R \u0026 D background 18-20
2.2 energy-saving control system hardware 20-27
2.2.1 Energy Saving Control System's overall planning 20
2.2.2 Energy Management server design 20-24
2.2.2.1 Ethernet communication module design 21-22
2.2.2.2 Data storage module design 22 -23
2.2.2.3 Real-time clock module design 23
2.2.2.4 LCD module design 23-24
2.2.3 Room terminal controller design 24-27
2.2.3.1 serial communication circuit design 25-26
2.2.3.2 Other circuit design 26-27
2.3 Saving Control System software design 27-35
2.3.1 Embedded operating system 27-30
2.3.1.1 embedded operating system development 27-28 <br / > 2.3.1.2 embedded operating system features 28-30
2.3.2 Energy Management Server software design 30-33
2.3.2.1 Energy management server mission planning 30-32
2.3.2.2 initialization tasks and scheduling 32-33
2.3.3 terminal controller software design 33-35
2.3. 3.1 terminal controller mission planning 33-34
2.3.3.2 Initialization and scheduling tasks 34-35
2.4 Summary 35-38 <br / > Chapter flexible hardware platform based on the PIC chip design and implementation 38-62
3.1 MPLAB software development processes 39-42
3.1.1 MPLAB compiler 39-40
3.1.2 MPLAB Assembler 40
3.1.3 MPLAB Linker 40-41
3.1.4 MPLAB archiver 41-42
3.2 flexible hardware platform based on the PIC chip implementations 42-49
3.2.1 flexible hardware platform implementation 42-47
3.2.2 Other forms of flexible hardware platform 47-49
3.2.3 development of new projects to use 49
3.3 PIC Bootloader flexible hardware platform with a combination of application 49 -60
3.3.1 Bootloader principle 50-52
3.3.2 Bootloader improvement on the traditional 52-59
3.3.2.1 HEX file 53-54
3.3.2.2 INHX32 files and program memory location code relationship 54-58
3.3.2.3 Bootloader improved methods 58-59
3.3.3 Bootloader flexible hardware platform with the combined use of 59-60
3.4 Summary 60-62
Chapter flexible hardware platform based on the PIC chip applications 62 - 76
4.1 Project Background 62
4.2 information center energy monitoring system master plan 62-67
4.2.1 Controller hardware components 63 - 64
4.2.2 data server hardware components 64
4.2.3 Controller Software Planning 64-65
4.2.4 data server software planning 65-67
4.3 flexible hardware platform application 67-70
4.3.1 Controller software debugging 67-68
4.3.2 data server software debugging 68-70
4.4 Bootloader on the use of improved controller software upgrade 70-72
4.4.1 Comprehensive analysis of controller software upgrade 70
4.4.2 Controller software upgrade 70-72
4.5 energy monitoring system on-site operation 72-75
4.5.1 system installation and operation 72-73
4.5.2 engine room alarm processing 73-74
4.5.3 information center energy efficiency analysis 74-75
4.6 Chapter Summary 75-76
Chapter Summary and Outlook 76-78
5.1 Work Summary 76-77
5.2 related work prospects 77 -78
References 78-82
Thanks 82-84
master's participation during the project 84-85
Dissertation Review and respondent Fact Sheet 85
Related dissertations
- Design and Implementation of Video Capture System Based on Embedded Technology
- The Design and Implementation of Integrated Data Acquisiton Instrument Hardware Platform for Gas Station
- Transplantation of Embedded Linux Operating System Based on S3C6410
- Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
- The Design and Implementation of a Complier for SCADA Based on C
- Backend Porting for CSKY Based on LLVM Compiler Infrastructure
- The Linux Kernel Porting, Profiling Driven Development and Cryptographic Applications Based on CK810
- Establishment and Verification of the Timing and Power Consumption Model for the Embedded SRAM Compiler
- The Embedded SRAM Compiler Design and IP Verification
- The Intelligent Gateway Based on Embedded Technology and Its Application in the Thermal Power Plant Opetation Management System
- Design and Implementation of WinAM BSP Based on Car-Mounted System
- Analysis and Research of Hardware System of High-resolution Inkjet Printer Based on ARM9
- Design of Surface Roughness Measuring System of Parts Based on ARM
- Research and design of embedded control system based on ARM9
- Research and implementation of intelligent Home Furnishing network monitoring system based on embedded Linux
- The Study of Motion Control System on MIS Robot
- The Research of Panoramic Stereo Sphere Vision
- Design and Implementation of SQL Compiler on Column-Oriented Database
- Linux operating system on the ARM hardware platform transplantation
- Advertising machine based on embedded Linux system