The Making of a Microprocessor but the Mindset Was Still That of Counting, Just at a Faster Pace

Total Page:16

File Type:pdf, Size:1020Kb

The Making of a Microprocessor but the Mindset Was Still That of Counting, Just at a Faster Pace MicroprocessorMicroprocessor DesignDesign MadeMade EasyEasy Using the MC68HC11 Raj Shah President Advanced Microcomputer Systems, Inc. Pompano Beach, Florida Educational Division Acknowledgments ACKNOWLEDGMENTS “Microprocessor Design Made easy Using the MC68HC11” was designed and developed through the talents and energies of many hard working and dedicated individuals. The concept of using EZ-MICRO Tutor Board and EZ-MICRO Manager software along with this workbook in the schools has been well accepted by several community colleges as well as universities. Library of Congress Catalog-in-Publication Data Microprocessor Design Made Easy Using the MC68HC11 ISBN 0-9642962-4-1 Third Edition March, 2000 Fourth Edition January, 2002 Microprocessor Design Made easy Using the MC68HC11 Copyright © 200, 2001, 2002 by Advanced Microcomputer Systems Inc 1460 SW 3rd Street, Pompano Beach, FL 33069 Phone: (954) 784-0900 • Fax: (954) 784-0904 E-Mail: [email protected] Web: www.advancedmsinc.com All rights reserved. Printed in the United States of America. EZ-COURSEWARE Table of Contents 7DEOHRI&RQWHQWV Lesson 1 Introduction to Microprocessors Lesson 2 MC68HC11 Architecture and Addressing Modes Lesson 3 Programming the MC68HC11 Lesson 4 Using the EZ-MICRO Tutor Software Lesson 5 Software Interface to EZ-MICRO CPU-11 Lesson 6 Introduction to Programming Lesson 7 Introduction to C Programming Lesson 8 HC11 Technical Information Lesson 9 Interfacing Input/Output and Timer Devices Lesson 10 Serial Input/Output Lesson 11 Analog to Digital and Digital to Analog Conversion Lesson 12 Assembler Manual Lesson 13 Monitor Command Lesson 14 6811 Commands by Subject Appendix: A) References B) Specfications For Liquid Crystal Display Module C) LCD Driver D) MC68HC711E9 Technical Summary EZ-COURSEWARE Table of Contents EZ-COURSEWARE Introduction Introduction to Microprocessors and the Microprocessor System Design Process When you finish this lesson, you will know: 1. The history and evolution of the microprocessor. 2. The difference between 8-bit, 16-bit, and 32-bit microprocessors. 3. The different types of microprocessors available and their features. 4. The applications of each type of microprocessor. 5. The process of designing a microprocessor-controlled system. EZ-COURSEWARE 1-1 Introduction This EZ-COURSEWARE manual describes microprocessors and the microprocessor-system design process. It’s written for students studying single-chip microcomputers and microcontrollers for use in consumer products, manufacturing equipment, and laboratory instrumentation. Basically, a microprocessor is a single integrated circuit, often containing millions of transistors, that serves as the “brains” of a larger system, such as a personal computer. The single-chip microprocessor is also an ideal component for controlling mechanical and electrical devices, like a VCR or microwave oven. When this chip controls a specific product it’s called a microcontroller. This hands-on course focuses on the microcontroller aspect of the industry. Most of us already use products with microcontrollers embedded in them without even knowing it. Microcontrollers touch almost every facet of daily life and provide sophisticated features to consumer products at low cost. The following is a short list of some common products that use microcontroller computers. Audio equipment. Most CD players have electronic control buttons, digital displays, and automatic track selection and sequencing — all run by a microcontroller. Automobiles. Virtually every car in production today uses a microcontroller to control the delivery of fuel and adjust the spark timing for the engine. Microcontrollers can also be found in automatic transmissions, anti-lock brakes, and dashboard gauges. HVAC controllers. You probably know them better as thermostats, the wall devices that regulate the temperature of our homes and workplace. Unlike the bi-metal devices of old, today’s smart heating and air conditioning controllers have a microcontroller for a brain. Microwave ovens. Many microwave ovens can be programmed for various cooking times and power levels. Some even have sensors that automatically sense the food’s temperature and change the program accordingly. A microcontroller controls these and other functions. Security systems. If it weren’t for the microcontroller, which is able to detect motion and verify passwords, personal and building security would still be stuck in the world of locks and deadbolts. Video equipment. Undoubtedly the biggest consumer of single-chip microcontrollers is the video industry, which includes TVs and VCRs. Think about it. How else could you remotely change channels or program a VCR to record “Star Trek Voyager” weekly without something as smart as a microcontroller? From Fingers to Transistors The microcontroller that you will study in this guide is the MC68HC11 (also known as the 68HC11) from Motorola. Before we start, though, a little history is in order so that you know how the microcontroller came into existence. All microprocessors and microcontrollers are digital devices, in that they use numbers to direct and control their actions — as opposed to analog devices, which use quantities like weights and 1-2 EZ-COURSEWARE Introduction measures for their data input. For example, a VCR has a microcontroller for its brain, whereas a toaster usually has an analog bi-metal sensor (its “brain”) that senses the amount of moisture in the bread and (hopefully) pops up the toast before it burns. The first digital computer was “invented” when early humans realized that they could count sheep or bushels of corn using fingers (digits). Since that time, inventors have constantly sought better, faster, and cheaper ways to count and tally. The earliest known computing instrument is the abacus, a simple adding machine composed of beads strung on parallel wires in a rectangular frame, that’s used simply as a memory aid by a person making mental calculations. In contrast, adding machines, electronic calculators, and computers make physical calculations without the need for human reasoning. Blaise Pascal is widely credited with building the first "digital calculating machine" in 1642 as a way to help his father, who was a tax collector. His machine could add up numbers entered by means of dials. In 1671, Gottfried Wilhelm von Leibniz improved on the design by introducing a special "stepped gear" mechanism, which let the adding machine do multiplication, too. However, the prototypes built by Leibniz and Pascal weren’t widely used but remained curiosities until more than a century later, when in 1820, Thomas of Colmar (Charles Xavier Thomas) developed the first commercially successful mechanical calculator that could add, subtract, multiply, and divide. At about the same time (1812), Charles Babbage, a professor of mathematics at Cambridge University, England, advanced the concept of a “difference engine:” an automatic calculating machine that many consider to be the forerunner of today’s electronic computer. What Babbage realized was that that many long computations, especially those needed to prepare mathematical tables, consisted of routine operations that were regularly repeated; from this he surmised that it ought to be possible to do these operations automatically. By 1822 he had built a small working model for demonstration. With financial help from the British government, in 1823 Babbage started construction of a full-scale, steam-driven difference engine but lost interest in the project before completing it — partly because the machining techniques of his era weren’t precise enough to create so complex a device. Not for another century (1941) was serious attention again devoted to developing a calculating machine — this time, for generating mathematical tables needed by the World War II armies for determining the trajectory of ballistics. By now, state-of-the-art electronics had advanced to the point where mechanical devices weren’t even a consideration. The first electronic calculator was the ENIAC (for Electrical Numerical Integrator And Calculator), which used 18,000 vacuum tubes, occupied 1,800 square feet of floor space, consumed 180 kW of power (enough energy to power a city of 30,000), and ran hot enough to supply all the heat needed to warm the seven- story building it was housed in. The vacuum tubes were soon replaced with transistors (1955), which were supplanted in turn by the integrated circuit in 1964. The Making of a Microprocessor But the mindset was still that of counting, just at a faster pace. It wasn’t until the advent of the Central Processing Unit (CPU), in 1971, that the concept changed from counting to computing. That’s when logic was introduced into the counting process, and ushered in the era of the microprocessor. Simply put, computer logic means that the computer can be “taught” to choose EZ-COURSEWARE 1-3 Introduction different courses of action depending on the specific inputs it’s been given, especially input from previous calculations. For example, a computer used in a payroll department will “look” at how many income tax deductions a particular employee has chosen, then look at the employee’s gross salary, and then access the right look-up table based on both factors to decide how much tax to subtract from that person’s paycheck. Similarly, a computerized cash register in a supermarket can “remember” to add sales tax at the end of your bill for the paper towels and laundry soap in your grocery cart, but not for your tax-free onions and chicken wings. This is what separates a calculator from a computer: the ability to choose a course of action dependent on the outcome of a previous calculation. Some call it “machine reasoning.” It has since come to be known as programming. At first machine reasoning wasn’t all that swift—mostly because the electronics of that time wasn’t all that advanced. Where today’s Pentium processors sport more than 3 million transistors, the semiconductor makers of twenty years ago were hard pressed to fit a couple thousand transistors on a silicon chip. The first microprocessor chip was Intel’s 4004, a 4-bit processor that contained 2300 transistors and ran at 100 kilohertz (100 kHz).
Recommended publications
  • Embedded Systeme 11
    B 13908 Elektronik-Magazin für Chip-, Board- & System-Design www.systeme-online.de 11/00 Ausgabe November DM 14,– ÖS 110,– Embedded SFR 14,– Systeme Optimierte Software- Entwicklung Telekom-Strategie übernehmen HA-Systeme für Telekom 99,999 Prozent Verfügbarkeit Echtzeit- Steuerungssysteme Deterministisch im ns-Bereich Besuchen Sie uns auf der Electronica Halle A3, Stand 228 Electronic Embedded Systeme Editorial Embedded-(R-)Evolution Charles Darwin erkannte bei seinen Unter- werden Software, Echtzeitbetriebssysteme suchungen zur Abstammungslehre, die er im und die Weiterentwicklung von Windows CE, 19. Jahrhundert durchführte, dass sich die Embedded NT und Embedded Linux Natur evolutionär weiterentwickelt. Revolu- beschrieben. Der Elektronik-Focus wird zu tionäre Entwicklungssprünge sind in der einem zweiten Schwerpunkt ausgeweitet und Natur selten. Parallelen zur technischen enthält jetzt branchenbezogene Themen zu Weiterentwicklung sind dabei unübersehbar. Embedded-Systemen aus allen Marktberei- So entwickelt sich auch die Technik evolu- chen. Die Rubriken »Markt«, jetzt mit der tionär weiter, das bedeutet, dass neue Pro- regelmäßigen Unterrubrik »Forschung & dukte, Systeme und Verfahren meist verbes- Technologie«, »Titelstory« und »Schwer- serte Varianten ihrer Vorgänger sind. Selbst punkt«, bleiben bestehen. technische »Revolutionen« wie z.B. die Sie als Leser unserer Zeitschrift sind jetzt Erfindung der Planartechnik, des Mikropro- gefragt: Sagen Sie uns Ihre Meinung. Dazu zessors und des Internets sind genau betrach- ist dieser und der nächsten Ausgabe ein Fra- tet Weiterentwicklungen, die allerdings gebogen beigelegt. Sollten Sie diesen Frage- »revolutionäre« Auswirkungen auf die In- bogen nicht mehr in den Heften finden, dustrie haben und völlig neue Chancen und können Sie auch ganz bequem via Internet Märkte eröffnen. An diese neuen Bedingun- (http://www.service-awi.de/leserumfrage) gen müssen sich die beteiligten Firmen – an der Leserumfrage mit Gewinnspiel teil- analog zu den Arten in der Natur – anpassen.
    [Show full text]
  • COSMIC C Cross Compiler for Motorola 68HC11 Family
    COSMIC C Cross Compiler for Motorola 68HC11 Family COSMIC’s C cross compiler, cx6811 for the Motorola 68HC11 family of microcontrollers, incorporates over twenty years of innovative design and development effort. In the field since 1986 and previously sold under the Whitesmiths brand name, cx6811 is reliable, field-tested and incorporates many features to help ensure your embedded 68HC11 design meets and exceeds performance specifications. The C Compiler package for Windows includes: COSMIC integrated development environment (IDEA), optimizing C cross compiler, macro assembler, linker, librarian, object inspector, hex file generator, object format converters, debugging support utilities, run-time libraries and a compiler command driver. The PC compiler package runs under Windows 95/98/ME/NT4/2000 and XP. Complexity of a more generic compiler. You also get header Key Features file support for many of the popular 68HC11 peripherals, so Supports All 68HC11 Family Microcontrollers you can access their memory mapped objects by name either ANSI C Implementation at the C or assembly language levels. Extensions to ANSI for Embedded Systems ANSI / ISO Standard C Global and Processor-Specific Optimizations This implementation conforms with the ANSI and ISO Optimized Function Calling Standard C specifications which helps you protect your C support for Internal EEPROM software investment by aiding code portability and reliability. C support for Direct Page Data C Runtime Support C support for Code Bank Switching C runtime support consists of a subset of the standard ANSI C support for Interrupt Handlers library, and is provided in C source form with the binary Three In-Line Assembly Methods package so you are free to modify library routines to match User-defined Code/Data Program Sections your needs.
    [Show full text]
  • M.Tech –Embedded System Design SEMESTER-I S.NO CODE
    CURRICULUM DEPARTMENT OF ELECTRONICS AND COMMUNICATION BRANCH: M.Tech –Embedded System Design SEMESTER-I S.NO CODE SUBJECT NAME L T P C 1 PMA105 Applied Mathematics for Electronics Engineers 3 1 0 4 2 PED101 Microcontroller Based System Design 3 0 0 3 3 PED102 Embedded Systems 3 0 0 3 4 PAE102 Advanced Digital System Design 3 0 0 3 5 PED1E1 Elective-I 3 0 0 3 6 PED1L1 Embedded System Design Lab-I 0 0 4 2 TOTAL CONTACT HOURS- 20 18 SEMESTER-II 1 PED101 ASIC Design 3 0 0 3 2 PED202 Software Technology for Embedded System 3 0 0 3 3 PED203 Real Time Systems 3 0 0 3 4 PED2E2 Elective-II 3 0 0 3 5 PED2E3 Elective-III 3 0 0 3 6 PED2L2 Embedded System Design Lab -II 0 0 4 2 TOTAL CONTACT HOURS -19 17 SEMESTER-III 1. PED3E4 Elective-IV 3 0 0 3 2. PED3E5 Elective-V 3 0 0 3 3. PED3E6 Elective-VI 3 0 0 3 4. PED3P1 Project work phase-I 0 0 12 6 TOTAL CONTACT HOURS-21 15 SEMESTER-IV 1 PED4P2 Project work phase-II 0 0 24 12 TOTAL CONTACT HOURS-24 12 TOTAL CREDITS FOR THE PROGRAMME-62 LIST OF ELECTIVES 1 PED 001 Design of Embedded System 3 0 0 3 2 PED 002 Embedded Control System 3 0 0 3 3 PED 003 Computer Vision and Image Understanding 3 0 0 3 4 PED 004 Distributed Embedded Computing 3 0 0 3 5 PED 005 Design of Digital Control System 3 0 0 3 6 PED 006 Crypto Analytic Systems 3 0 0 3 7 PED 007 Intelligent Embedded Systems 3 0 0 3 8 PAE 006 Artificial Intelligence and Expert systems 3 0 0 3 9 PED102 Embedded systems 3 0 0 3 10 PED201 ASIC Design 3 0 0 3 11 PVL002 Low power VLSI Design 3 0 0 3 12 PVL003 Analog VLSI Design 3 0 0 3 13 PVL004 VLSI Signal processing
    [Show full text]
  • NMOS 6510 Unintended Opcodes No More Secrets (V0.95 - 24/12/20)
    NMOS 6510 Unintended Opcodes no more secrets (v0.95 - 24/12/20) (w) 2013-2020 groepaz/solution, all rights reversed Contents Preface...................................................................................................................................................I Scope of this Document....................................................................................................................I Intended Audience............................................................................................................................I License..............................................................................................................................................I What you get...................................................................................................................................II Naming Conventions.....................................................................................................................III Address-Mode Abbreviations...................................................................................................III Mnemonics................................................................................................................................III Processor Flags.........................................................................................................................IV Opcode Matrix......................................................................................................................................1 Unintended
    [Show full text]
  • Microprocessor Training
    Microprocessors and Microcontrollers © 1999 Altera Corporation 1 Altera Confidential Agenda New Products - MicroController products (1 hour) n Microprocessor Systems n The Embedded Microprocessor Market n Altera Solutions n System Design Considerations n Uncovering Sales Opportunities © 2000 Altera Corporation 2 Altera Confidential Embedding microprocessors inside programmable logic opens the door to a multi-billion dollar market. Altera has solutions for this market today. © 2000 Altera Corporation 3 Altera Confidential Microprocessor Systems © 1999 Altera Corporation 4 Altera Confidential Processor Terminology n Microprocessor: The implementation of a computer’s central processor unit functions on a single LSI device. n Microcontroller: A self-contained system with a microprocessor, memory and peripherals on a single chip. “Just add software.” © 2000 Altera Corporation 5 Altera Confidential Examples Microprocessor: Motorola PowerPC 600 Microcontroller: Motorola 68HC16 © 2000 Altera Corporation 6 Altera Confidential Two Types of Processors Computational Embedded n Programmable by the end-user to n Performs a fixed set of functions that accomplish a wide range of define the product. User may applications configure but not reprogram. n Runs an operating system n May or may not use an operating system n Program exists on mass storage n Program usually exists in ROM or or network Flash n Tend to be: n Tend to be: – Microprocessors – Microcontrollers – More expensive (ASP $193) – Less expensive (ASP $12) n Examples n Examples – Work Station
    [Show full text]
  • Malware Detection Advances in Information Security
    Malware Detection Advances in Information Security Sushil Jajodia Consulting Editor Center for Secure Information Systems George Mason University Fairfax, VA 22030-4444 email: ja jodia @ smu.edu The goals of the Springer International Series on ADVANCES IN INFORMATION SECURITY are, one, to establish the state of the art of, and set the course for future research in information security and, two, to serve as a central reference source for advanced and timely topics in information security research and development. The scope of this series includes all aspects of computer and network security and related areas such as fault tolerance and software assurance. ADVANCES IN INFORMATION SECURITY aims to publish thorough and cohesive overviews of specific topics in information security, as well as works that are larger in scope or that contain more detailed background information than can be accommodated in shorter survey articles. The series also serves as a forum for topics that may not have reached a level of maturity to warrant a comprehensive textbook treatment. Researchers, as well as developers, are encouraged to contact Professor Sushil Jajodia with ideas for books under this series. Additional titles in the series: ELECTRONIC POSTAGE SYSTEMS: Technology, Security, Economics by Gerrit Bleumer; ISBN: 978-0-387-29313-2 MULTIVARIATE PUBLIC KEY CRYPTOSYSTEMS by Jintai Ding, Jason E. Gower and Dieter Schmidt; ISBN-13: 978-0-378-32229-2 UNDERSTANDING INTRUSION DETECTION THROUGH VISUALIZATION by Stefan Axelsson; ISBN-10: 0-387-27634-3 QUALITY OF PROTECTION: Security Measurements and Metrics by Dieter Gollmann, Fabio Massacci and Artsiom Yautsiukhin; ISBN-10; 0-387-29016-8 COMPUTER VIRUSES AND MALWARE by John Aycock; ISBN-10: 0-387-30236-0 HOP INTEGRITY IN THE INTERNET by Chin-Tser Huang and Mohamed G.
    [Show full text]
  • Experience of Teaching the Pic Microcontrollers
    Session 1520 EXPERIENCE OF TEACHING THE PIC MICROCONTROLLERS Han-Way Huang, Shu-Jen Chen Minnesota State University, Mankato, Minnesota/ DeVry University, Tinley Park, Illinois Abstract This paper reports our experience in teaching the Microchip 8-bit PIC microcontrollers. The 8-bit Motorola 68HC11 microcontroller has been taught extensively in our introductory microprocessor courses and used in many student design projects in the last twelve years. However, the microcontroller market place has changed considerably in the recent years. Motorola stopped new development for the 68HC11 and introduced the 8- bit 68HC908 and the 16-bit HCS12 with the hope that customers will migrate their low- end and high-end applications of the 68HC11 to these microcontrollers, respectively. On the other hand, 8-bit microcontrollers from other vendors also gain significant market share in the last few years. The Microchip 8-bit microcontrollers are among the most popular microcontrollers in use today. In addition to the SPI, USART, timer functions, and A/D converter available in the 68HC11 [6], the PIC microcontrollers from Microchip also provide peripheral functions such as CAN, I2C, and PWM. The controller-area- network (CAN) has been widely used in automotive and process control applications. The Inter-Integrated Circuit (I2C) has been widely used in interfacing peripheral chips to the microcontroller whereas the Pulse Width Modulation (PWM) function has been used extensively in motor control. After considering the change in microcontrollers and the technology evolution, we decided to teach the Microchip 8-bit microcontrollers. 1 Several major issues need to be addressed before a new microcontroller can be taught: textbook, demo boards, and development software and hardware tools.
    [Show full text]
  • Chapter 7. Microcontroller Implementation Consideration
    Chapter 7. Microcontroller Implementation Consideration The overall performance of wheel slip control systems have been limited in the past primarily by the unavailability of low cost, flexible, high-speed electronic technology. The application of high speed digital microcontrollers in anti-lock brake systems allows increased computational capabilities and control performance. In this section, a Motorola 68HC11 microcontroller is evaluated for its suitability for the anti-lock brake control application. This family of microcontroller have been used in FLASH lab, Virginia Tech Center for Transportation Research for evaluation of the automatic highway system concepts and technologies (Kachroo, 1995). Due to the unavailability of the small-size electromagnetic brakes, we have not implemented the electromagnetic brakes and its control system on the small-scale vehicle in FLASH lab. But the digital control algorithm of the possible ABS system is evaluated and features of 68HC11 and alternative families of microcontrollers are evaluated to estimate their suitability for ABS application. For regular friction brakes, modulated brake torque can be calculated and applied to every individual wheel because there is a possibility that different wheels are on different road surfaces. On the other hand, due to the location of electromagnetic brakes, its output torque must be applied to all four wheels in an overall base. The anti-lock brake system discussed in this section takes both situations into consideration. 66 7.1. Motorola 68HC11 Microcontroller (Motorola, 1991) The high-density complementary metal-oxide semiconductor (HCMOS) 68HC11 is an advanced 8-bit microcontroller with sophisticated on-chip peripheral capabilities. The HCMOS technology combines smaller size and higher speeds with the lower power and high noise immunity of CMOS.
    [Show full text]
  • The RISC-V Instruction Set Manual, Volume II: Privileged Architecture, Version 1.10”, Editors Andrew Waterman and Krste Asanovi´C,RISC-V Foundation, May 2017
    The RISC-V Instruction Set Manual Volume II: Privileged Architecture Privileged Architecture Version 1.10 Document Version 1.10 Warning! This draft specification may change before being accepted as standard by the RISC-V Foundation. While the editors intend future changes to this specification to be forward compatible, it remains possible that implementations made to this draft specification will not conform to the future standard. Editors: Andrew Waterman1, Krste Asanovi´c1;2 1SiFive Inc., 2CS Division, EECS Department, University of California, Berkeley [email protected], [email protected] May 7, 2017 Contributors to all versions of the spec in alphabetical order (please contact editors to suggest corrections): Krste Asanovi´c,Rimas Aviˇzienis,Jacob Bachmeyer, Allen J. Baum, Paolo Bonzini, Ruslan Bukin, Christopher Celio, David Chisnall, Anthony Coulter, Palmer Dabbelt, Monte Dal- rymple, Dennis Ferguson, Mike Frysinger, John Hauser, David Horner, Olof Johansson, Yunsup Lee, Andrew Lutomirski, Jonathan Neusch¨afer,Rishiyur Nikhil, Stefan O'Rear, Albert Ou, John Ousterhout, David Patterson, Colin Schmidt, Wesley Terpstra, Matt Thomas, Tommy Thorn, Ray VanDeWalker, Megan Wachs, Andrew Waterman, and Reinoud Zandijk. This document is released under a Creative Commons Attribution 4.0 International License. This document is a derivative of the RISC-V privileged specification version 1.9.1 released under following license: c 2010{2017 Andrew Waterman, Yunsup Lee, Rimas Aviˇzienis,David Patterson, Krste Asanovi´c.Creative Commons Attribution 4.0 International License. Please cite as: \The RISC-V Instruction Set Manual, Volume II: Privileged Architecture, Version 1.10", Editors Andrew Waterman and Krste Asanovi´c,RISC-V Foundation, May 2017. Preface This is version 1.10 of the RISC-V privileged architecture proposal.
    [Show full text]
  • ZAP Cross Debuggers for Motorola Microcontrollers
    ZAP Cross Debuggers for Motorola Microcontrollers ZAP is a family of full-featured C and assembly language source-level debuggers designed to give Motorola embedded microcontroller developers a consistent and productive debugging environment across multiple target processors. Key Features: ZAP Addresses Your Debugging Needs At Each Stage of Your Project Provides a Portable Debugging Environment, ZAP’s multiple configurations are designed to address your debugging needs as your project moves from the design stage Debugger for Each Stage of Your Project, to final integration and test; ZAP configurations supported C and Assembler Source-level Debugging, are: software simulation, target monitor, background debug mode, and in-circuit emulator. Each configuration ANSI C Debugging, gives you essentially the same user interface, thus vastly Array and Structure Explorer, improving your productivity, but each addresses a different stage of your project. Debug Fully Optimized Code, Easy-to-use Graphical User Interface, C and Assembler Source-level Debugging If your source code is written in C, you want to debug at the C Extensive Program Control & Analysis Features, level; if parts of your source code are written in assembly Graphical Performance Analysis, language you want to debug at the assembly language level. ZAP automatically supports both modes without any special Code and Data Coverage, options or settings, so you always see your original source C Level Trace, code in the Source window. If you are debugging at the C level, you can activate a Disassembly window that shows you Robust Script language, the corresponding assembly language code for each line of C source. Automated Testing, Real-Time BDM debugging, ANSI C Debugging Hardware Breakpoint support, ZAP provides point and click access to any C object or construct including enums, bit fields, strings, doubles/floats, FLASH and EEPROM Programming, structures and stack frames.
    [Show full text]
  • The ZEN of BDM
    The ZEN of BDM Craig A. Haller Macraigor Systems Inc. This document may be freely disseminated, electronically or in print, provided its total content is maintained, including the original copyright notice. Introduction You may wonder, why The ZEN of BDM? Easy, BDM (Background Debug Mode) is different from other types of debugging in both implementation and in approach. Once you have a full understanding of how this type of debugging works, the spirit behind it if you will, you can make the most of it. Before we go any further, a note on terminology. “BDM” is Motorola’s term for a method of debugging. It also refers to a hardware port on their microcontroller chips, the “BDM port”. Other chips and other manufacturers use a JTAG port (IBM), a OnCE port (Motorola), an MPSD port (Texas Instruments), etc. (more on these later). The type of debugging we will be discussing is sometimes known as “BDM debugging” even though it may use a JTAG port! For clarity, I will refer to it as “on-chip debugging” or OCD. This will include all the various methods of using resources on the chip that are put there to enable complete software debug and aid in hardware debug. This includes processors from IBM, TI, Analog Devices, Motorola, and others. This paper is an overview of OCD debugging, what it is, and how to use it most effectively. A certain familiarity with debugging is assumed, but novice through expert in microprocessor/microcontroller design and debug will gain much from its reading. Throughout this paper I will try to be as specific as possible when it relates to how different chips implement this type of debugging.
    [Show full text]
  • A New Approach in Microprocessor/Microcontroller Courses/Laboratories Material Design and Development
    2006-386: A NEW APPROACH IN MICROPROCESSOR/MICROCONTROLLER COURSES/LABORATORIES MATERIAL DESIGN AND DEVELOPMENT Steve Hsiung, Old Dominion University STEVE C. HSIUNG Steve Hsiung is an associate professor of electrical engineering technology at Old Dominion University. Prior to his current position, Dr. Hsiung had worked for Maxim Integrated Products, Inc., Seagate Technology, Inc., and Lam Research Corp., all in Silicon Valley, CA. Dr. Hsiung also taught at Utah State University and California University of Pennsylvania. He earned his BS degree from National Kauhsiung Normal University in 1980, MS degrees from University of North Dakota in 1986 and Kansas State University in 1988, and a PhD degree from Iowa State University in 1992. Jeff Willis, Utah State University Jeff Willis Jeff Willis is a Software Engineer developing Mission Planning Software at Hill Air Force Base in Utah. He earned a BS degree in Computer Electronic Technology and a Masters degree in Computer Science from Utah State University. As part of his Master’s Thesis he co-authored two papers on self-configuring, deterministically latent intercommunication architectures for satellite payloads. Page 11.78.1 Page © American Society for Engineering Education, 2006 A New Approach in Microprocessor/Microcontroller Courses/Laboratories Material Design and Development Abstract Courses in microprocessors and microcontrollers are standard parts of the Engineering Technology core curricula. The traditional course material developments include both lectures and associated laboratory exercises. No matter how creative is the curriculum; it is usually budgetary constraints that confine the creativity when developing new curricula. This limits the freedom of the major approach in new course development.
    [Show full text]