Indexed Addressing and Array Access in the HC11 Microprocessor
- This is a preview of the essay.
To view the full text you must login!
Contents
Introduction 3
Section 2 Writing and Assembling Simple Programs 4
Simple Program 1 (SP 1) 4
Simple Program 1 (SP 1) 4
Section 2 Design Assessment 4
Section 3 Array Access and Operation in Standalone Mode 5
Section 3 Design Assessment 5
Conclusions 5
Appendix A: Hardware Schematic + Section 1 Table 6
Appendix B: Pseudo code 7
Appendix C: Tutorial on Indexing and Array Access 8
Appendix D: Listing Files 10
Section 2 SP 1 10
Section 2 SP 2 10
Section 3 Program 3 11
Appendix E: Glossary 15
References 16
Introduction
This report presents a description of the design process to implement 3 programs assigned as a part of Project 2 on the Fox 11 board. The scope of the project was to make the students of the ECE 3534 class proficient in writing, assembling, downloading and executing programs on the 68HC11 microcontroller, which will be referred to as the HC11 in the rest of the report. Successful completion of the project helps reinforce the concepts of Indexed Addressing and Array Access. This design was valuable experience because similar display systems are often used in camera control systems and engine control systems [Spasov, 1996].
The designs for the three programs primarily made use of the HC11's input/output ports. SP 1 and SP 2 were executed from the RAM while program 3 was executed from the EEPROM of the HC11. A TIL-311 Hex display, two 220 Ω and 4.7k Ω SIP current limiting resistors and a DIP switch was also used in design process. System block diagram is presented below:
Fig 1 System Block Diagram For Programs of Project 2
Project 2 was split into three sections. The first section was essentially a tutorial on Indexing and Array Access and involved assembling, uploading and executing an existing program which we would trace line by line and answer the ten questions asked in the section...