SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.parthi_arjun
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086Nikhil Kumar
 
Flag register 8086 assignment
Flag register 8086 assignmentFlag register 8086 assignment
Flag register 8086 assignmentZia3130
 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086techbed
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor pptRJ Aniket
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015JCT COLLEGE OF ENGINEERING AND TECHNOLOGY
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
Addressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyAddressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyBinu Joy
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1deval patel
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 completeShubham Singh
 
System bus timing 8086
System bus timing 8086System bus timing 8086
System bus timing 8086mpsrekha83
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086asrithak
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 
Introduction to 80386
Introduction to 80386Introduction to 80386
Introduction to 80386Abinaya B
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORGurudev joshi
 

Mais procurados (20)

PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
Interrupt
InterruptInterrupt
Interrupt
 
Flag register 8086 assignment
Flag register 8086 assignmentFlag register 8086 assignment
Flag register 8086 assignment
 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Addressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyAddressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu Joy
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
8086 modes
8086 modes8086 modes
8086 modes
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
System bus timing 8086
System bus timing 8086System bus timing 8086
System bus timing 8086
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
Ch12 microprocessor interrupts
Ch12 microprocessor interruptsCh12 microprocessor interrupts
Ch12 microprocessor interrupts
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Introduction to 80386
Introduction to 80386Introduction to 80386
Introduction to 80386
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 

Destaque (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)
 

Semelhante a 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
 

Semelhante a 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
 

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

Mais 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
 

Último

GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Último (20)

FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 

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