Fredrick M. Cady. Assembly and С Programming forthefreescalehcs12 Microcontroller. шт.

Size: px
Start display at page:

Download "Fredrick M. Cady. Assembly and С Programming forthefreescalehcs12 Microcontroller. шт."

Transcription

1 SECOND шт. Assembly and С Programming forthefreescalehcs12 Microcontroller Fredrick M. Cady Department of Electrical and Computer Engineering Montana State University New York Oxford Oxford University Press 2008 EDITION

2 Preface xiü 3 Structured Program Design Some Basic Definitions Computers, Microprocessors, Microcomputers, Microcontrollers Motorola/Freescale Developments Leading to the HCS12 Embedded Systems Notation General Principles of Microcontrollers A Typical Microcontroller The Program Memory The Central Processor Unit The I/O Interface The Address, Data, and Control Buses Timing 2.3 Software/Firmware Development 2.4 The Software Development Tool Set Absolute Assemblers Relocatable Assemblers Compilers The Linker Creating a Relocatable Program 2.5 Remaining Questions The Need for Software Design 3.2 The Software Development Process 3.3 Тор-Down Design Understand the Problem Completely Design in Levels Ensure Correctness at Each Level Postpone Details Successively Refine Your Design Design Without Using a Programming Language 3.4 Design Partitioning 3.5 Bottom-Up Design 3.6 The Real-World Approach 3.7 Types of Design Activity 3.8 Design Tools Structured Programming Pseudocode Using Pseudocode Structured Elements as i Design Tool Top-Down Debugging and Testing Structured Programming in Assembly Language Software Documentation Software Requirements Specification (SRS) Software Design Document (SDD) Software Code Software Verification Plan (SVP) User Manuals A Top Down Design Example Seat Belt Alarm Problem Statement The Top Down Design v

3 vi 4 to the HCS12 Hardware The CPU, Registers, and Condition Code Bits 52 The Programmer's CPU Model 52 Control Registers 53 Operating Modes 54 Normal Single-Chip Mode 54 Normal Expanded Mode 55 Background Debug Mode 55 Memory Map 56 Addressing Modes 56 Inherent Addressing 56 Immediate Addressing 57 Direct and Extended Addressing 58 Indexed Addressing 59 Relative Addressing 63 Reset 64 Causes of Reset 65 Reset Summary An Assembler Program Assembly Language Example 68 CodeWarrior HC12 Assembler 70 Assembler Source Code Fields 70 Label Field 70 Opcode or Operation Field 71 Operand Field 71 Comment Field 77 Assembler Control 77 Assembler Directives 79 Section Definition 79 Constant Definition 82 Reserving or Allocating Memory Locations 83 Defining Constants in Memory 83 Export or Import Global Symbols 87 Assembly Control 88 Repetitive Assembly 90 Listing Control 91 Macros 93 Conditional Assembly 96 Assembler Files 100 Assembler Listing 100 Debug Listing 101 Object Files 101 Absolute Files 101 Freescale S Files Remaining Questions The Linker Assumptions Code Development Why Use a Relocatable Assembler/ Compiler and a Linker? Memory Types, Sections, and Section Types Code Section Constant Data Section Variable Data Section Stack Section Linker Operation Locating in Proper Memory Linking the Code The Linker Parameter File Parameter File Commands The Linker Output Files The Linker Map File Absolute Files Remaining Questions 7 HCS12 Instruction Set HCS12 Instruction Set 122 HCS12 Instruction and Operand Syntax 126 Addressing Modes 126 Instruction Categories 128 Move Data Instructions 128 Modify Data Instructions 130 Decision Making Instructions 133 Flow Control Instructions 134 Other Instructions 135 Load and Store Register Instructions 136 Eight-Bit Load and Store Instructions 136 Sixteen-Bit Load and Store Instructions 139 Stack Instructions 140 Load Effective Address Instructions 144 Transfer Register Instructions 145 Move Instructions 145 Decrement and Increment Instructions 148

4 vii Clear and Set Instructions Shift and Rotate Instructions Arithmetic Instructions Add and Subtract Decimal Arithmetic Negating and Sign Extension Multiplication Fractional Number Arithmetic Division Logic Instructions Data Test Instructions Conditional Branch Instructions Signed and Unsigned Conditional Branches Bit Test Conditional Branching Loop Primitive Instructions Unconditional Jump and Branch Instructions Branches to Subroutines Condition Code Register Instructions Interrupt Instructions Fuzzy Logic Instructions Miscellaneous Instructions I DO Debugging HCS12 Programs Program Debugging Code Walkthroughs The Debugging Plan Debugging Tools Debugging Demonstration Program Debugging Program Flow and Logic Debugging Data Elements The Source Code Listing Typical Assembly Language Program Bugs Stack Register Condition Code Register Test Data Strategies Other Debugging Techniques 10 Program Development Using С Assembly Language Programs for the HCS Assembly Language Programming Style 179 Source Code Style 179 To Indent or Not to Indent 186 Uppercase and Lowercase 186 Use Equates, Not Magic Numbers 186 Using Include Files 187 Commenting Style Structured Assembly Language Programming 188 Sequence 189 IF-THEN-ELSE Decision 189 WHILE-DO Repetition 192 DO-WHILE Repetition Interprocess Communication 195 Information in Registers 195 Information in Global Data Areas 196 Information in Local Data Areas 198 Information on the Stack 199 Using Addresses Instead of Values 202 Passing Boolean Information Assembly Language Tricks of the Trade Making It Look Pretty Major Differences Between С for Embedded and С for Desktop Applications 226 ANSI С Versus Microcontroller Implementations Architecture of а С Program 229 Startup Code 229 Void Main(Void); 230 Variables Assembly Language Interface 231 Compiler Produced Assembly Language Code 231 Using Assembly Language in С 232 In-line Assembly Bits and Bytes Accessing I/O Registers 239 Byte Addressing 239 Bit Addressing 241 Byte and Bit Addressing 2 CodeWarrior Bytes and Bits 244 Caution on Compiler Implementation Dependent Bit Addressing Interrupts 245 The Interrupt Service Routine or Interrupt Handler 245 Locating the Interrupt Service Routine 246

5 viii Remaining Questions HCS12 Parallel I/O Families of HCS12 Processors The Register Base Address The Port Integration Module (PIM) Bidirectional I/O Ports HCS12 Parallel I/O Ports Ports A and В Port AD Port E Port J PortM PortP Ports PortT Data Direction Registers I/O Port Bit Electronics Reduced Drive Control Pull-up or Pull-down Control Polarity Selection Wired-OR Input Registers Parallel I/O Programming Parallel I/O Software Checklist Parallel I/O Software Examples More Parallel I/O Programming and Interfacing Examples Remaining Questions Parallel I/O Register Address Summary 12 HCS12 Interrupts General Interrupt System Specifications Asynchronous Events and Internal Processor Timing Enabling the Interrupts Pending Interrupts Multiple Sources of Interrupts HCS12 Interrupts The Interrupt Process The Interrupt Enable The Interrupt Disable The Interrupt Request The Interrupt Sequence The Interrupt Return Interrupt Vectors HCS12 System Vectors Initializing the Interrupt Vectors Interrupt Priorities Hardware Prioritization Software Prioritization Nonmaskable Interrupts System Reset Clock Monitor Reset Computer Operating Properly (COP) Reset Unimplemented Instruction Opcode Trap Software Interrupt (SWI) Nonmaskable Interrupt Request XIRQ_L External Interrupt Sources IRQ J. PortP Port J Interrupt Flags Resetting Interrupt Flags Resetting Interrupt Flags in С Multiple Flags with a Single Interrupt Vector Internal Interrupt Sources 12.9 Advanced Interrupts Selecting Edge or Level Triggering What to Do While Waiting for an Interrupt Initializing Unused Interrupt Vectors Other Interrupt Registers The Interrupt Service Routine or interrupt Handier Interrupt Service Routine Hints Interprocess Communication An Interrupt Program Template Remaining Question Interrupt System Register Address Summary conclusion ana unapter summary Komts HCS12 Memories Flash and EEPROM Remapping Memory Resources MC9S12C32 Memory Map Remapping Registers and Memory Locations Remapping RAM

6 ix Remapping I/O Registers 338 Remapping EEPROM 339 Memory Priorities 341 Memory Expansion 341 Programming and the Program Page Window 3 Other Memory Mapping Registers 3 Remaining Question 346 Memory System Register Address Summary HCS12Timer Basic Timer 349 Prescaler 349 Sixteen-Bit Free-Running TCNT Register 350 Timer Overflow Flag 352 Basic Timer Overflow Programming Timer Overflow Interrupts Output Compare 364 Output Compare Time Delays 366 Output Compare Interrupts 371 Output Compare Bit Operation 377 One Output Compare Controlling Up to Eight Outputs 382 Very Short Duration Pulses 388 Forced Output Compares 390 Output Compare Software Checklist Input Capture 391 Input Capture Software Checklist Pulse Accumulator 396 Pulse Accumulator Interrupts Plain and Fancy Timing Clearing Timer Flags 400 Clearing Timer Flags in С 402 Fast Timer Flag Clearing Real-Time Interrupt Pulse-Width Modulator 411 Pulse-Width Modulator Clock Control 413 Pulse-Width Modulator Control Registers 415 Using Port T Outputs for PWM Waveforms 1 Choosing Pulse-Width Modulation Counter Prescaler and Scaler Values 2 Pulse-Width Modulation Software Checklist Timer System Register Address Summary Timer Features HCS12 Serial I/O SCI and SPI Asynchronous Serial Communications Interface (SCI) SCI Data SCI Initialization SCI Status Flags SCI Flag Clearing SCI Interrupts SCI Wake-up SCI Break Character Port S SCI I/O SCI Programming Examples SCI Interfacing Synchronous Serial Peripheral Interface (SPI) Interprocessor Serial Communications SPI Data Register SPI Initialization SPI Master and Slave Modes SPI Data Rate and Clock Formats SPI Status Register SPI Interrupts SPI Programming Examples SCI and SPI Register Address Summary 16 HCS12 Serial I/O MSCAN Motorola Scalable Controller Area Network Interface (MSCAN) 469 CAN Definitions 469 CAN Serial Communications 470 MSCAN Initialization and Control Registers 476 Initialization Mode 476 CAN Bus Timing 480 MSCAN Identifiers 484 Programmer's Model of Message Storage 491 MSCAN Initialization 496 MSCAN Data Transmitter 499 CAN Transmitter Buffers 499 Transmission Aborts 502

7 x Remote Transmission Request and Substitute Remote Request 503 MSCAN Transmitting MSCAN Data Receiver 505 MSCAN Receiving MSCAN Interrupts 508 MSCAN Sleep Mode and Wake-up MSCAN Errors 512 Error Detection 512 Error Signaling 512 MSCAN Error Indicators MSCAN Programming Examples 514 Explanation of Example Explanation of Example MSCAN Register Address Summary HCS12 Analog Input HCS12 A/D Converter 526 A/D Power Up 528 A/D Conversion Sequence ATDCTL3 530 A/D Resolution, Sampling Time, and Clock Selection ATDCTL4 532 A/D Input Multiplexer and Input Scanning ATDCTL5 536 A/D Operation 537 Digital Results from the A/D 540 A/D Input Synchronization 5 Polling A/D Conversion Complete 5 Clearing Status Flags 545 A/D Interrupts 545 A/D Low Power Modes 546 Digital Input to the A/D 546 Miscellaneous A/D Registers 548 A/D Programming Summary 549 Example ATD Programs 549 Remaining Questions Single-Chip Microcontroller Interfacing Techniques The Single-Chip Microcontroller 18.2 Simple Input Devices Input Switches Arrays of Switches Simple Display Devices Parallel I/O Expansion Parallel I/O Electronics Serial I/O Devices Serial Communications Interface Serial Peripheral Interface The Analog-to-Digital Converter Interface I/O Software Real-Time Synchronization Polled I/O Handshaking I/O HCS12 Fuzzy Logic Our Digital Heritage 616 How Is Fuzzy Logic Different? 617 What Is Fuzzy About Fuzzy Logic? 618 Structure of a Fuzzy Logic Inference Program 619 Fuzzification 621 Rule Evaluation 624 Defuzzification 628 Putting It All Together 630 The Complete Fuzzy Inference System 632 Fuzzy Logic 640 Fuzzy Logic Instructions 640 Minimum and Maximum Instructions 6 Table Lookup Instructions Debugging Systems Software and Hardware Breakpoints 647 Development Related Features of the MC9S12C Background Debug Module (BDM) 650 Single-Wire Physical Interface 651 Special Mode Select Function 651 Tagging Function 651 Background Communication Function 652 Application Uses for BDM 652 Nonvolatile Memory Programming 652

8 xi Target System Calibration 652 Field Diagnostics and Code Changes 653 Data Logging Applications On-Chip Real-Time ICE System 653 Real-Time Bus Capture Versus Breakpoints and Single-Instruction Trace 654 Traditional External ICE 654 Benefits of On-Chip ICE 655 Features of HCS12 On-Chip ICE 656 On-Chip ICE Concepts 657 CodeWarrior User Interface to the On-Chip ICE System 660 A Simple Trace Example 661 A Practical Example of a Trace Run Designing a System Using an MC9S12C Family Microcontroller Clock Generator System Register Address Summary Appendix A: Binary Codes Appendix B: HCS12 Instruction Set Appendix C: CodeWarrior Assembler Advanced HCS12 Hardware Clocks and Reset Generator System Clock Generator System Clocks Clock Generator Control Registers External Oscillator Phase Locked Loop Oscillator PLL External Connections PLL Programming HCS12 Operating Modes Clock Generator Modes Modes at Reset Wait and Stop Modes Appendix D: HCS12 I/O Registers Appendix E: Include File Listings Appendix F: HCS12 Interrupt Vector Assignments Index 7

Design of Embedded Systems Using 68HC12/11 Microcontrollers

Design of Embedded Systems Using 68HC12/11 Microcontrollers Design of Embedded Systems Using 68HC12/11 Microcontrollers Richard E. Haskell Table of Contents Preface...vii Chapter 1 Introducing the 68HC12...1 1.1 From Microprocessors to Microcontrollers...1 1.2

More information

Microcontrollers. Microcontroller

Microcontrollers. Microcontroller Microcontrollers Microcontroller A microprocessor on a single integrated circuit intended to operate as an embedded system. As well as a CPU, a microcontroller typically includes small amounts of RAM and

More information

Chapter 7 Central Processor Unit (S08CPUV2)

Chapter 7 Central Processor Unit (S08CPUV2) Chapter 7 Central Processor Unit (S08CPUV2) 7.1 Introduction This section provides summary information about the registers, addressing modes, and instruction set of the CPU of the HCS08 Family. For a more

More information

MICROPROCESSOR BASED SYSTEM DESIGN

MICROPROCESSOR BASED SYSTEM DESIGN MICROPROCESSOR BASED SYSTEM DESIGN Lecture 5 Xmega 128 B1: Architecture MUHAMMAD AMIR YOUSAF VON NEUMAN ARCHITECTURE CPU Memory Execution unit ALU Registers Both data and instructions at the same system

More information

SOME ASSEMBLY REQUIRED

SOME ASSEMBLY REQUIRED SOME ASSEMBLY REQUIRED Assembly Language Programming with the AVR Microcontroller TIMOTHY S. MARGUSH CRC Press Taylor & Francis Group CRC Press is an imprint of the Taylor & Francis Croup an Informa business

More information

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET 1 SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET Intel 8086/8088 Architecture Segmented Memory, Minimum and Maximum Modes of Operation, Timing Diagram, Addressing Modes, Instruction Set,

More information

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1 M68HC08 Microcontroller The MC68HC908GP32 Babak Kia Adjunct Professor Boston University College of Engineering Email: bkia -at- bu.edu ENG SC757 - Advanced Microprocessor Design General Description The

More information

EE4390 Microprocessors. Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System

EE4390 Microprocessors. Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System EE4390 Microprocessors Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System 1 Overview 68HC12 hardware overview Subsystems Memory System 2 68HC12 Hardware Overview "Copyright of Motorola,

More information

MOXSYN. General Description. Features. Symbol

MOXSYN. General Description. Features. Symbol MOXSYN C68MX11 CPU General Description The C68MX11 CPU core is based on the Motorola M68HC11 microcontroller controller, but has an enhanced full 16 bit architecture, thus requiring less clock cycles for

More information

History of the Microprocessor. ECE/CS 5780/6780: Embedded System Design. Microcontrollers. First Microprocessors. MC9S12C32 Block Diagram

History of the Microprocessor. ECE/CS 5780/6780: Embedded System Design. Microcontrollers. First Microprocessors. MC9S12C32 Block Diagram History of the Microprocessor ECE/CS 5780/6780: Embedded System Design Chris J. Myers Lecture 1: 68HC12 In 1968, Bob Noyce and Gordon Moore left Fairchild Semiconductor and formed Integrated Electronics

More information

CS/ECE 5780/6780: Embedded System Design

CS/ECE 5780/6780: Embedded System Design CS/ECE 5780/6780: Embedded System Design John Regehr Lecture 2: 68HC12 Architecture & Lab 1 Introduction Duff s Device void foo (int x, int *y, int *z) { switch (x % 8) { case 0: do { *y++ = *z++; case

More information

BASIC INTERFACING CONCEPTS

BASIC INTERFACING CONCEPTS Contents i SYLLABUS UNIT - I 8085 ARCHITECTURE Introduction to Microprocessors and Microcontrollers, 8085 Processor Architecture, Internal Operations, Instructions and Timings, Programming the 8085-Introduction

More information

Microcomputer Architecture and Programming

Microcomputer Architecture and Programming IUST-EE (Chapter 1) Microcomputer Architecture and Programming 1 Outline Basic Blocks of Microcomputer Typical Microcomputer Architecture The Single-Chip Microprocessor Microprocessor vs. Microcontroller

More information

THE 8051 MICROCONTROLLER

THE 8051 MICROCONTROLLER SECOND EDITION THE 8051 MICROCONTROLLER I. Scott MacKenzie University of Guelph Guelph, Ontario 'v ' ' Prentice Hall, Upper Saddle River, New Jersey 07458 INTRODUCTION TO MICROCONTROLLERS 1 1.1 Introduction

More information

Wed. Aug 23 Announcements

Wed. Aug 23 Announcements Wed. Aug 23 Announcements Professor Office Hours 1:30 to 2:30 Wed/Fri EE 326A You should all be signed up for piazza Most labs done individually (if not called out in the doc) Make sure to register your

More information

538 Lecture Notes Week 5

538 Lecture Notes Week 5 538 Lecture Notes Week 5 (Sept. 30, 2013) 1/15 538 Lecture Notes Week 5 Answers to last week's questions 1. With the diagram shown for a port (single bit), what happens if the Direction Register is read?

More information

EMBEDDED SYSTEMS: Jonathan W. Valvano INTRODUCTION TO THE MSP432 MICROCONTROLLER. Volume 1 First Edition June 2015

EMBEDDED SYSTEMS: Jonathan W. Valvano INTRODUCTION TO THE MSP432 MICROCONTROLLER. Volume 1 First Edition June 2015 EMBEDDED SYSTEMS: INTRODUCTION TO THE MSP432 MICROCONTROLLER Volume 1 First Edition June 2015 Jonathan W. Valvano ii Jonathan Valvano First edition 3 rd printing June 2015 The true engineering experience

More information

538 Lecture Notes Week 5

538 Lecture Notes Week 5 538 Lecture Notes Week 5 (October 4, 2017) 1/18 538 Lecture Notes Week 5 Announements Midterm: Tuesday, October 25 Answers to last week's questions 1. With the diagram shown for a port (single bit), what

More information

MC68HC908GR8A MC68HC908GR4A Data Sheet

MC68HC908GR8A MC68HC908GR4A Data Sheet MC68HC908GR8A MC68HC908GRA Data Sheet M68HC08 Microcontrollers MC68HC908GR8A Rev. 5 0/2007 freescale.com MC68HC908GR8A MC68HC908GRA Data Sheet To provide the most up-to-date information, the revision

More information

Introduction to Embedded Systems

Introduction to Embedded Systems Stefan Kowalewski, 4. November 25 Introduction to Embedded Systems Part 2: Microcontrollers. Basics 2. Structure/elements 3. Digital I/O 4. Interrupts 5. Timers/Counters Introduction to Embedded Systems

More information

Question Bank Microprocessor and Microcontroller

Question Bank Microprocessor and Microcontroller QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to

More information

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2. Ajit Pal Microcontrollers Principles and Applications +5 V 2K 8 8 bit dip switch P2 8 Reset switch Microcontroller AT89S52 100E +5 V +5 V 2.2K 10 uf RST 7 Segment common anode LEDs P1(0-6) & P3(0-6) 7

More information

S12CPUV2. Reference Manual HCS12. Microcontrollers. S12CPUV2/D Rev. 0 7/2003 MOTOROLA.COM/SEMICONDUCTORS

S12CPUV2. Reference Manual HCS12. Microcontrollers. S12CPUV2/D Rev. 0 7/2003 MOTOROLA.COM/SEMICONDUCTORS HCS12 Microcontrollers /D Rev. 0 7/2003 MOTOROLA.COM/SEMICONDUCTORS To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed

More information

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes

More information

Tutorial Introduction

Tutorial Introduction Tutorial Introduction PURPOSE: This tutorial describes the key features of the DSP56300 family of processors. OBJECTIVES: Describe the main features of the DSP 24-bit core. Identify the features and functions

More information

С and the Programming for Multitasking. Thomas W. Schultz. Purdue University West Lafayette, Indiana

С and the Programming for Multitasking. Thomas W. Schultz. Purdue University West Lafayette, Indiana С and the 8051 Programming for Multitasking Thomas W. Schultz Purdue University West Lafayette, Indiana PTR Prentice Hall Englewood Cliffs, New Jersey 07632 Preface Introduction Chapter 1 WHY THE 8051?

More information

THE 8051 MICROCONTROLLER

THE 8051 MICROCONTROLLER THIRD EDITION THE 8051 MICROCONTROLLER I. Scott MacKenzie University of Guelph Prentice Hall Upper Saddle River, New Jersey Columbus, Ohio 1 INTRODUCTION TO MICROCONTROLLERS 1 1.1 Introduction 1 1.2 Terminology

More information

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar

More information

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction. AVR XMEGA TM Product Introduction 32-bit AVR UC3 AVR Flash Microcontrollers The highest performance AVR in the world 8/16-bit AVR XMEGA Peripheral Performance 8-bit megaavr The world s most successful

More information

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS FATIMA MICHAEL COLLEGE OF ENGINEERING & TECHNOLOGY Senkottai Village, Madurai Sivagangai Main Road, Madurai -625 020 QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS UNIT 1 - THE 8085 AND 8086

More information

EE4390 Microprocessors

EE4390 Microprocessors EE4390 Microprocessors Lessons 23, 24 - Exceptions - Resets and Interrupts Revised: Aug 1, 2003 1 - Exceptions - Resets and Interrupts Polling vs. Interrupts Exceptions: Resets and Interrupts 68HC12 Exceptions

More information

Question Bank Part-A UNIT I- THE 8086 MICROPROCESSOR 1. What is microprocessor? A microprocessor is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary information

More information

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their S08 Highlighted Features Why Do I Need a Slave LIN Interface Controller (SLIC)? Design Challenges Slave synchronization Slave synchronizing to LIN messaging requires a cost versus resource trade-off. Your

More information

Automating with STEP 7 in STL

Automating with STEP 7 in STL Automating with STEP 7 in STL SIMATICS 7-300/400 Programmable Controllers by Hans Berger Publicis MCD Verlag Contents Introduction 16 1 SIMATIC S 7-300/400 Programmable Controller 17 1.1 Structure of the

More information

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

1. What is Microprocessor? Give the power supply & clock frequency of 8085? 1. What is Microprocessor? Give the power supply & clock frequency of 8085? A microprocessor is a multipurpose, programmable logic device that reads binary instructions from a storage device called memory

More information

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs. acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.) Module 0 Introduction Introduction to Embedded Systems, Real Time

More information

Microprocessors & Interfacing

Microprocessors & Interfacing Lecture Overview Microprocessors & Interfacing Interrupts (I) Lecturer : Dr. Annie Guo Introduction to Interrupts Interrupt system specifications Multiple sources of interrupts Interrupt priorities Interrupts

More information

Interrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1

Interrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1 Interrupts (I) Lecturer: Sri Notes by Annie Guo Week8 1 Lecture overview Introduction to Interrupts Interrupt system specifications Multiple Sources of Interrupts Interrupt Priorities Interrupts in AVR

More information

MSP430 Microcontroller Basics

MSP430 Microcontroller Basics MSP430 Microcontroller Basics John H. Davies AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO Newnes is an imprint of Elsevier N WPIGS Contents Preface

More information

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem

More information

ECE 372 Microcontroller Design Parallel IO Ports - Interrupts. ECE 372 Microcontroller Design Parallel IO Ports - Interrupts

ECE 372 Microcontroller Design Parallel IO Ports - Interrupts. ECE 372 Microcontroller Design Parallel IO Ports - Interrupts Interrupts An interrupt can be compared with a phone call interrupting your task which you will resume when the call is finished You can mask an interrupt just as you can decide not to answer any phone

More information

EE Embedded Systems Design. Lessons Exceptions - Resets and Interrupts

EE Embedded Systems Design. Lessons Exceptions - Resets and Interrupts EE4800-03 Embedded Systems Design Lessons 7-10 - Exceptions - Resets and Interrupts 1 - Exceptions - Resets and Interrupts Polling vs. Interrupts Exceptions: Resets and Interrupts 68HC12 Exceptions Resets

More information

Table of Contents COMPANY PROFILE 1-1 SECTION 1. INTRODUCTION 1-1

Table of Contents COMPANY PROFILE 1-1 SECTION 1. INTRODUCTION 1-1 COMPANY PROFILE 1-1 SECTION 1. INTRODUCTION 1-1 Introduction... 1-2 Manual Objective... 1-3 Device Structure... 1-4 Development Support... 1-6 Device Varieties... 1-7 Style and Symbol Conventions... 1-12

More information

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar

More information

Programming 8-bit PIC Microcontrollers in С

Programming 8-bit PIC Microcontrollers in С Programming 8-bit PIC Microcontrollers in С with Interactive Hardware Simulation Martin P. Bates älllllltlilisft &Щ*лЛ AMSTERDAM BOSTON HEIDELBERG LONDON ^^Ш NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

Chapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware

More information

Microprocessors/Microcontrollers

Microprocessors/Microcontrollers Microprocessors/Microcontrollers A central processing unit (CPU) fabricated on one or more chips, containing the basic arithmetic, logic, and control elements of a computer that are required for processing

More information

7. Discuss the hardware signals and superscalar architecture of Pentium BTL 2 Understand

7. Discuss the hardware signals and superscalar architecture of Pentium BTL 2 Understand UNIT I HIGH PERFORMANCE CISC ARCHITECTURE PENTIUM CPU Architecture- Bus Operations Pipelining Branch predication floating point unit- Operating Modes Paging Multitasking Exception and Interrupts Instruction

More information

Microcontroller basics

Microcontroller basics FYS3240 PC-based instrumentation and microcontrollers Microcontroller basics Spring 2017 Lecture #4 Bekkeng, 30.01.2017 Lab: AVR Studio Microcontrollers can be programmed using Assembly or C language In

More information

UNIT II PROCESSOR AND MEMORY ORGANIZATION

UNIT II PROCESSOR AND MEMORY ORGANIZATION UNIT II PROCESSOR AND MEMORY ORGANIZATION Structural units in a processor; selection of processor & memory devices; shared memory; DMA; interfacing processor, memory and I/O units; memory management Cache

More information

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud. Chapter 1 Microprocessor architecture ECE 3130 Dr. Mohamed Mahmoud The slides are copyright protected. It is not permissible to use them without a permission from Dr Mahmoud http://www.cae.tntech.edu/~mmahmoud/

More information

Interrupt/Timer/DMA 1

Interrupt/Timer/DMA 1 Interrupt/Timer/DMA 1 Exception An exception is any condition that needs to halt normal execution of the instructions Examples - Reset - HWI - SWI 2 Interrupt Hardware interrupt Software interrupt Trap

More information

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) (Revision-10) FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) PART-A (Maximum marks : 10) I. Answer all

More information

The Freescale MC908JL16 Microcontroller

The Freescale MC908JL16 Microcontroller Ming Hsieh Department of Electrical Engineering EE 459Lx - Embedded Systems Design Laboratory The Freescale MC908JL16 Microcontroller by Allan G. Weber 1 Introduction The Freescale MC908JL16 (also called

More information

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system. CPU ARCHITECTURE QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system. ANSWER 1 Data Bus Width the width of the data bus determines the number

More information

PD215 Mechatronics. Week 3/4 Interfacing Hardware and Communication Systems

PD215 Mechatronics. Week 3/4 Interfacing Hardware and Communication Systems PD215 Mechatronics Week 3/4 Interfacing Hardware and Communication Systems Interfacing with the physical world A compute device (microprocessor) in mechatronic system needs to accept input information

More information

PROGRAMMING AND CUSTOMIZING

PROGRAMMING AND CUSTOMIZING PROGRAMMING AND CUSTOMIZING THE PICAXE MICROCONTROLLER SECOND EDITION DAVID LINCOLN Mc Grauu Hill New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore

More information

8086 Interrupts and Interrupt Responses:

8086 Interrupts and Interrupt Responses: UNIT-III PART -A INTERRUPTS AND PROGRAMMABLE INTERRUPT CONTROLLERS Contents at a glance: 8086 Interrupts and Interrupt Responses Introduction to DOS and BIOS interrupts 8259A Priority Interrupt Controller

More information

MC68HC908GR16 Data Sheet

MC68HC908GR16 Data Sheet MC68HC908GR16 Data Sheet M68HC08 Microcontrollers MC68HC908GR16 Rev. 5.0 0/2007 freescale.com MC68HC908GR16 Data Sheet To provide the most up-to-date information, the revision of our documents on the

More information

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer: Q.2 a. Discuss and differentiate between a Microprocessor and a Microcontroller. Microprocessor is an IC which has only the CPU inside them i.e. only the processing powers such as Intel s Pentium 1,2,3,4,

More information

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices. Code No: R05320202 Set No. 1 1. (a) Discuss the minimum mode memory control signals of 8086? (b) Explain the write cycle operation of the microprocessor with a neat timing diagram in maximum mode. [8+8]

More information

EC 6504 MICROPROCESSOR AND MICROCONTROLLER

EC 6504 MICROPROCESSOR AND MICROCONTROLLER DEPARTMENTOFELECTRONICS&COMMUNICATIONENGINEERING EC 6504 MICROPROCESSOR AND MICROCONTROLLER UNIT I THE 8086 MICROPROCESSOR PARTA 1. What is microprocessor? What is the difference between a MP and CPU?

More information

Introduction ADSP-2100 FAMILY OF PROCESSORS

Introduction ADSP-2100 FAMILY OF PROCESSORS Introduction 1 1.1 OVERVIEW This book presents a compilation of routines for a variety of common digital signal processing applications based on the ADSP-2100 DSP microprocessor family. These routines

More information

Basics of Microprocessor

Basics of Microprocessor Unit 1 Basics of Microprocessor 1. Microprocessor Microprocessor is a multipurpose programmable integrated device that has computing and decision making capability. This semiconductor IC is manufactured

More information

Microcontroller & Interfacing

Microcontroller & Interfacing Course Title Course Code Microcontroller & Interfacing EC406 Lecture : 3 Course Credit Practical : 1 Tutorial : 0 Total : 4 Course Objective At the end of the course the students will be able to Understand

More information

Introduction to Microcontrollers

Introduction to Microcontrollers Motorola M68HC11 Specs Assembly Programming Language BUFFALO Topics of Discussion Microcontrollers M68HC11 Package & Pinouts Accumulators Index Registers Special Registers Memory Map I/O Registers Instruction

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK VII SEMESTER EC6013 Advanced Microprocessors and Microcontrollers

More information

Diploma in Embedded Systems

Diploma in Embedded Systems Diploma in Embedded Systems Duration: 5 Months[5 days a week,3 hours a day, Total 300 hours] Module 1: 8051 Microcontroller in Assemble Language Characteristics of Embedded System Overview of 8051 Family

More information

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM i SYLLABUS UNIT - 1 CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS Computer Types, Functional Units, Basic Operational Concepts, Bus Structures, Software, Performance, Multiprocessors and Multicomputers, Historical

More information

INTRODUCTION TO FLEXIO

INTRODUCTION TO FLEXIO INTRODUCTION TO FLEXIO Osvaldo Romero Applications Engineer EXTERNAL USE Agenda Introduction to FlexIO FlexIO Main Features FlexIO Applications Freescale Products with FlexIO Collaterals\Tools for FlexIO

More information

Getting Started with the HCS12 IDE

Getting Started with the HCS12 IDE Getting Started with the HCS12 IDE B. Ackland June 2015 This document provides basic instructions for installing and using the MiniIDE Integrated Development Environment and the Java based HCS12 simulator.

More information

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY B.E.,/B.TECH., ELECTRONICS EC6504 MICROPROCESSORS & MICRO CONTROLLERS COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS UNIT 1 AND 2 CS SUBJECT

More information

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1 CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1 Data representation: (CHAPTER-3) 1. Discuss in brief about Data types, (8marks)

More information

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an Microcontroller Basics MP2-1 week lecture topics 2 Microcontroller basics - Clock generation, PLL - Address space, addressing modes - Central Processing Unit (CPU) - General Purpose Input/Output (GPIO)

More information

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers. Set No. 1 IV B.Tech I Semester Supplementary Examinations, March - 2017 COMPUTER ARCHITECTURE & ORGANIZATION (Common to Electronics & Communication Engineering and Electronics & Time: 3 hours Max. Marks:

More information

HC11 Instruction Set

HC11 Instruction Set HC11 Instruction Set Instruction classes 1. Accumulator and Memory 2. Stack and Index Register 3. Condition Code Register 4. Program control instructions CMPE12 Summer 2009 19-2 1 Accumulator and memory

More information

ARM CORTEX-R52. Target Audience: Engineers and technicians who develop SoCs and systems based on the ARM Cortex-R52 architecture.

ARM CORTEX-R52. Target Audience: Engineers and technicians who develop SoCs and systems based on the ARM Cortex-R52 architecture. ARM CORTEX-R52 Course Family: ARMv8-R Cortex-R CPU Target Audience: Engineers and technicians who develop SoCs and systems based on the ARM Cortex-R52 architecture. Duration: 4 days Prerequisites and related

More information

Development Tools. 8-Bit Development Tools. Development Tools. AVR Development Tools

Development Tools. 8-Bit Development Tools. Development Tools. AVR Development Tools Development Tools AVR Development Tools This section describes some of the development tools that are available for the 8-bit AVR family. Atmel AVR Assembler Atmel AVR Simulator IAR ANSI C-Compiler, Assembler,

More information

ECE3120: Computer Systems Hardware & Software Development Tools

ECE3120: Computer Systems Hardware & Software Development Tools ECE3120: Computer Systems Hardware & Software Development Tools Manjeera Jeedigunta http://blogs.cae.tntech.edu/msjeedigun21 Email: msjeedigun21@tntech.edu Tel: 931-372-6181, Prescott Hall 120 The HCS12

More information

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics Chapter 4 Objectives Learn the components common to every modern computer system. Chapter 4 MARIE: An Introduction to a Simple Computer Be able to explain how each component contributes to program execution.

More information

Freescale Semiconductor, I

Freescale Semiconductor, I nc. Application Note Rev. 0, 4/2004 Software Drivers for Tango3 RF Transmitter and Romeo2 RF Receiver ICs By John Logan 8/16-Bit Division East Kilbride, Scotland Introduction This application note describes

More information

EEL 4744C: Microprocessor Applications. Lecture 7. Part 1. Interrupt. Dr. Tao Li 1

EEL 4744C: Microprocessor Applications. Lecture 7. Part 1. Interrupt. Dr. Tao Li 1 EEL 4744C: Microprocessor Applications Lecture 7 Part 1 Interrupt Dr. Tao Li 1 M&M: Chapter 8 Or Reading Assignment Software and Hardware Engineering (new version): Chapter 12 Dr. Tao Li 2 Interrupt An

More information

Reading Assignment. Interrupt. Interrupt. Interrupt. EEL 4744C: Microprocessor Applications. Lecture 7. Part 1

Reading Assignment. Interrupt. Interrupt. Interrupt. EEL 4744C: Microprocessor Applications. Lecture 7. Part 1 Reading Assignment EEL 4744C: Microprocessor Applications Lecture 7 M&M: Chapter 8 Or Software and Hardware Engineering (new version): Chapter 12 Part 1 Interrupt Dr. Tao Li 1 Dr. Tao Li 2 Interrupt An

More information

CN310 Microprocessor Systems Design

CN310 Microprocessor Systems Design CN310 Microprocessor Systems Design Micro Architecture Nawin Somyat Department of Electrical and Computer Engineering Thammasat University 28 August 2018 Outline Course Contents 1 Introduction 2 Simple

More information

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad Introduction to MS-DOS Debugger DEBUG In this laboratory, we will use DEBUG program and learn how to: 1. Examine and modify the contents of the 8086 s internal registers, and dedicated parts of the memory

More information

These three counters can be programmed for either binary or BCD count.

These three counters can be programmed for either binary or BCD count. S5 KTU 1 PROGRAMMABLE TIMER 8254/8253 The Intel 8253 and 8254 are Programmable Interval Timers (PTIs) designed for microprocessors to perform timing and counting functions using three 16-bit registers.

More information

8051 Overview and Instruction Set

8051 Overview and Instruction Set 8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different

More information

Introduction to Embedded Systems and Chapter 1: Introduction to HCS12/MC9S12. EE383: Introduction to Embedded Systems University of Kentucky

Introduction to Embedded Systems and Chapter 1: Introduction to HCS12/MC9S12. EE383: Introduction to Embedded Systems University of Kentucky Introduction to Embedded Systems and Chapter 1: Introduction to HCS12/MC9S12 EE383: Introduction to Embedded Systems University of Kentucky Samir Rawashdeh With slides based on material by H. Huang Delmar

More information

Q. P. Code : b. Draw and explain the block dig of a computer with microprocessor as CPU.

Q. P. Code : b. Draw and explain the block dig of a computer with microprocessor as CPU. Q. P. Code : 08235 (2½ Hours) [Total Marks: 75] N. B.: (1) All questions are compulsory. (2) Make suitable assumptions wherever necessary and state the assumptions made. (3) Answers to the same question

More information

Architecture of 8085 microprocessor

Architecture of 8085 microprocessor Architecture of 8085 microprocessor 8085 consists of various units and each unit performs its own functions. The various units of a microprocessor are listed below Accumulator Arithmetic and logic Unit

More information

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013) BHARATHIDASAN ENGINEERING COLLEGE III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013) FREQUENTLY ASKED QUESTIONS IN UNIVERSITY EXAMINATION PART A UNIT 1-8085 PROCESSOR 1. Draw the

More information

Introduction to Computers - Chapter 4

Introduction to Computers - Chapter 4 Introduction to Computers - Chapter 4 Since the invention of the transistor and the first digital computer of the 1940s, computers have been increasing in complexity and performance; however, their overall

More information

SECTION 5 RESETS AND INTERRUPTS

SECTION 5 RESETS AND INTERRUPTS SECTION RESETS AND INTERRUPTS Resets and interrupt operations load the program counter with a vector that points to a new location from which instructions are to be fetched. A reset immediately stops execution

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within up to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the

More information

Lab 9: On-Board Time Generation and Interrupts

Lab 9: On-Board Time Generation and Interrupts Lab 9: On-Board Time Generation and Interrupts Summary: Develop a program and hardware interface that will utilize externally triggered interrupts and the onboard timer functions of the 68HC12. Learning

More information

S12 and S12XD Family Compatibility Steve McAslan, 8/16-bit Products Division, East Kilbride Joachim Krücken, 8/16-bit Products Division, Munich

S12 and S12XD Family Compatibility Steve McAslan, 8/16-bit Products Division, East Kilbride Joachim Krücken, 8/16-bit Products Division, Munich Freescale Semiconductor Application Note Document Number: AN2615 Rev. 4, 07/2007 S12 and S12XD Family Compatibility by: Steve McAslan, 8/16-bit Products Division, East Kilbride Joachim Krücken, 8/16-bit

More information

MEMORY, OPERATING MODES, AND INTERRUPTS

MEMORY, OPERATING MODES, AND INTERRUPTS SECTION 3, OPERATING MODES, AND INTERRUPTS MOTOROLA 3-1 Paragraph Number SECTION CONTENTS Section Page Number 3.1 INTRODUCTION................................ 3-3 3.2 DSP56003/005 OPERATING MODE REGISTER

More information

4 bits Microcontroller

4 bits Microcontroller EM MICROELECTRONIC - MARIN SA Question & answer 4 bits Microcontroller Questions and s Copyright 2001, EM Microelectronic-Marin SA 1 www.emmicroelectronic.com 1 Q: Is there an instruction to rotate left

More information

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information