Development of MCU Based on 6502 and Implementation of ICE
- Author
- SongCunJie
- Advisor
- WangJinXiang
- School
- Harbin Institute of Technology
- Major
- Microelectronics and Solid State Electronics
- Classification
- TP368.11 Microprocessor
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 27
- Citations
- 0
Abstract
As an embedded microcontroller , MCU (Micro Controller Unit) has been widely applied in the field of communications, consumer electronics , computer , medical , instrumentation . 6502 is the earliest by MOS Technology Company developed a good performance 8-bit microprocessor , it is because of its low power consumption , low-cost structure and instruction simple features mainly used in embedded systems . This paper studies the internal structure of the 6502 microprocessor and instruction system , developed on the basis of a design based on the 6502 MCU and key modules introduced . In order to verify the correctness of the MCU IP core , using simulation software - based simulation and FPGA platform FPGA-based prototype validation on two levels , which focuses on the verification process . Online emulator MCU development system is an important part , is to develop a powerful tool for the MCU . Each MCU simulation debugging tools . In this paper, the current mainstream MCU debugging techniques based on the presence of monitoring procedures this low effective debugging techniques , self-developed monitoring program for 6502 Series MCU . This paper describes in detail the the 6502 MCU emulator communication protocol design , and monitoring program design and realization . Monitoring program through the serial communication port to communicate with the host computer debugger software , able to complete the program download , breakpoints, single-step operation , running at full speed , pause , view and modify the debugging features such as memory or CPU registers , the development of the 6502 series MCU powerful tool . Also developed BSL (Boot-Strap Loader) program used to download and update monitoring program , and is conducive to the upgrade of the control procedures . Finally , in the MCU FPGA verification platform , combined with the host computer debugger comprehensive functional testing of the monitoring program , given the test method of debugging features , the completion of the test , the results showed that the design 6502 online emulator monitoring the correctness of the program design .
Table of contents
Abstract 4-5
Abstract 5-8
Chapter 1 Introduction 8-17
1.1 research background and significance 8-10
1.2 development status at home and abroad 10-15
1.2.1 MCU development status 10-11
1.2.2 MCU debugging techniques 11-15
1.3 thesis the main work 15
1.4 paper structure arrangements 15-17
Chapter 2 MCU design 17-27
210 6502 microprocessor 17-21
2.1.1 6502 microprocessor Profile 17-20
2.1.2 6502 instruction set 20-21
the
MCUs 2.2 overall structure 21-22
2.2.1 memory structure 21-22
2.3 MCU sub-module 22-26
2.3.1 interrupt control module 22-23
2.3.2 GPIO module 23-24
2.3.3 Timer 24
2.3.4 Watchdog Timer 24-25
2.3.5 UART modules 25-26
2.4 This chapter Summary 26-27
Chapter 3 MCU simulation and FPGA verification 27-36
the
MCUs 3.1 Simulation 27-29
3.1.1 simulation methods and tools 27
3.1.2 Simulation results 27-29
3.2 from ASIC to FPGA migration 29-32
3.2.1 custom memories 29-31
3.2.2 clock management unit 31-32
the
MCUs 3.3 FPGA verification 32-35
3.3.1 build minimum system 32
3.3.2 GPIO verification 32-33
3.3.3 timer validation 33
3.3.4 Watchdog verify 33-34
3.3.5 UART verification 34
3.3.6 overall verification 34-35
3.4 This chapter Summary 35-36
of Chapter 4 resides monitoring program designed 36-70
4.1 overall architecture 36-38
4.1.1 basic principle 36-37
4.1.2 basic functions 37
4.1.3 the MCU internal debugging support 37-38
4.2 communication protocol design 38-45
4.2.1 communication 38-39
4.2.2 communication command format 39-45
4.3 control procedures designed 45-69
4.3.1 Overall design 45-46
4.3.2 modify memory and CPU registers 46-48
the 4.3.3 read memory and CPU registers 48-49
4.3.4 breakpoint management 49-53
4.3.5 full speed operation and management 53-58
4.3.6 specific values ??fill the memory block 58-60
4.3.7 single-step run processing 60-67
4.3.8 serial interrupt management 67-69
4.4 This chapter Summary 69-70
of Chapter 5 resides monitoring program test 70-83
5.1 hardware requirements 70
5.2 software development environment 70-72
5.3 control procedures test 72-82
5.3.1 communication handshake and download function test 73-76
5.3.2 operation management function test 76
5.3.3 breakpoint management function test 76-78
5.3.4 single-step run functional tests 78-80
5.3.5 to read and write memory function test 80-82
5.4 This chapter Summary 82-83
concluded 83-84
the
References 84-88
Acknowledgements 88
Related dissertations
- Design of Environment Monitoring System for Power Supply in Mobile Communication Base Station of Hunan Telecom
- The Foam Insulation Greenhouse Monitoring System Design
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
- Digital Electrical Impedance Tomography Hardware System Design Based on FPGA
- Study on Magnetic Flux Leakage Testing System of Rail Based on FPGA
- Digital Cross Section Data Acquisition System Based on Industrial Standard System Bus
- Research of Dual Chanel High Speed Data Acquisition Card
- Design and Implementation of FPGA-Based Six-Channel Non-Crosstalk Sonar System
- The Realization of Quality Detection System of Cataplasm Coating Based on FPGA
- Design of Remote Strain Measurement System Based on FGPA
- The Design of Digital Ultrasonic Nondestructive Testing System
- Design and Implementation of High Speed Data Recorder Based on FPGA
- Design of the High-speed Data Acquisition System Based on USB Interface
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Design and Application of Linear Array Image Acquisition System Based on Compressed Sensing
- The Design and Research of PCI Data Acquisition Card Based on FPGA
- Usb Without Invasive Data Collection Technology Research
- Research on On-line Diameter Measurement System Based on FPGA
- Design of High Speed Data Acqusition and Storage System Based on FPGA