SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
Jay Patel
 
Memory interfacing
Memory interfacingMemory interfacing
Memory interfacing
mahalakshmimalini
 

Was ist angesagt? (20)

Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
 
Memory interfacing
Memory interfacingMemory interfacing
Memory interfacing
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
Interrupts in pic
Interrupts in picInterrupts in pic
Interrupts in pic
 
Digital Communication: Information Theory
Digital Communication: Information TheoryDigital Communication: Information Theory
Digital Communication: Information Theory
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Unit 1 8085 Timing diagram - lecture 5b
Unit 1  8085 Timing diagram - lecture 5bUnit 1  8085 Timing diagram - lecture 5b
Unit 1 8085 Timing diagram - lecture 5b
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
 
8279 PKDI
8279 PKDI8279 PKDI
8279 PKDI
 
Data flow model -Lecture-4
Data flow model -Lecture-4Data flow model -Lecture-4
Data flow model -Lecture-4
 
Chap 3
Chap 3Chap 3
Chap 3
 
JK flip flops
JK flip flopsJK flip flops
JK flip flops
 
Information theory
Information theoryInformation theory
Information theory
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
8259 a
8259 a8259 a
8259 a
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
8085 addressing modes
8085 addressing modes8085 addressing modes
8085 addressing modes
 

Ähnlich wie SAP II ARTICTURE ,SAP 2

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
 

Ähnlich wie SAP II ARTICTURE ,SAP 2 (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
 
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
 
Presentation
PresentationPresentation
Presentation
 

Kürzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

SAP II ARTICTURE ,SAP 2

  • 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