TK2633: MICROPROCESSOR & INTERFACING

Slides:



Advertisements
Similar presentations
8085 Architecture & Its Assembly language programming
Advertisements

Microprocessors.
Assembly Language Programming
Computer Architecture and Operating Systems CS 3230 :Assembly Section Lecture 2 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
TK 2633 Microprocessor & Interfacing
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
LECTURER: DR MASRI AYOB Dr. Masri Ayob: TK2633 TK2633: MICROPROCESSOR & INTERFACING Structured Assembly Language Programming.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Room: Timbalan Pengarah Pusat Komputer Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 4: Introduction.
TK 2633 Microprocessor & Interfacing
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Dr Masri Ayob TK 2633: Microprocessor & Interfacing Lecture 5: Arithmetic and Logic Instructions.
8085 Addressing Modes.  The number & Different kind of ways the programmer can refer to data stored in the memory  The different ways that a microprocessor.
Part II: Addressing Modes
1 CS Programming Languages Random Access Machines Jeremy R. Johnson.
ADDRESSING MODES OF Addressing Modes of  To perform any operation, we have to give the corresponding instructions to the microprocessor.
Parul Polytechnic Institute Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name.
Mr. Gursharan Singh Tatla
INSTRUCTION SET OF MICROPROCESSOR 8085
UNDERSTANDING ASSEMBLY LANGUAGE.
Dr Masri Ayob TK 2633: Microprocessor & Interfacing Lecture 7: Assembly Language.
Computer Architecture Lecture 13 – part 2 by Engineer A. Lecturer Aymen Hasan AlAwady 7/4/2014 University of Kufa - Information Technology Research and.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 7.
Ass. Prof. Dr Masri Ayob TK 6123 Lecture 13: Assembly Language Level (Level 4)
TK2633 : MICROPROCESSOR & INTERFACING Lecture 10: Fixed Point Arithmetic Lecturer: Ass. Prof. Dr. Masri Ayob.
Computer Architecture Lecture 12 by Engineer A. Lecturer Aymen Hasan AlAwady 17/3/2014 University of Kufa - Information Technology Research and Development.
Ass. Prof. Dr Masri Ayob Lecture 5: Arithmetic and Logic Instructions TK 2633: Microprocessor & Interfacing.
Computer Architecture Lecture 11 by Engineer A. Lecturer Aymen Hasan AlAwady 10/3/2014 University of Kufa - Information Technology Research and Development.
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle.
Memory Addressing Techniques. Immediate Addressing involves storing data in pairs with immediate values register pairs:
INTRODUCTION Programming – process of composing several instructions to perform certain tasks. Program – product of programming which contains several.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 8.
Ass Prof Dr Masri Ayob TK 2633: Microprocessor & Interfacing Lecture 6: Control Instructions.
Computer Architecture Lecture 5 by Engineer A. Lecturer Aymen Hasan AlAwady 25/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Assembly Language Programming of 8085 BY Prof. U. V. THETE Dept. of Computer Science YMA.
Ass. Prof. Dr Masri Ayob TK 2123 Lecture 14: Instruction Set Architecture Level (Level 2)
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
P ROGRAMMING T ECHNIQUES : L OOPING, C OUNTING AND I NDEXING L ECTURE 7 Gunjeet Kaur Dronacharya group of Institutions.
Type of addressing mode
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني 8085 Instruction Set Instruction types. data transfer group. Arithmetic group.
Types of format of data transfer
Gursharan Singh Tatla INSTRUCTION SET OF 8085 Gursharan Singh Tatla Gursharan Singh Tatla
Assembly Language Programming of 8085
Microprocessor T. Y. B. Sc..
3.Instruction Set of 8085 Consists of 74 operation codes, e.g. MOV
Counters & Time Delays.
Serial I/O and Data Communication.
Introduction to 8085 Instructions
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 3 & 4 Part 1
A Closer Look at Instruction Set Architectures: Expanding Opcodes
8085 Microprocessor Architecture
Microprocessor and Assembly Language
Instruction Formats Each instruction consists of two parts:
Symbolic Instruction and Addressing
Additional data transfer and 16 bit arithmetic instruction Lecture 1
Instruction cycle Instruction: A command given to the microprocessor to perform an operation Program : A set of instructions given in a sequential.
Detailed Review of the 8085 Instruction Set.
Symbolic Instruction and Addressing
INSTRUCTION SET OF 8085.
TK2633: MICROPROCESSOR & INTERFACING
Symbolic Instruction and Addressing
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
THE FETCH-EXECUTE CYCLE.
T opic: S TRING I NSTRUCTION P RESENTED B Y: N OOR FATIMA M AHA AKRAM ASIF.
Programming Examples.
CS-401 Computer Architecture & Assembly Language Programming
Chapter 6 –Symbolic Instruction and Addressing
THE FETCH-EXECUTE CYCLE.
Presentation transcript:

TK2633: MICROPROCESSOR & INTERFACING Programming Techniques Dr. Masri Ayob: TK2633

LOOPING The programming technique used to instruct the MPU to repeat task. Continuous loop Conditional loop Repeat task until certain conditions are met. Some loop include indexing along with counter. Indexing: pointing or referencing objects with sequential numbers, i.e. data in memory are accessed by referencing to their memory locations. Dr. Masri Ayob: TK2633

COUNTER Counter. Counter is constructed by loading a number to any register. Then use INR or DCR to increment or decrement the number respectively. Loop is used to update counter value and every iteration the number is inspected to check whether the number is at maximum or minimum. Dr. Masri Ayob: TK2633 Rajah 1

BLOCK DATA TRANSFERS In many systems, blocks of information are transferred from one place to another in the microprocessor’s memory. Transferring Blocks of Bytes. Transferring Blocks of Words. Dr. Masri Ayob: TK2633 Rajah 1

BLOCK DATA TRANSFERS Suppose that a block of 10 bytes of data, beginning at memory location 2080H, is transferred to a block of memory beginning at location 2090H. The simplest method, is to use the LDA and STA instruction to transfer each byte. Long program A more efficient way to transfer a block of data uses the programmed-loop and counter. Dr. Masri Ayob: TK2633 Rajah 1

Flowchart Flowchart required to transfer a block of bytes from one area of memory to another . Dr. Masri Ayob: TK2633

Transfer 10 bytes of data Dr. Masri Ayob: TK2633

BLOCK DATA TRANSFERS The program uses: the HL register pair to indirectly address the source block of data. The DE register pair to indirectly address the destination block. Transfers use the MOV A,M instruction to load the accumulator from a source block memory location. Next, the STAX D instruction stores the accumulator data into a destination block memory location. The B register functions as a counter in this example. Dr. Masri Ayob: TK2633 Rajah 1

BLOCK DATA TRANSFERS Large- byte block transfer >256 (FF) bytes? Program requires a register pair as the counter. Example: A block of bytes beginning at location 01OOH is transferred to a block beginning at location 2800H. The length of this block is 300 (12CH) bytes. Dr. Masri Ayob: TK2633

BLOCK DATA TRANSFERS Dr. Masri Ayob: TK2633

Transferring Blocks of Words In certain applications, 16-bit words of data must be transferred. Dr. Masri Ayob: TK2633

Transferring Blocks of Words Main Program Dr. Masri Ayob: TK2633

Transferring Blocks of Words Dr. Masri Ayob: TK2633

BLOCK EXCHANGES Block exchanges are similar to block transfers except that the data are taken from one block of memory and exchanged with the data in a second block of memory. Their main application is in sorting character strings and numeric data. Dr. Masri Ayob: TK2633

Byte Block Exchanges Suppose that we must exchange the 80H bytes of memory beginning at location 2800H with the 80H bytes of memory beginning at location 2880H. Dr. Masri Ayob: TK2633

Byte Block Exchanges Dr. Masri Ayob: TK2633

Word Block Exchanges: Exercise Suppose that we must exchange the 500H words of memory beginning at location 9000H with the 500H words of memory beginning at location 9100H. Dr. Masri Ayob: TK2633

Thank you Q&A Dr. Masri Ayob: TK2633