Revised: Aug 1, 20141 ECE263 Embedded System Design Lesson 4 Programming Model, Assembly Language, Instruction Execution Cycle.

Slides:



Advertisements
Similar presentations
CPU Structure and Function
Advertisements

Block Diagram of Intel 8086 Engr.M.Zakir Shaikh
Registers of the 8086/ /2002 JNM.
Microprocessors.
The 8051 Microcontroller and Embedded Systems
Processor Function Topic 3.
Computer Organization and Architecture
Choice for the rest of the semester New Plan –assembler and machine language –Operating systems Process scheduling Memory management File system Optimization.
ARM programmer’s model and assembler Embedded Systems Programming.
Programmable System on Chip Fully Configurable Mixed Signal Array Allows for Completely Customizable System Designs Capable of Internal MCU.
8051 ASSEMBLY LANGUAGE PROGRAMMING
EET 2261 Unit 2 HCS12 Architecture
Gursharan Singh Tatla Block Diagram of Intel 8086 Gursharan Singh Tatla 19-Apr-17.
Rabel Talpur:12BME#025.  40-pin chip  Developed by Motorola in 1975  16 address lines and 8 data lines  Used only +5V.
Module 10 Adapted By and Prepared James Tan © 2001.
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
Revised: Aug 1, ECE 263 Embedded System Design Lessons 23, 24 - Exceptions - Resets and Interrupts.
The KC-85 and the U880 Team members: Nadine Spörl Angela Roggan Martin Burkard Alexander Becker.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
4-1 Chapter 4 - The Instruction Set Architecture Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Addressing Modes MTT CPU08 Core Motorola CPU08 ADDRESSING MODES.
Computer Organization 1 Instruction Fetch and Execute.
1 Introduction to Microcontroller Microcontroller Fundamentals & Programming.
COMPUTER ORGANIZATION AND ASSEMBLY LANGUAGE Lecture 21 & 22 Processor Organization Register Organization Course Instructor: Engr. Aisha Danish.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
1 The Instruction Set Architecture September 27 th, 2007 By: Corbin Johnson CS 146.
Execution Architecture MTT CPU08 Core M CPU08 INTRODUCTION.
ECE 447 Fall 2009 Lecture 4: TI MSP430 Architecture and Instruction Set.
ECE 447: Lecture 11 Introduction to Programming in Assembly Language.
An Adder A Subtractor. A and B are the inputs of the adder/ subtractor R is the output of the adder/ subtractor F is the control to tell it to add or.
بسم الله الرحمن الرحيم MEMORY AND I/O.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
Embedded Systems Lecture 5 January 25 th, 2016.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
1 ECE 372 – Microcontroller Design Basic Assembly Programming for(j=0; j
Revised: Aug 1, EE4390 Microprocessors Lessons 11, 12 Advanced Assembly Programming.
68HC11 Interrupts & Resets.
Gunjeet Kaur Dronacharya Group of institutions
Assembly Language Programming of 8085
ECE 3430 – Intro to Microcomputer Systems
8086 Microprocessor.
The 8051 Microcontroller and Embedded Systems
Introduction of microprocessor
..
CS-401 Assembly Language Programming
Processor Organization and Architecture
Introduction to Assembly Language
ME4447/6405 Microprocessor Control of Manufacturing Systems and
ECEG-3202 Computer Architecture and Organization
8085 MICROPROCESSOR 8085 CPU Registers and Status Flags S Z AC P C A B
University of Gujrat Department of Computer Science
Computer Architecture
MARIE: An Introduction to a Simple Computer
CPU has 6 special locations called registers
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
8051 ASSEMBLY LANGUAGE PROGRAMMING
Program Execution.
Computer System Overview
Register sets The register section/array consists completely of circuitry used to temporarily store data or program codes until they are sent to the.
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Presentation transcript:

Revised: Aug 1, ECE263 Embedded System Design Lesson 4 Programming Model, Assembly Language, Instruction Execution Cycle

Revised: Aug 1, Overview Programming Model Motorola Assembly Language Instruction Execution Cycle

Revised: Aug 1, Programming Model

Revised: Aug 1, Programming Model (cont) A, B: 8-bit accumulators –collectively D: 16-bit register X, Y: 16-bit index registers SP: 16-bit stack pointer PC: 16-bit program counter CCR: 8-bit Condition Code Register

Revised: Aug 1, Programming Model (cont) Condition Code Register - Reference Appx A

Revised: Aug 1, Programming Model (cont) S: disables STOP instruction X: enables nonmaskable interrupt H: half carry flag from lower nibble to upper nibble I: enable maskable interrupts N: negative flag Z: zero flag V: overflow flag C: carry flag Flag activities: 1 : sets 0 : resets - : no change : determined by operation

Revised: Aug 1, Motorola Assembly Language LabelOp-CodeOperand(s) Comment start:LDAA#FC;load acc A Label: name for a memory location Op-Code: mnemonic, action part of instruction Operand: access to data for instruction via addressing mode Comment: “;” indicates comment follows –can also be used at the beginning of a line

Revised: Aug 1, Assembly vs C Assembly: –better HW control, faster C: –more readable –Top-Down Design –more efficient programming –do not need to know HW details

Revised: Aug 1, Instruction Execution Cycle fetch decodeexecute

Revised: Aug 1, “The Big Picture” ICC12 - host PC compiler assembler filename.c filename.h filename.asm filename.lst filename.s19 comm link via SCI A4 EVB HW SW DEBUG12 daughter card fab area

Revised: Aug 1, ICC12 Specific Items.area name(abs).org $1000 _main:: loop:: ;sample program

Revised: Aug 1, Sample Code ; File Name: introlab.s ; File Created: ; File Modified: ; Author(s): Abbie Wells ; Introductory Lab Exercise to demonstrate uses of the ; HC12 Teaching Platform and familiarize the user with ; assembly code. Basic arithemetic operations will be ; performed, results and CCR contents stored to memory, ; and CCR contents displayed to the LEDs..area introlab(abs).org $4100 _main:: PORTT = $00AE ; Create label for Port T DDRT = $00AF ; Create label for DDRT TSCR = $0086 ; Create label for TSCR ; Initialize Port T to be an output port

Revised: Aug 1, Memory Map - A4 Evaluation Board “Copyright of Motorola, Used by Permission”