CE-320 Microcomputers I Winter 2010 LAB 1: MINIIDE GROUP #: NAME: PARTNER: Lab 1 Page 1
|
|
- Jasper Parsons
- 5 years ago
- Views:
Transcription
1 LAB 1: MINIIDE GROUP #: NAME: PARTNER: Lab 1 Page 1
2 LAB 1: MINIIDE GOALS Understand Wytec s Dragon12+ evaluation board Know how to use Dragon12 commands Understand an integrated development environment (IDE) Know how to use MiniIDE WHAT TO DEMONSTRATE/SUBMIT Completed figures. Answers to questions. INTRODUCTION This week s lab is intended to familiarize you with Wytec s Dragon12+ evaluation board and the MiniIDE interface program. The Dragon12+ board runs the monitor program D-Bug12 which uses a very standard set of commands to communicate with a PC using a serial port. Using MiniIDE, you will enter some simple machine language programs and some data into the Dragon12+ board and trace the execution of the programs. The assignment in the following section uses the D-Bug12 commands described in pages of the textbook (also available in MiniIDE). The assignment will tell you which commands to use, and the book gives examples of using each command. Page 86 shows a table that summarizes the instructions and may be useful in future weeks. Lab 1 Page 2
3 Summary of D-Bug12 commands DRAGON12+ EVALUATION BOARD This section gives a little background on the microprocessor board and establishing communication with it. 1. Double-check that the serial cable is plugged into the upper D-connector by the LCD screen and that the power jack is plugged in (If everyone is following directions, the serial cable should never be moved, but the power cord is often removed for long weekends). 2. Open MiniIDE by clicking on the desktop icon. 3. Verify that the terminal window is open. The Terminal window button in the menu bar should be highlighted. 4. Verify that the Terminal Connect/Disconnect button in the menu bar is highlighted. Lab 1 Page 3
4 5. Press the light blue RESET button on the Dragon12+ board, located along the bottom edge in the middle of the board. The 8 red LEDs should light up from left to right, and a DRAGON12plus message should appear on the LCD screen. Also, a D-Bug12 message should print to MiniIDE s terminal window. This terminal is used to send the commands to the evaluation board. ASSIGNMENT A program to add five numbers. Figure 1 shows an assembly language program and the corresponding machine code to add a list of five numbers beginning at address 1000h, and it stores the result in address 1008h. Code Memory Contents Assembly Code Line Address 1: 2000h B6 LDAA 1000h 2001h h 00 2: 2003h BB ADDA 1001h 2004h h 01 3: 2006h BB ADDA 1002h 2007h h 02 4: 2009h BB ADDA 1003h 200Ah Bh 03 5: 200Ch BB ADDA 1004h 200Dh Eh 04 6: 200Fh 7A STAA 1008h 2010h h 08 7: 2012h 3F STOP Figure 1 - Program to Add Five Numbers 1. Use the BF command to set locations 2000h to 2FFFh to all 00 s. 2. Use the MM command to enter each byte of machine code into the appropriate locations. Lab 1 Page 4
5 3. Use the MD command to display the entire program on the screen. Manually verify that the program has been entered correctly before continuing. 4. Use the MM command to enter the data values in Figure 2 in the appropriate locations. Memory Address 1000h 1001h 1002h 1003h 1004h 1008h Contents 3Ah 5Eh FEh 8Bh 56h 00h Figure 2 - Initial Data (Note: addresses are not consecutive) 5. Use the RM command (or similar) to set the A register to FFh. 6. Set each of the N, Z, V, and C bits to 0 (see Examples 3.8 on page 94 of the textbook). 7. Set the PC to 2000h using the RM command. 8. Use the RD command to verify the modified values of the registers. 9. Use the G command to run the program. 10. Use the MD command to examine the answer in location 1008h. QUESTION 1: What answer does the program calculate? QUESTION 2: If the numbers were added as unsigned bytes and the number of digits in the answer was not limited, what is the correct sum of the five numbers? 11. Repeat steps 4 through 8, then use the T command to trace the program s execution line by line and complete the program trace in Figure 3. Lab 1 Page 5
6 Recall that each line in the trace shows the register contents after that instruction has been executed. Trace Line Code Line PC A N Z V C Figure 3 - Program Trace QUESTION 3: The running sum in accumulator A may not have a valid value based on the value in the previous line and the number being added to it. Which trace lines contain invalid running sums in A if the numbers were unsigned? QUESTION 4: Which trace lines contain invalid running sums in A if the numbers were signed? QUESTION 5: Which condition code register bits correspond to the unsigned overflows and signed overflows in the lines from Questions 3 and 4? Circle one for each case. Unsigned overflow: N Z V C Signed overflow: N Z V C Lab 1 Page 6
7 A looping program to add five numbers. Figure 4 shows an assembly language program and the corresponding machine code. This program adds five numbers like the first program, but it uses a loop instead. Code Memory Contents Assembly Line Address 1: 2000h 87 CLRA 2: 2001h CE LDX #1000h 2002h h 00 3: 2004h C6 LDAB #5 2005h 05 4: 2006h 27 BEQ 06h 2007h 06 5: 2008h AB ADDA 0,X 2009h 00 6: 200Ah 08 INX 7: 200Bh 53 DECB 8: 200Ch 20 BRA Dh F8 9: 200Eh 6A STAA 3,X 200Fh 03 10: 2010h 3F STOP Figure 4 - Program to Add Five Numbers 1. Use the MM command to enter each byte of machine code into the appropriate locations. 2. Use the MD command to display the entire program on the screen. Manually verify that the program has been entered correctly before continuing. 3. Use the MM command to enter the data values in Figure 2 in the appropriate locations. 4. Use the RM command to set the A and B registers to FFh and the X register to FFFFh (Note that Debug-12 refers to the X register as IX to distinguish it from the X bit in the CCR register, and Y is called IY to match the convention used for the X register). 5. Set each of the N, Z, V, and C bits to 0 (see Examples 3.8 on page 94 of the textbook). 6. Set the PC to 2000h using the RM command. 7. Use the RD command to verify the modified values of the registers. 8. Use the G command to run the program. 9. Use the MD command to examine the answer in location 1008h. Lab 1 Page 7
8 10. Repeat steps 3 through 7, then use the T command to trace the program s execution line by line for the first 15 executed instructions and complete the program trace in Figure 5. Recall that each line in the trace should show the register contents after that instruction has been executed. Trace Line Code Line PC X A B N Z V C Figure 5 - Program Trace 11. Repeat steps 3 through 7, and then add a breakpoint at address 2006h using the BR command. 12. Run the program from the beginning. The address displayed in the PC should be the address at which you added a breakpoint in Step 11. Note that when the processor stops at a breakpoint, the instruction that the PC points to has not yet been executed. 13. Complete the breakpoint trace for Iteration 0 in Figure 6 based on the register values at the breakpoint. Lab 1 Page 8
9 14. Use the G command to proceed from the breakpoint and complete the remaining rows in Figure 6. You will need to use the G command several times. Do not proceed once the end of the program has been reached. Iteration PC X A B N Z V C Figure 6 - Breakpoint Trace 15. Repeat steps 3 through 7 and run the program again from the beginning. When it halts at the breakpoint, use the NOBR command to remove the breakpoint (This version of Debug-12 will not correctly trace through an instruction with a breakpoint). Trace the program with the command until address 2006h is reached again. QUESTION 6: Which trace lines of Figure 5 correspond to the lines that were just traced? 16. Continue execution with the G command. QUESTION 7: What address does the PC contain when execution halts? Lab 1 Page 9
10 QUESTION 8: Which lines of code in Figure 4 must be changed to write the sum to memory location 3008h? Also write a line (or lines) of the assembly program for it. QUESTION 9: Which lines of code in Figure 4 must be changed to add numbers beginning at memory location 3500h? Also write a line (or lines) of the assembly program for it. QUESTION 10: Which lines of code in Figure 4 must be changed to add numbers instead of 5? Also write a line (or lines) of the assembly program for it. Lab 1 Page 10
Lab 1 MC9S12 Assembler and Monitor
Lab 1 MC9S12 Assembler and Monitor Introduction and Objectives The purpose of this lab is to help you become familiar with your Dragon12-Plus Evaluation Board (EVB), and some of the software tools which
More informationLab 1 MC9S12 Assembler and Monitor
Lab 1 MC9S12 Assembler and Monitor Introduction and Objectives The purpose of this lab is to help you become familiar with your Dragon12-Plus Evaluation Board (EVB), and some of the software tools which
More informationECE L A B 1 Introduction ASSEMBLY PROGRAMMING WITH MINIIDE
L A B 1 Introduction ASSEMBLY PROGRAMMING WITH MINIIDE The purpose of this lab is to introduce you to the layout and structure of Assembly Language programs and their format. You will write your own programs
More informationLab 2 Part 1 Assembly Language Programming and 9S12 Ports
Lab 2 Part 1 Assembly Language Programming and 9S12 Ports In this sequence of three labs, you will learn how to write simple assembly language programs for the MC9S12 microcontroller, and how to use general
More informationECE3120: 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 Using the
More information1. Memory Mapped Systems 2. Adding Unsigned Numbers
1 Memory Mapped Systems 2 Adding Unsigned Numbers 1 1 Memory Mapped Systems Our system uses a memory space Address bus is 16-bit locations Data bus is 8-bit 2 Adding Unsigned Numbers 2 Our system uses
More informationLecture 6 Assembly Programming: Branch & Iteration
CPE 390: Microprocessor Systems Spring 2018 Lecture 6 Assembly Programming: Branch & Iteration Bryan Ackland Department of Electrical and Computer Engineering Stevens Institute of Technology Hoboken, NJ
More informationECE 3120 Lab 1 Code Entry, Assembly, and Execution
ASSEMBLY PROGRAMMING WITH CODE WARRIOR The purpose of this lab is to introduce you to the layout and structure of assembly language programs and their format, as well as to the use of the Code Warrior
More informationLECTURE #21: G-CPU & Assembly Code EEL 3701: Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz
LECTURE #21: G-CPU & Assembly Code EEL 3701: Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz G-CPU Important Notes (see Schwartz s lecture for a general overview) - The
More informationECE 3120 Fall 2013 Lab 1 Code Entry, Assembly, and Execution
ASSEMBLY PROGRAMMING WITH CODE WARRIOR The purpose of this lab is to introduce you to the layout and structure of assembly language programs and their format, as well as to the use of the Code Warrior
More informationEE 308 LAB 1 ASSEMBLER, SIMULATOR, AND MONITOR. Introduction and Objectives
EE 308 LAB 1 ASSEMBLER, SIMULATOR, AND MONITOR Introduction and Objectives This laboratory introduces you to the following 68HC12 assembly language programming tools: The 68HC12 assembler CA6812. This
More informationGetting 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 information2) [ 2 marks] Both of the following statements cause the value $0300 to be stored in location $1000, but at different times. Explain the difference.
1) [ 9 marks] Write a sequence of directives for an HCS12 assembly language program that performs all of these tasks, in this order: a) Define an array called Measurements starting from memory location
More informationME4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 7
ME4447/6405 Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics Instructor: Professor Charles Ume LECTURE 7 Reading Assignments Reading assignments for this week and next
More information68HC12 Training Lab Student Exercise Book
68HC12 Training Lab Student Exercise Book Date: 13 September, 2000 Document Revision:1.01 BiPOM Electronics 16301 Blue Ridge Road, Missouri City, Texas 77489 USA Telephone: (713) 661-4214 Fax: (281) 416-2806
More informationCitrix IMA Service Error Codes
Citrix IMA Service Error Codes This article contains Citrix IMA Service error codes that can appear in the Event Viewer. Page 1 IMA Error Codes Hex Value Signed Value Unsigned Value Mnemonic 80000001h
More informationMost of the HC12 s instructions access data in memory There are several ways for the HC12 to determine which address to access
HC12 Addressing Modes Instruction coding and execution o Inherent, Extended, Direct, Immediate, Indexed, and Relative Modes o Summary of MC9S12 Addressing Modes o Using X and Y registers as pointers o
More informationSample Problem Set #1
Sample Problem Set #1 Notes: These problems are typical exam problems; most are drawn from previous homeworks and exams. This exam is open book, open notes. It may help to have a calculator. For partial
More informationEE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University
EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1 Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University What is Assembly Language? Assembly language is a programming language
More informationWhat is an Addressing Mode?
Addressing Modes 1 2 What is an Addressing Mode? An addressing mode is a way in which an operand is specified in an instruction. There are different ways in which an operand may be specified in an instruction.
More informationIntroduction 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 informationChapter 3: HCS12 Hardware and Software Development Tools. The HCS12 Microcontroller. Han-Way Huang. Minnesota State University, Mankato
Chapter 3: HCS12 Hardware and Software Development Tools The HCS12 Microcontroller Han-Way Huang Minnesota State University, Mankato September 2009 H. Huang Transparency No.3-1 Development Tools Software
More informationUNIVERSITY OF MANITOBA DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING. Term Test #2 Solution ECE 3610 MICROPROCESSING SYSTEMS
ECE 3610 Test 2 Solution 1 of 7 PRINT LAST NAME: STUDENT NUMBER PRINT FIRST NAME: UNIVERSITY OF MANITOBA DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING DATE: Feb. 28, 11; TIME: 6:00-8:00 P.M. Term Test
More informationECE331 Handout 3- ASM Instructions, Address Modes and Directives
ECE331 Handout 3- ASM Instructions, Address Modes and Directives ASM Instructions Functional Instruction Groups Data Transfer/Manipulation Arithmetic Logic & Bit Operations Data Test Branch Function Call
More informationEECE.3170: Microprocessor Systems Design I Spring 2016
EECE.3170: Microprocessor Systems Design I Spring 2016 Exam 1 Solution 1. (20 points, 5 points per part) Multiple choice For each of the multiple choice questions below, clearly indicate your response
More informationCOE538 Lecture Notes Week 3 (Week of Sept 17, 2012)
COE538 Lecture Notes: Week 3 1 of 11 COE538 Lecture Notes Week 3 (Week of Sept 17, 2012) Announcements My lecture sections should now be on Blackboard. I've also created a discussion forum (and anonymous
More informationCross Assembly and Program Development
Cross Assembly and ENGG4640/3640; Fall 2004; Prepared by Radu Muresan 1 Introduction Text Editor Program Ex. DOS, Notepad, Word saved as ASCII Source Code Assembler or Cross-Assembler Object Code Machine
More informationIntroduction to Embedded Microcomputer Systems Lecture 8.1. Computers in the future may weigh no more than 1.5 tons Popular Science, 1949
Introduction to Embedded Microcomputer Systems Lecture 8.1 Computers in the future may weigh no more than 1.5 tons Popular Science, 1949 Recap Debugging: Monitor, dump TExaS Real 9S12DG Overview Addition
More informationECE 331: PC Lab 3 Stack and Subroutines
ECE 331: PC Lab 3 Stack and Subroutines Professor Andrew Mason Michigan State University Rev: S11 p.1 Announcements Objectives Topics Outline Review starting and using ASM development environment Pushing
More informationExam I Review February 2017
Exam I Review February 2017 Binary Number Representations Conversion of binary to hexadecimal and decimal. Convert binary number 1000 1101 to hexadecimal: Make groups of 4 bits to convert to hexadecimal,
More informationHCS12 Microcontroller and Embedded Systems: Using Assembly and C with CodeWarrior 1 st Edition
Online Instructor s Manual to accompany HCS12 Microcontroller and Embedded Systems: Using Assembly and C with CodeWarrior 1 st Edition Muhammad Ali Mazidi Danny Causey Prentice Hall Boston Columbus Indianapolis
More informationECE 372 Microcontroller Design Basic Assembly Programming. ECE 372 Microcontroller Design Basic Assembly Programming
For Loop Example: for(j=0; j
More information1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M. 2 PUSH/ POP R16/M16/SR/F 2 x ( ) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M
Increment R16 1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M 4 x (16+48) = 256 opcodes 2 PUSH/ POP R16/M16/SR/F 2 x (8+24+4+1) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M 4 x (16+48) = 256 opcodes INC
More informationET355 Microprocessors Thursday 6:00 pm 10:20 pm
ITT Technical Institute ET355 Microprocessors Thursday 6:00 pm 10:20 pm Unit 4 Chapter 6, pp. 139-174 Chapter 7, pp. 181-188 Unit 4 Objectives Lecture: BCD Programming Examples of the 805x Microprocessor
More informationMicrocontrollers. 2IN60: Real-time Architectures (for automotive systems) Mike Holenderski,
Microcontrollers 2IN60: Real-time Architectures (for automotive systems) Goals for this slide set Describe the architecture of a microcontroller Explain the purpose of an Instruction Set Architecture and
More informationLab 7: Asynchronous Serial I/O
CpE 390 Microprocessor Systems Lab 7: Asynchronous Serial I/O 1. Introduction Serial communications is the transfer of data, one bit at a time, over a communications channel. Serial communications can
More informationIntroduction to Microcontrollers II
Introduction to Microcontrollers II brset, brclr Indexed Addressing Example µp Laboratory #2 BUFFALO Assembling Code EECE 143 Digital Design Project Purpose: To allow students to design their own digital
More informationEE 3170 Microcontroller Applications
Q. 3.9 of HW3 EE 37 Microcontroller Applications (a) (c) (b) (d) Midterm Review: Miller Chapter -3 -The Stuff That Might Be On the Exam D67 (e) (g) (h) CEC23 (i) (f) (j) (k) (l) (m) EE37/CC/Lecture-Review
More information16.317: Microprocessor Systems Design I Fall 2013
16.317: Microprocessor Systems Design I Fall 2013 Exam 1 Solution 1. (20 points, 5 points per part) Multiple choice For each of the multiple choice questions below, clearly indicate your response by circling
More informationCodeWarrior. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff
CodeWarrior 1 Assembler An assembler is a program that translates assembly language into machine code. Machine code are the numbers that the CPU recognizes as instructions. $B6 $10 $00 Assembly language
More informationIntroduction to Microcontrollers II
Introduction to Microcontrollers II brset, brclr Indexed Addressing Example µp Laboratory #2 BUFFALO Assembling Code EECE 143 Digital Design Project Purpose:To allow students to design their own digital
More information1 Overview. T10/ revision 0
Date: 10/22/08 To: T10 Committee (SCSI) From: George Penokie (LSI) Subject: SPC-4: Cache hits and power on statistics 1 Overview There are some performance statistics relating to cache hits that would
More informationIt translates (converts) assembly language to machine code.
Assemblers 1 It translates (converts) assembly language to machine code. Example: LDAA $0180 Uses an instruction set manual: Tests/Final Exam. B6 01 80 Use software: Like the IDE in the Lab. 2 Assembler:
More informationAddition and Subtraction of Hexadecimal Numbers Simple assembly language programming
Addition and Subtraction of Hexadecimal Numbers Simple assembly language programming o A simple Assembly Language Program o Assembling an Assembly Language Program o Simple 9S12 programs o Hex code generated
More informationThe Motorola 68HC11 Instruc5on Set
The Motorola 68HC11 Instruc5on Set Some Defini5ons A, B * accumulators A and B D * double accumulator (A + B) IX, IY * index registers X and Y SP * stack pointer M * some memory loca5on opr * an operand
More informationIS-Dev Kit-7 & 7D User s Manual
IS-Dev Kit-7 (ISC15ANP4) IS-Dev Kit-7 & 7D User s Manual Revision A Firmware Version 2.4 IS-Dev Kit-7D (ISC01P) NKK SWITCHES 7850 E. Gelding Drive Scottsdale, AZ 85260 Toll Free 1-877-2BUYNKK (877-228-9655)
More informationY = (A + C) (A + B) (B + C)
EEL3701 Dr. Gugel Last Name First Name Spring 2012 Final Quiz UF ID# Open book and open notes, 90-minute examination to be done in non-red pencil or pen. No electronic devices permitted. All work and solutions
More informationAssembly Language Programming Assignment 1
U08809 Microprocessors Assembly Language Programming Assignment 1 1. Write a short assembly program that illustrates the use of the direct addressing mode, and the use of the MUL function 2 number2 slot
More informationInstructions. Philipp Koehn. 16 February 2018
Instructions Philipp Koehn 16 February 201 Philipp Koehn Computer Systems Fundamental: Instructions 16 February 201 1 number adder Philipp Koehn Computer Systems Fundamental: Instructions 16 February 201
More informationHong Kong Polytechnic University Department of Electronic and Information Engineering. Experiment On DOS File system
DOSFS/CC/v1 Hong Kong Polytechnic University Department of Electronic and Information Engineering Experiment On DOS File system Objectives : To study how an OS manages its file system in a floppy disk.
More informationThe due date for submitting this assignment has passed. 1) How many times will the following loop be executed? Depends on the initial value of A
X reviewer2@nptel.iitm.ac.in Courses» and Microcontrollers Unit 4 - Week 3 Announcements Course Ask a Question Progress Mentor Course outline How to access the portal Week 3 Assignment The due date for
More informationIS-DEV KIT-9 User Manual
IS-DEV KIT-9 User Manual Revision C Firmware Version 1.0 NKK SWITCHES 7850 E. Gelding Drive Scottsdale, AZ 85260 Toll Free 1-877-2BUYNKK (877-228-9655) Phone 480-991-0942 Fax 480-998-1435 e-mail
More informationIntroduction to the 9S12 Microcontroller
Introduction to the 9S12 Microcontroller o Harvard architecture and Princeton architecture o Memory map for a Princeton architecture microprocessor o 68HC12 Address Space o 68HC12 ALU o 68HC12 Programming
More informationProgramming the Motorola MC68HC11 Microcontroller
Programming the Motorola MC68HC11 Microcontroller COMMON PROGRAM INSTRUCTIONS WITH EXAMPLES aba Add register B to register A Similar commands are abx aby aba add the value in register B to the value in
More informationLecture 11: Advanced Arithmetic Instructions
Lecture 11: Advanced Arithmetic Instructions Today s Goals Use basic multiplication li and divisioni i instructions. ti Use shift and rotate instructions Multiplication Three different multiplication li
More information2. Arithmetic Instructions addition, subtraction, multiplication, divison (HCS12 Core Users Guide, Sections 4.3.4, and ).
AS12 Assembler Directives A Summary of 9S12 instructions Disassembly of 9S12 op codes Huang Section 1.8, Chapter 2 MC9S12 V1.5 Core User Guide Version 1.2, Section 12 o A labels is a name assigned the
More information538 Lecture Notes Week 3
538 Lecture Notes Week 3 (Sept. 16, 2013) 1/18 538 Lecture Notes Week 3 Answers to last week's questions 1 Write code so that the least significant bit of Accumulator A is cleared, the most significant
More informationExam 1 Feb. 23, 25, 27?
Exam 1 Feb. 23, 25, 27? You will be able to use all of the Motorola data manuals on the exam. No calculators will be allowed for the exam. Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed
More informationCET335 Microprocessor Interfacing Lab 5: LCD Interface (Bus Attached Peripheral)
CET335 Microprocessor Interfacing Lab 5: LCD Interface (Bus Attached Peripheral) Introduction: In this lab, you will learn the interface and operation of a bus-attached peripheral; in other words, a controller
More informationELEG3923 Microprocessor Ch.9 Timer Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.9 Timer Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Programming 8051 Timers Counter programming Timer programming
More information538 Lecture Notes Week 2
538 Lecture Notes Week 2 (Sept. 13, 2017) 1/15 Announcements 538 Lecture Notes Week 2 Labs begin this week. Lab 1 is a one-week lab. Lab 2 (starting next week) is a two-week lab. 1 Answers to last week's
More informationIS-Dev Kit-8 User Manual
IS-Dev Kit-8 User Manual Revision A IS-Dev Kit-8 Version 1.0 NKK SWITCHES 7850 E. Gelding Drive Scottsdale, AZ 85260 Toll Free 1-877-2BUYNKK (877-228-9655) Phone 480-991-0942 Fax 480-998-1435 e-mail
More informationComputer Organization and Assembly Language CSC-210
Computer Organization and Assembly Language CSC-2 Lab # Lab() Lab(2) Lab(3) Lab(4) Lab(5) Lab(6) Lab(7) Lab(8) Lab(9) Lab() Lab() Lab(2) Lab(3) Title Computer Anatomy Memory and ports Motherboard and cards
More informationN bit is set if result of operation in negative (MSB = 1) Z bit is set if result of operation is zero (All bits = 0)
Addition and Subtraction of Hexadecimal Numbers. Setting the C (Carry), V (Overflow), N (Negative) and Z (Zero) bits How the C, V, N and Z bits of the CCR are changed Condition Code Register Bits N, Z,
More informationIS-Dev Kit-8 User Manual
IS-Dev Kit-8 User Manual Revision E Version 3.0 IS18WWC1W Development Kit. NKK SWITCHES 7850 E. Gelding Drive Scottsdale, AZ 85260 Toll Free 1-877-2BUYNKK (877-228-9655) Phone 480-991-0942 Fax 480-998-1435
More informationExperiment N o 1. 1 Introduction to Assembly Language Programming
Experiment N o 1 1 Introduction to Assembly Language Programming Introduction: This experiment introduces the student to assembly language programming. In order to illustrate the basic concepts of assembly
More informationTotal: EEL 3701 Digital Logic & Computer Systems Final Exam Fall Semester 2007 COVER SHEET: Re-Grade Information: 1 (10) 2 (10) 3 (10) 4 (14) 5 (14)
COVER SHEET: Prob. Points: Re-Grade Information: Total: 1 (10) 2 (10) 3 (10) 4 (14) 5 (14) 6 (15) 7 (15) 8 (12) (100) 1 Remember to show ALL work here and in EVERY problem on this exam. [10%] 1. Circuit
More informationPractical Course File For
Practical Course File For Microprocessor (IT 473) B.Tech (IT) IV-SEM Department of IT University Institute of Engineering & Technology Panjab University, Chandigarh Page 1 INTRODUCTION... 4 EXPERIMENT-1:
More informationMicroprocessor I, Spring 2007 Lab 2: Assembling and executing instructions with DEBUG software Due on 03/02/2007, 12:30pm EST
16.317 Microprocessor I, Spring 2007 Lab 2: Assembling and executing instructions with DEBUG software Due on 03/02/2007, 12:30pm EST Reference: Walter A. Triebel and Avtar Singh, Lab Manual to Accompany
More informationHC12 Microprocessor. D-Bug12 Functions: Stepping Through Programs & Performing I/O. Dr. Bradley J. Bazuin
ECE 2510/4510/5530 HC12 Microprocessor D-Bug12 Functions: Stepping Through Programs & Performing I/O Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College
More informationIS-Dev Kit-6, 6D, 6C, 6HB User s Manual
IS-Dev Kit-6, 6D, 6C, 6HB User s Manual Revision C IS-Dev Kit-6 (IS15EBFP4RGB) Firmware Version 1.3 IS-Dev Kit-6D (IS01EBFRGB) IS-Dev Kit-6C (IS15ESBFP4RGB) IS-Dev Kit-6HB (IS15EBFP4RGB- 09YN) NKK SWITCHES
More informationInstruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts
Lecture 4 Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts One part is the task to be performed, called operation code or opcode in
More informationLAB WORK NO. 2 THE INTERNAL DATA REPRESENTATION
LAB WORK NO. 2 THE INTERNAL DATA REPRESENTATION 1. Object of lab work The purpose of this work is to understand the internal representation of different types of data in the computer. We will study and
More informationRyerson University Department of Electrical and Computer Engineering ELE 538 Microprocessor Systems Final Examination December 8, 2003
Ryerson University Department of Electrical and Computer Engineering ELE 538 Microprocessor Systems Final Examination December 8, 23 Name: Student Number: Time limit: 3 hours Section: Examiners: K Clowes,
More informationLecture 5 Assembly Programming: Arithmetic
CPE 390: Microprocessor Systems Spring 2018 Lecture 5 Assembly Programming: Arithmetic Bryan Ackland Department of Electrical and Computer Engineering Stevens Institute of Technology Hoboken, NJ 07030
More informationUNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING. Principles of Computer Operation
UNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING Experiment PCO: Principles of Computer Operation Location: Part I Lab., CYC 102. Objective: The objective is to learn the basic
More informationComputer Organization and Assembly Language. Lab Session 01
Objective: Lab Session 01 Introduction to Assembly Language Tools and Familiarization with Emu8086 environment To be able to understand Data Representation and perform conversions from one system to another
More informationAddition and Subtraction of Hexadecimal Numbers Simple assembly language programming
Addition and Subtraction of Hexadecimal Numbers Simple assembly language programming o A simple Assembly Language Program o Assembling an Assembly Language Program o Simple 9S12 programs o Hex code generated
More informationC SC 230 Computer Architecture and Assembly Language April 2000 Exam Sample Solutions
C SC 230 Computer Architecture and Assembly Language April 2000 Exam Sample Solutions 1. (12 marks) Circle the correct answer for each of the following: The 8-bit two's complement representation of -15
More informationDIGITAL PIANO Date: Oct. 5, 2000 Model HP 147R MIDI Implementation Version: 1.00
DIGITAL PIANO Date: Oct. 5, 2000 Model HP 147R MIDI Implementation Version: 1.00 1. Receive Data Channel Voice Messages Note off 8nH kkh vvh 9nH kkh 00H kk = note number: 00H-7FH (0-127) vv = note off
More informationCP/M-86 Compatibility Guide For CP/M-80 Users
CCGFCU.WS4 ---------- CP/M-86 Compatibility Guide For CP/M-80 Users (= CCGFCU...) Copyright (c) 1980 Digital Research Pacific Grove, California (Revision of 10/21/80) (= 21 October 1980) (Retyped by Emmanuel
More informationME 6405 Introduction to Mechatronics
ME 6405 Introduction to Mechatronics Fall 2005 Instructor: Professor Charles Ume LECTURE 9 Homework 1 Solution 1. Write an assembly language program to clear the usable internal RAM in the M68HC11E9. Solution:
More informationIntroduction to CPU architecture using the M6800 microprocessor
Introduction to CPU architecture using the M6800 microprocessor Basics Programs are written in binary object codes which could be understood (after the decoding process) by the designated target CPU. The
More informationUNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING
UNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING Experiment PCO: Principles of Computer Operation Location: Part I Lab., CYC 102. Objective: The objective is to learn the basic
More informationIS-Dev Kit-5 and IS-Dev Kit-6 Users Manual
IS-Dev Kit-5 and IS-Dev Kit-6 Users Revision A IS-Dev Kit-5 and IS-Dev Kit-6 Version 1.2 NKK SWITCHES 7850 E. Gelding Drive Scottsdale, AZ 85260 Toll Free 1-877-2BUYNKK (877-228-9655) Phone 480-991-0942
More informationDisassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers
Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers o How to disassemble an MC9S12 instruction sequence o Binary numbers are a code and represent what the programmer intends for the
More informationDisassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers
Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers o How to disassemble an MC9S12 instruction sequence o Binary numbers are a code and represent what the programmer intends for the
More informationChapter 3. Bit Addressable Area. By DeccanRobots
Chapter 3 Bit Addressable Area By DeccanRobots What is Bit Addressable Area? FFh 2Fh 20h 00h Data Memory General purpose Memory Area Bit Addressable Memory Registers Memory Area from 20H to 2FH is Bit
More informationECE/CE 3720: Embedded System Design
Produce-Consumer Examples Slide 1 ECE/CE 3720: Embedded System Design Chris J. Myers Slide 3 Source/producer Keyboard input Program with data Sink/consumer Program that interprets Printer output Lecture
More informationMC9S12 Address Space
MC9S12 Address Space MC9S12 has 16 address lines MC9S12 can address 2 16 distinct locations For MC9S12, each location holds one byte (eight bits) MC9S12 can address 2 16 bytes 2 16 = 65536 2 16 = 2 6 2
More informationTEMPERATURE SENSOR. Revision Class. Instructor / Professor LICENSE
CME-11E9 EVBU LAB EXPERIMENT TEMPERATURE SENSOR Revision 04.02.11 Class Instructor / Professor LICENSE You may use, copy, modify and distribute this document freely as long as you include this license
More informationTUTORIAL Assembly Language programming (2)
8051 Assembly Language programming (2) TUTORIAL 4 EEE3410 Microcontroller Applications 1. Write the instructions to move value 34h into register A and value 3Fh into register B, then add them together.
More informationUNIT-III ASSEMBLY LANGUAGE PROGRAMMING. The CPU can access data in various ways, which are called addressing modes
8051 Software Overview: 1. Addressing Modes 2. Instruction Set 3. Programming 8051 Addressing Modes: UNIT-III ASSEMBLY LANGUAGE PROGRAMMING The CPU can access data in various ways, which are called addressing
More informationCondition Code Register. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff
Condition Code Register 1 Topics Condition code register Addition and subtraction instructions Conditional branches 2 Condition Code Register Condition code bits are automatically set by some instructions
More informationModule 1-G. Marcos and Structured Programming
Module 1-G Marcos and Structured Programming 1 Learning Outcome #1 An ability to program a microcontroller to perform various tasks How? A. Architecture and Programming Model B. Instruction Set Overview
More informationChapter 2: HCS12 Assembly Programming. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh
Chapter 2: HCS12 Assembly Programming EE383: Introduction to Embedded Systems University of Kentucky Samir Rawashdeh With slides based on material by H. Huang Delmar Cengage Learning 1 Three Sections of
More information8088/8086 Programming Integer Instructions and Computations
Unit3 reference 2 8088/8086 Programming Integer Instructions and Computations Introduction Up to this point we have studied the software architecture of the 8088 and 8086 microprocessors, their instruction
More informationECE 3120 Computer Systems Arithmetic Programming
ECE 3120 Computer Systems Arithmetic Programming Manjeera Jeedigunta http://blogs.cae.tntech.edu/msjeedigun21 Email: msjeedigun21@tntech.edu Tel: 931-372-6181, Prescott Hall 120 Today: Multiplication and
More informationProposal for USB Solid State Drive Mode Sense specification
Proposal for USB Solid State Drive Mode Sense specification Martin R. Furuhjelm Lexar Background: USB Solid State (flash) drives were designed to be plug compatible with USB Hard disk drives. They respond
More informationSMART Self-Test Reference for P400e SATA SSDs
Introduction SMART Self-Test Reference for P400e SATA SSDs Introduction This technical note describes the self-test modes, commands, values, and result checks for the self-monitoring, analysis, and reporting
More information