Design of the Embedded System Based on AT91RM9200
- Author
- TianChong
- Advisor
- YangZhi
- School
- Chongqing University
- Major
- Pattern Recognition and Intelligent Systems
- Classification
- TP368.1 Microprocessor
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 359
- Citations
- 6
Abstract
With the development of computer technology, communication technology and the in-depth application of the Internet, more and more embedded systems are running around us. The embedded systems have become the center of interest in the IT industry and exhibited broad potential market. Meanwhile, a lot of embedded applications are calling for better performance and functionality of embedded systems. ARM is the leading provider of 32-bit embedded RISC microprocessors. ARM offers a wide range of processor cores and delivers high performance together with low power consumption and system cost, high performance and specific THUMB instrument set. With the development of the domestic embedded application, ARM must be widely recognized and applied. Among all kinds of embedded operating systems,μC/OS-II has the advantage of real-time performance and open source, so it has been widely used in embedded system. This thesis intends to build an embedded hardware and software developing platform based on ARM9 processor andμC/OS-II, and offers the overall solution to the user.The hardware system adopts 32 bit microprocessor AT91RM9200 produced by ATMEL company and the software platform is based on cost-free and strongly functional embedded operating systemμC/OS-II. The preliminary running effect of the system shows that it is successful in design. The project has such innovative points as following:①Embedded system adopts new hardware platform, which is based on AT91RM9200, and it is rich in interfaces;②The thesis introduces the whole process that builds embedded system, which included both hardware and software;③Embedded system is designed to link to the Internet;The thesis designs the principle diagram of hardware interface circuit based on AT91RM9200, which included the core board and the motherboard. The circuit of Flash and SDRAM belong to the core board are high frequency. The motherboard has three parts of interface circuit which are USART, CANbus and network. The thesis designs bootloader, system clock and interrupt handler vectors according to the particular configurations of AT91RM9200. The thesis also discusses how to portμC/OS-II and LwIP protocol to the platform and how to design the driver.
Table of contents
Abstract 3-4
ABSTRACT 4-10
1 Introduction 10-13
1.1 research background and significance 10
1.2 Embedded System Overview 10-12
1.2.1 Embedded System Definition 11
1.2.2 characteristics of embedded systems 11-12
1.2.3 Embedded Processor 12
1.2.4 Embedded operating system 12
1.3 In this thesis, the main research work 12-13
2 System Design Review 13-18
2.1 ARM Overview and AT91RM9200 processor 13-14
2.2 real-time operating system μC / OS-II 14-15
2.3 relay platform to build 15-16
2.3.1 hardware platforms 16
2.3.2 software platform 16
2.4 compiler selection and cross-development environment for the establishment 16-17
2.5 Chapter Summary 17-18
3 hardware platform design 18-24
3.1 core board circuit design 18-19
3.1.1 FLASH memory interface circuitry 18-19
3.1.2 SDRAM interface circuit 19
3.2 backplane expander circuit design 19-23
3.2.1 serial interface circuit 19-21
3.2.2 CAN bus 21-22
3.2.3 Network section 22-23
3.3 Chapter Summary 23-24
4 software development platform to build 24-45
4.1 software development platform for building process overview 24
4.2 AT91RM9200 boot 24-27
4.2.1 AT91RM9200 memory structure 25
4.2.2 address remapping principle 25
4.2.3 AT91RM9200 boot mechanism 25-26
4.2.4 internal bootstrap Boot Program 26-27
4.3 BOOTLOADER design 27-30
4.3.1 Bootloader configuration 27-28
4.3.2 code to achieve 28-30
4.4 AT91RM9200 interrupt design 30-32
4.4.1 Advanced Interrupt Manager 30-31
4.4.2 IRQ interrupt processing 31-32
4.5 system clock design 32-35
4.5.1 Clock Overview 32
4.5.2 clock initialization 32-34
4.5.3 clock interrupt 34-35
4.6 μC / OS-II operating system introduced 35-37
4.6.1 μC / OS-II main features 35-36
4.6.2 μC / OS-II's main function 36-37
4.7 μC / OS-II operating system AT91RM9200 processor transplant 37-44
4.7.1 μC / OS-II operating system migration concepts and conditions 37-38
4.7.2 OS_CPU.H file 38-40
4.7.3 OS_CPU_C.C file 40-41
4.7.4 OS_CPU_A.S file 41-44
4.8 Chapter Summary 44-45
5 various driver design 45-58
5.1 Device Drivers Overview 45-47
5.1.1 operating system, drivers and embedded relationships 45
5.1.2 drivers composition and function 45-47
5.2 serial driver design 47-49
5.2.1 serial controller 47
5.2.2 data transceiver function interface 47-48
5.2.3 interrupt handler function algorithm 48-49
5.3 CAN driver design 49-54
5.3.1 CAN bus and its controller MCP2510 49-50
5.3.2 SPI interface protocol 50-52
5.3.3 MCP2510 initialization 52-53
5.3.4 MCP2510 literacy 53-54
5.4 Network Device Driver Design 54-57
5.4.1 AT91RM9200 network controller and the physical layer chip DM9161 54
5.4.2 data frame structure 54-55
5.4.3 Specific preparation of the driver 55-57
5.5 Chapter Summary 57-58
6 embedded TCP / IP protocol stack implementation 58-65
6.1 embedded TCP / IP protocol stack LWIP 58-62
6.1.1 TCP / IP protocol suite and structural 58
6.1.2 LwIP Profile 58-59
6.1.3 LwIP process model 59
6.1.4 LwIP protocol stack implementation 59-62
6.2 LWIP transplant 62-64
6.2.1 CPU or the relevant part of the compiler 62
6.2.2 LwIP operating system encapsulation layer 62-63
6.2.3 LwIP timing mechanism 63-64
6.2.4 LwIP network interface 64
6.3 Chapter Summary 64-65
7 Conclusion 65-66
Thanks 66-67
References 67-70
Appendix 70-71
Related dissertations
- μC/OS-Ⅱ-based Recording Player Software Design and Implementation
- Software and Hardware Design and Implement of the Driver of the Thermal Lithographic Module in High-speed Card Producing Equipment
- Microprocessor Protection Algorithm Based on HHT and Its Platform Development
- Study on Embedded Sleep Monitor and Alarm System
- Design and Implementation of the Embedded Video Surveillance Server Based on ARM and Linux
- The Design of Energy Collector System Based on AT91RM9200
- The Research and Design of Embedded Fresh Air Monitoring System Based on ARM
- Research and Development of Automatic Control System on Integrated Sub-packaging and Packaging Machine
- Embedded Application Research Based on ARM9 and Linux
- Instrument control system based on embedded technology
- Application and Research of Microprocessor Relay Protection Based on Embedded Technology
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- The Study of Remote Video Monitor System Baced on ARM
- Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
- Video Surveillance System Based on Embedded Technology Research
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Research and implementation of remote monitor system of ship based on the technology of the Internet of things
- Design of Video Surveillance Software Based on Ti Dm6446Processor
- Data Acquisition System of Cavern Based on Embedded Web Server