SlideShare a Scribd company logo
1 of 23
SAP-2
Bidirectional Registers
• Either enable or load only active .
• During load input lines active output line float
• During Enable output lines active input line
float.
• Input and output pins are shorted.
• Single set of wires(path) between register and
w-bus.
Architecture
Input port
Port 1 and Port 2
Port 1
• Hexadecimal keyboard encoder
• Sends ready signal to bit 0 of port 2 (indicates
the data in port 1 is valid)
Port 2
Serial In
Program Counter
16 bit address
Thus can count from
PC= 0000 0000 0000 0000
PC= 1111 1111 1111 1111(FFFFH)
LOW CLR’
MAR and MEMORY
16- bit address to MAR(From ???).
• MAR OUTPUT to RAM
• Memory Capacity(?????)
• 2K ROM(0000H-07FFH) => Monitor Program
• 62K RAM(0800H-FFFFH)
Memory Data Register
• 8-bit Register
• Output setup RAM
• Receives data from the bus before write
operation
• Data to the bus after read operation
Instruction Register
• 8-bit op code
• Can accommodate 256 instruction
• Only 42 instruction
Controller Sequencer
As usual
• Generates the control words
(microinstructions)
• Has more hardware(larger number of
instruction)
• Control Word is bigger (CON)
Accumulator
Same as SAP-1
ALU and Flags
ALU :- Includes both arithmetic and logical
operation
4 or more control bits for determining the
operation to be performed
Flag: Represent the status of the arithmetic and
logical operation
Filp flops are used;
Zero Flag(Z)
Sign Flag(S)
Temp,B,and C registers
Temporary register (TEMP)
Register B and C are used to move data during
program run and accessible to programmers.
Outport Ports
2 output ports(3 and 4)
Port 3 : Drives Hexadecimal display
Port 4: sends ACKNOWLEDGE signals used to
hexadecimal encoder.(Handshaking)
Serial Out: Serial Transmission of data.
Microprocessor Instruction
LDA and STA
Eg:
LDA 2000H
STA 8000H
MVI
MVI-Move Immediate
MVI A,37H
MVI A,byte
MVI B,byte
MVI c, byte
Register Instruction
MOV
MOV A,B
MOV A,C
MOV B,A
MOV B,C
MOV C,A
MOV C,B
Register Instruction
ADD and SUB
Eg ADD B /SUB B
ADD B
ADD C
SUB B
SUB C
Register Instruction
INR and DCR
INR A/DCR A
INR B/DCR B
INR C/DCR C
Jump And Call Instruction
JMP
JMP 3000H
JM (Jump if Minus)
JZ(Jump if zero)
JNZ(Jump if not zero)
Jump And Call Instruction
CALL
Subroutine ????
Call is used to call the subroutine
Ret
Return back from subroutine
Program Counter contents ????
-----stored in the last two location of memory
(FFFEH and FFFFH)
Logic Instruction
CMA-Complement the accumulator
ANA-And the accumulator with specified register
eg ANA B
ORA- OR the accumulator with specified register
eg ORA B
XRA- XOR the accumulator with specified register
eg XRA B
ANI: And Immediate
Eg ANI C7H (AND accumulator with immediate
data C7H)
ORI: OR immediate
Eg ORI C7H
XRI: XOR immediate
Eg XRI C7H
Other Instruction
OUT ( OUT byte eg: OUT 03H: accumulator to designated port)
HLT
IN(Input : Enter the data from designated input port to accumulator)
eg: IN 02H
NOP
RAL(Rotate the accumulator left)
A=1011 0100 After execution
A=0110 1001
RAR (Rotate the accumulator right)
A= 1011 0100
After execution
A=0101 1010

More Related Content

What's hot

8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
HebaEng
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
HAriesOa1
 
Logic, shift and rotate instruction
Logic, shift and rotate instructionLogic, shift and rotate instruction
Logic, shift and rotate instruction
kashif Shafqat
 

What's hot (20)

The sunsparc architecture
The sunsparc architectureThe sunsparc architecture
The sunsparc architecture
 
Slow peripheral interfaces (i2 c spi uart)
Slow peripheral interfaces (i2 c  spi uart)Slow peripheral interfaces (i2 c  spi uart)
Slow peripheral interfaces (i2 c spi uart)
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
 
8086
80868086
8086
 
Data flow model -Lecture-4
Data flow model -Lecture-4Data flow model -Lecture-4
Data flow model -Lecture-4
 
register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controller
 
ARM Exception and interrupts
ARM Exception and interrupts ARM Exception and interrupts
ARM Exception and interrupts
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
Verilog tutorial
Verilog tutorialVerilog tutorial
Verilog tutorial
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
 
Data Flow Modeling
Data Flow ModelingData Flow Modeling
Data Flow Modeling
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
 
Data link control protocol(2)
Data link control protocol(2)Data link control protocol(2)
Data link control protocol(2)
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
Flag Registers (Assembly Language)
Flag Registers (Assembly Language)Flag Registers (Assembly Language)
Flag Registers (Assembly Language)
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
 
Logic, shift and rotate instruction
Logic, shift and rotate instructionLogic, shift and rotate instruction
Logic, shift and rotate instruction
 
Flag register 8086 assignment
Flag register 8086 assignmentFlag register 8086 assignment
Flag register 8086 assignment
 

Viewers also liked (9)

Sap 1
Sap 1Sap 1
Sap 1
 
Sap 2
Sap 2Sap 2
Sap 2
 
Introduction to sap 1
Introduction to sap 1Introduction to sap 1
Introduction to sap 1
 
Latihan sap 1
Latihan sap 1Latihan sap 1
Latihan sap 1
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Bab 5 komputer sederhana sap-1
Bab 5   komputer sederhana sap-1Bab 5   komputer sederhana sap-1
Bab 5 komputer sederhana sap-1
 
Sap bw bi
Sap bw biSap bw bi
Sap bw bi
 
MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMS
 
Objetivo General y Específico de un Proyecto de Inversión
Objetivo General y Específico de un Proyecto de InversiónObjetivo General y Específico de un Proyecto de Inversión
Objetivo General y Específico de un Proyecto de Inversión
 

Similar to Sap 2 OF MICROPROCESSOR

PIC Presentation_final updated.pptx
PIC Presentation_final updated.pptxPIC Presentation_final updated.pptx
PIC Presentation_final updated.pptx
ShabanamTamboli1
 
LEC 2-register transfer and register transfer language.ppt
LEC 2-register transfer and register transfer language.pptLEC 2-register transfer and register transfer language.ppt
LEC 2-register transfer and register transfer language.ppt
mailmynew202
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
someshdash1
 

Similar to Sap 2 OF MICROPROCESSOR (20)

PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
 
slides-main.pdf
slides-main.pdfslides-main.pdf
slides-main.pdf
 
Atmega16
Atmega16Atmega16
Atmega16
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 
MICROCONTROLLER.pptx
MICROCONTROLLER.pptxMICROCONTROLLER.pptx
MICROCONTROLLER.pptx
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
PIC Presentation_final updated.pptx
PIC Presentation_final updated.pptxPIC Presentation_final updated.pptx
PIC Presentation_final updated.pptx
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptx
 
PIC
PICPIC
PIC
 
LEC 2-register transfer and register transfer language.ppt
LEC 2-register transfer and register transfer language.pptLEC 2-register transfer and register transfer language.ppt
LEC 2-register transfer and register transfer language.ppt
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
Assembly Language Paper.docx
Assembly Language Paper.docxAssembly Language Paper.docx
Assembly Language Paper.docx
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONS
 
Galil rio catalog
Galil rio catalogGalil rio catalog
Galil rio catalog
 
8051 basic programming
8051 basic programming8051 basic programming
8051 basic programming
 
2014 ii c08t-sbc pic para ecg
2014 ii c08t-sbc pic para ecg 2014 ii c08t-sbc pic para ecg
2014 ii c08t-sbc pic para ecg
 
Lec03
Lec03Lec03
Lec03
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUs
 

Recently uploaded

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
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

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
 
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
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
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
 
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
 
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...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
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
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Sap 2 OF MICROPROCESSOR

  • 2. Bidirectional Registers • Either enable or load only active . • During load input lines active output line float • During Enable output lines active input line float. • Input and output pins are shorted. • Single set of wires(path) between register and w-bus.
  • 4. Input port Port 1 and Port 2 Port 1 • Hexadecimal keyboard encoder • Sends ready signal to bit 0 of port 2 (indicates the data in port 1 is valid) Port 2 Serial In
  • 5. Program Counter 16 bit address Thus can count from PC= 0000 0000 0000 0000 PC= 1111 1111 1111 1111(FFFFH) LOW CLR’
  • 6. MAR and MEMORY 16- bit address to MAR(From ???). • MAR OUTPUT to RAM • Memory Capacity(?????) • 2K ROM(0000H-07FFH) => Monitor Program • 62K RAM(0800H-FFFFH)
  • 7. Memory Data Register • 8-bit Register • Output setup RAM • Receives data from the bus before write operation • Data to the bus after read operation
  • 8. Instruction Register • 8-bit op code • Can accommodate 256 instruction • Only 42 instruction
  • 9. Controller Sequencer As usual • Generates the control words (microinstructions) • Has more hardware(larger number of instruction) • Control Word is bigger (CON)
  • 11. ALU and Flags ALU :- Includes both arithmetic and logical operation 4 or more control bits for determining the operation to be performed Flag: Represent the status of the arithmetic and logical operation Filp flops are used; Zero Flag(Z) Sign Flag(S)
  • 12. Temp,B,and C registers Temporary register (TEMP) Register B and C are used to move data during program run and accessible to programmers.
  • 13. Outport Ports 2 output ports(3 and 4) Port 3 : Drives Hexadecimal display Port 4: sends ACKNOWLEDGE signals used to hexadecimal encoder.(Handshaking) Serial Out: Serial Transmission of data.
  • 14. Microprocessor Instruction LDA and STA Eg: LDA 2000H STA 8000H
  • 15. MVI MVI-Move Immediate MVI A,37H MVI A,byte MVI B,byte MVI c, byte
  • 16. Register Instruction MOV MOV A,B MOV A,C MOV B,A MOV B,C MOV C,A MOV C,B
  • 17. Register Instruction ADD and SUB Eg ADD B /SUB B ADD B ADD C SUB B SUB C
  • 18. Register Instruction INR and DCR INR A/DCR A INR B/DCR B INR C/DCR C
  • 19. Jump And Call Instruction JMP JMP 3000H JM (Jump if Minus) JZ(Jump if zero) JNZ(Jump if not zero)
  • 20. Jump And Call Instruction CALL Subroutine ???? Call is used to call the subroutine Ret Return back from subroutine Program Counter contents ???? -----stored in the last two location of memory (FFFEH and FFFFH)
  • 21. Logic Instruction CMA-Complement the accumulator ANA-And the accumulator with specified register eg ANA B ORA- OR the accumulator with specified register eg ORA B XRA- XOR the accumulator with specified register eg XRA B
  • 22. ANI: And Immediate Eg ANI C7H (AND accumulator with immediate data C7H) ORI: OR immediate Eg ORI C7H XRI: XOR immediate Eg XRI C7H
  • 23. Other Instruction OUT ( OUT byte eg: OUT 03H: accumulator to designated port) HLT IN(Input : Enter the data from designated input port to accumulator) eg: IN 02H NOP RAL(Rotate the accumulator left) A=1011 0100 After execution A=0110 1001 RAR (Rotate the accumulator right) A= 1011 0100 After execution A=0101 1010