SlideShare une entreprise Scribd logo
1  sur  24
Microprocessor System
SESSION OF MOTOROLA 6800

By
Engr.Shafiullah Soomro
safiullah123@gmail.com
History of Motorola 6800
►

The 6800 ("sixty-eight-hundred") was an 8-bit 
microprocessor designed and first manufactured by 
Motorola in 1974.

►

The 6800 has a 16-bit address bus that could directly
access 64 KB of memory and an 8-bit bi-directional data
bus.

►

It has 72 instructions with seven addressing modes for a
total of 197opcodes. The original MC6800 could have a
clock frequency of up to 1 MHz. Later versions had a
maximum clock frequency of 2 MHz.
Other Motorola microprocessors
Short Description of Pin Diagram
Pin description
6800 Architecture
Register Set and Programmers Model
► The

6800 has six internally accessible registers.
These are two 8-bit accumulators or general
purpose register (A and B),
► three 16-bit registers PC, SP, and
► Index register - X)
► and an 8-bit condition code or status register
which has 6 flags in total.
A

8 bit accumulators,
general purpose
registers

B
Program Counter - PC
Stack Pointer - SP

16 bit registers

Index Register - X
H

I

N

Z

V

C

8 bit status register
►
►
►
►
►
►
►
►

The Accumulators A and B :
Each stores and manipulates one 8-bit word under program control.
 
The Index register - X
Is a 2-byte register. It holds memory addresses when using indexedaddressing mode instructions.
 
The Program Counter - PC
Is a 2-byte register which contains the address of the next byte of the
instruction to be fetched from memory (instructions can be from one to
3 bytes in length). When the current value of the program counter is
placed on the address bus, the PC is updated to the value of the next
instruction for execution.
►
►

►
►

Stack pointer - SP
A 2-byte register which holds the starting address of
sequential memory locations in RAM where the contents of
the CPU registers may be stored and retrieved. The 6800
uses RAM for its stack.
Status Register or Condition Codes Register
This final register contains six flags which are set or
cleared in response to how the program executes. These
flags are:
►
►
►
►
►
►
►
►
►
►

Condition Code Register: It shows the conditions
occurs as a result of an Arithmetic Logic Unit
Bit 0: carry from bit 7 of an arithmetic operation (C)
Bit 1: Overflow flag (V)
Bit 2: Zero flag (Z)
Bit 3: Negative flag (N)
Bit 4: Interrupt Mask (I)
Bit 5: Half carry from bit 3 of an arithmetic operation (H)
Bit 6: Unused
Bit 7: Unused
These bits of the Condition Code Register are used as
testable conditions for the conditional branch instructions.
Bit 4 of the CCR is the interrupt mask bit (I). The unused
bits of the Condition Code Register (bit 6 and bit 7) are 1.
ADDRESSING MODES
►

►
►
►
►

The 6800 uses a 16-bit address bus allowing access to
65,536 8-bit words within memory. The 16-bit address can
be split into a most significant (MS) byte, the first 8-bits of
the address and the Least Significant (LS) byte the second
8-bits. For Input Output I/O a portion of memory space is
used to access I/O ports.
 There are seven addressing modes available to a 6800
programmer.
Accumulator Addressing
In accumulator addressing, either accumulator A or
accumulator B is specified. These are 1-byte instructions.
Ex: ABA adds the contents of accumulators and stores
the result in accumulator A
►
►

►

►
►

►

Immediate Addressing
In immediate addressing, operand is located immediately after the
opcode in the second byte of the instruction in program memory
(except LDS and LDX where the operand is in the second and third
bytes of the instruction). These are 2-byte or 3-byte instructions.
Ex: LDAA #25H loads the number (25)H into accumulator A

Direct Addressing
In direct addressing, the address of the operand is contained in the
second byte of the instruction. Direct addressing allows the user to
directly address the lowest 256 bytes of the memory, i.e, locations 0
through 255. Enhanced execution times are achieved by storing data
in these locations. These are 2-byte instructions.
Ex: LDAA 25H loads the contents of the memory address (25)H into
accumulator A
►
►

►

Extended Addressing
In extended addressing, the address contained in the
second byte of the instruction is used as the higher eight
bits of the address of the operand. The third byte of the
instruction is used as the lower eight bits of the address for
the operand. This is an absolute address in the memory.
These are 3-byte instructions.
Ex: LDAA 1000H loads the contents of the memory
address (1000)H into accumulator A
►
►

►

►
►
►

Indexed Addressing
In indexed addressing, the address contained in the second
byte of the instruction is added to the index register’s lowest
eight bits.
The carry is then added to the higher order eight bits of the
index register. This result is then used to address memory.
The modified address is held in a temporary address
register so there is no change to the index register. These
are 2-byte instructions.
Ex: LDX #1000H
LDAA 10H,X
Initially, LDX #1000H instruction loads 1000H to the index
register (X) using immediate addressing. Then LDAA 10H,X
instruction, using indexed addressing, loads the contents of
memory address (10)H + X=1010H into accumulator A.
►
►

►

►
►

Implied (Inherent) Addressing
In the implied addressing mode, the instruction gives the
address inherently (i.e, stack pointer, index register, etc.).
Inherent instructions are used when no operands need to
be fetched. These are 1- byte instructions.
Ex: INX increases the contents of the Index register by
one. The address information is "inherent" in the instruction
itself.
INCA increases the contents of the accumulator A by one.
DECB decreases the contents of the accumulator B by
one.
►

Relative Addressing
The relative addressing mode is used with most of the branching
instructions on the 6802 microprocessor. The first byte of the
instruction is the opcode. The second byte of the instruction is
called the offset . The offset is interpreted as a signed 7-bit
number .
If the MSB (most significant bit) of the offset is 0, the number is
positive, which indicates a forward branch. If the MSB of the offset
is 1, the number is negative, which indicates a backward branch.
This allows the user to address data in a range of -126 to +129
bytes of the present instruction. These are 2-byte instructions.
Ex: PC Hex Label Instruction

►

0009 2004 BRA 0FH

►
►

►
Flags

Contenu connexe

Tendances

Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introductionShubham Singh
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORRamaPrabha24
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051hello_priti
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
 
Addressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyAddressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyBinu Joy
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessorATTO RATHORE
 
ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IVineethMP2
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptxMemonaMemon1
 
Motorola microprocessor
Motorola microprocessorMotorola microprocessor
Motorola microprocessorIffat Anjum
 
Microinstruction sequencing new
Microinstruction sequencing newMicroinstruction sequencing new
Microinstruction sequencing newMahesh Kumar Attri
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
7 segment led interfacing with 8051
7 segment led interfacing with 80517 segment led interfacing with 8051
7 segment led interfacing with 8051Sam Patel
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...manishpatel_79
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA ControllerShivamSood22
 

Tendances (20)

Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introduction
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
ARM Micro-controller
ARM Micro-controllerARM Micro-controller
ARM Micro-controller
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Addressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyAddressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu Joy
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
Motorola microprocessor
Motorola microprocessorMotorola microprocessor
Motorola microprocessor
 
Microinstruction sequencing new
Microinstruction sequencing newMicroinstruction sequencing new
Microinstruction sequencing new
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
7 segment led interfacing with 8051
7 segment led interfacing with 80517 segment led interfacing with 8051
7 segment led interfacing with 8051
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 

En vedette (6)

Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Microprocessor systems (4)
Microprocessor systems (4)Microprocessor systems (4)
Microprocessor systems (4)
 
32 bit and 64 bit Register manipulation
32 bit and 64 bit Register manipulation32 bit and 64 bit Register manipulation
32 bit and 64 bit Register manipulation
 
Microprocessor Systems
Microprocessor Systems Microprocessor Systems
Microprocessor Systems
 
Microprocessor systems 8085(2)
Microprocessor systems 8085(2)Microprocessor systems 8085(2)
Microprocessor systems 8085(2)
 

Similaire à M6800

15CS44 MP & MC Module 1
15CS44 MP & MC Module 115CS44 MP & MC Module 1
15CS44 MP & MC Module 1RLJIT
 
Blackfin Processor Core Architecture Part 2
Blackfin Processor Core Architecture Part 2Blackfin Processor Core Architecture Part 2
Blackfin Processor Core Architecture Part 2Premier Farnell
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085Sumit Swain
 
Z 80 processors (History-Products)
Z 80 processors (History-Products)Z 80 processors (History-Products)
Z 80 processors (History-Products)Mohammed Hilal
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086Waleed Khan
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set Deepak John
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollersgomathy S
 
Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013harshalata
 
Architecture OF 8085
Architecture OF 8085Architecture OF 8085
Architecture OF 8085muneer.k
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessorgohanraw
 
Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Techglyphs
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxGowrishankar C
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086ELIMENG
 

Similaire à M6800 (20)

15CS44 MP & MC Module 1
15CS44 MP & MC Module 115CS44 MP & MC Module 1
15CS44 MP & MC Module 1
 
Blackfin Processor Core Architecture Part 2
Blackfin Processor Core Architecture Part 2Blackfin Processor Core Architecture Part 2
Blackfin Processor Core Architecture Part 2
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
Z 80 processors (History-Products)
Z 80 processors (History-Products)Z 80 processors (History-Products)
Z 80 processors (History-Products)
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
Lecture9
Lecture9Lecture9
Lecture9
 
Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013
 
assignment 1-MC.pdf
assignment 1-MC.pdfassignment 1-MC.pdf
assignment 1-MC.pdf
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Bt0068
Bt0068Bt0068
Bt0068
 
Architecture OF 8085
Architecture OF 8085Architecture OF 8085
Architecture OF 8085
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
8085
80858085
8085
 
8085
80858085
8085
 
Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Bt0068 computer organization and architecture
Bt0068 computer organization and architecture
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086
 

Plus de Quaid-e-Awam University of Engineering Science and Technology Nawabshah Sindh Pakistan

Plus de Quaid-e-Awam University of Engineering Science and Technology Nawabshah Sindh Pakistan (20)

Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lecture 0 for Civil Engineering
Lecture 0 for Civil EngineeringLecture 0 for Civil Engineering
Lecture 0 for Civil Engineering
 
Intro ch 09_a
Intro ch 09_aIntro ch 09_a
Intro ch 09_a
 
Intro ch 07_a
Intro ch 07_aIntro ch 07_a
Intro ch 07_a
 
Intro ch 06_b
Intro ch 06_bIntro ch 06_b
Intro ch 06_b
 
Intro ch 05_b
Intro ch 05_bIntro ch 05_b
Intro ch 05_b
 
Intro ch 05_a
Intro ch 05_aIntro ch 05_a
Intro ch 05_a
 
Intro ch 04_b
Intro ch 04_bIntro ch 04_b
Intro ch 04_b
 
Intro ch 04_a
Intro ch 04_aIntro ch 04_a
Intro ch 04_a
 
Intro ch 04_b
Intro ch 04_bIntro ch 04_b
Intro ch 04_b
 
Intro ch 03_a
Intro ch 03_aIntro ch 03_a
Intro ch 03_a
 
Intro ch 03_b
Intro ch 03_bIntro ch 03_b
Intro ch 03_b
 
Lecture 2 generations
Lecture 2  generationsLecture 2  generations
Lecture 2 generations
 
Intro ch 01_a
Intro ch 01_aIntro ch 01_a
Intro ch 01_a
 
Microprocessor systems 8085
Microprocessor systems 8085Microprocessor systems 8085
Microprocessor systems 8085
 
Microprocessor 11el01
Microprocessor 11el01Microprocessor 11el01
Microprocessor 11el01
 

Dernier

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 

Dernier (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

M6800

  • 1. Microprocessor System SESSION OF MOTOROLA 6800 By Engr.Shafiullah Soomro safiullah123@gmail.com
  • 3. ► The 6800 ("sixty-eight-hundred") was an 8-bit  microprocessor designed and first manufactured by  Motorola in 1974. ► The 6800 has a 16-bit address bus that could directly access 64 KB of memory and an 8-bit bi-directional data bus. ► It has 72 instructions with seven addressing modes for a total of 197opcodes. The original MC6800 could have a clock frequency of up to 1 MHz. Later versions had a maximum clock frequency of 2 MHz.
  • 5. Short Description of Pin Diagram
  • 6.
  • 9. Register Set and Programmers Model ► The 6800 has six internally accessible registers. These are two 8-bit accumulators or general purpose register (A and B), ► three 16-bit registers PC, SP, and ► Index register - X) ► and an 8-bit condition code or status register which has 6 flags in total.
  • 10. A 8 bit accumulators, general purpose registers B Program Counter - PC Stack Pointer - SP 16 bit registers Index Register - X H I N Z V C 8 bit status register
  • 11. ► ► ► ► ► ► ► ► The Accumulators A and B : Each stores and manipulates one 8-bit word under program control.   The Index register - X Is a 2-byte register. It holds memory addresses when using indexedaddressing mode instructions.   The Program Counter - PC Is a 2-byte register which contains the address of the next byte of the instruction to be fetched from memory (instructions can be from one to 3 bytes in length). When the current value of the program counter is placed on the address bus, the PC is updated to the value of the next instruction for execution.
  • 12. ► ► ► ► Stack pointer - SP A 2-byte register which holds the starting address of sequential memory locations in RAM where the contents of the CPU registers may be stored and retrieved. The 6800 uses RAM for its stack. Status Register or Condition Codes Register This final register contains six flags which are set or cleared in response to how the program executes. These flags are:
  • 13. ► ► ► ► ► ► ► ► ► ► Condition Code Register: It shows the conditions occurs as a result of an Arithmetic Logic Unit Bit 0: carry from bit 7 of an arithmetic operation (C) Bit 1: Overflow flag (V) Bit 2: Zero flag (Z) Bit 3: Negative flag (N) Bit 4: Interrupt Mask (I) Bit 5: Half carry from bit 3 of an arithmetic operation (H) Bit 6: Unused Bit 7: Unused These bits of the Condition Code Register are used as testable conditions for the conditional branch instructions. Bit 4 of the CCR is the interrupt mask bit (I). The unused bits of the Condition Code Register (bit 6 and bit 7) are 1.
  • 14.
  • 15. ADDRESSING MODES ► ► ► ► ► The 6800 uses a 16-bit address bus allowing access to 65,536 8-bit words within memory. The 16-bit address can be split into a most significant (MS) byte, the first 8-bits of the address and the Least Significant (LS) byte the second 8-bits. For Input Output I/O a portion of memory space is used to access I/O ports.  There are seven addressing modes available to a 6800 programmer. Accumulator Addressing In accumulator addressing, either accumulator A or accumulator B is specified. These are 1-byte instructions. Ex: ABA adds the contents of accumulators and stores the result in accumulator A
  • 16. ► ► ► ► ► ► Immediate Addressing In immediate addressing, operand is located immediately after the opcode in the second byte of the instruction in program memory (except LDS and LDX where the operand is in the second and third bytes of the instruction). These are 2-byte or 3-byte instructions. Ex: LDAA #25H loads the number (25)H into accumulator A Direct Addressing In direct addressing, the address of the operand is contained in the second byte of the instruction. Direct addressing allows the user to directly address the lowest 256 bytes of the memory, i.e, locations 0 through 255. Enhanced execution times are achieved by storing data in these locations. These are 2-byte instructions. Ex: LDAA 25H loads the contents of the memory address (25)H into accumulator A
  • 17.
  • 18. ► ► ► Extended Addressing In extended addressing, the address contained in the second byte of the instruction is used as the higher eight bits of the address of the operand. The third byte of the instruction is used as the lower eight bits of the address for the operand. This is an absolute address in the memory. These are 3-byte instructions. Ex: LDAA 1000H loads the contents of the memory address (1000)H into accumulator A
  • 19. ► ► ► ► ► ► Indexed Addressing In indexed addressing, the address contained in the second byte of the instruction is added to the index register’s lowest eight bits. The carry is then added to the higher order eight bits of the index register. This result is then used to address memory. The modified address is held in a temporary address register so there is no change to the index register. These are 2-byte instructions. Ex: LDX #1000H LDAA 10H,X Initially, LDX #1000H instruction loads 1000H to the index register (X) using immediate addressing. Then LDAA 10H,X instruction, using indexed addressing, loads the contents of memory address (10)H + X=1010H into accumulator A.
  • 20.
  • 21. ► ► ► ► ► Implied (Inherent) Addressing In the implied addressing mode, the instruction gives the address inherently (i.e, stack pointer, index register, etc.). Inherent instructions are used when no operands need to be fetched. These are 1- byte instructions. Ex: INX increases the contents of the Index register by one. The address information is "inherent" in the instruction itself. INCA increases the contents of the accumulator A by one. DECB decreases the contents of the accumulator B by one.
  • 22. ► Relative Addressing The relative addressing mode is used with most of the branching instructions on the 6802 microprocessor. The first byte of the instruction is the opcode. The second byte of the instruction is called the offset . The offset is interpreted as a signed 7-bit number . If the MSB (most significant bit) of the offset is 0, the number is positive, which indicates a forward branch. If the MSB of the offset is 1, the number is negative, which indicates a backward branch. This allows the user to address data in a range of -126 to +129 bytes of the present instruction. These are 2-byte instructions. Ex: PC Hex Label Instruction ► 0009 2004 BRA 0FH ► ► ►
  • 23.
  • 24. Flags