SlideShare a Scribd company logo
Chapter 1:
Microprocessor based
Instrumentation System
Text books:
1. D. V. Hall, “Microprocessor and Interfacing, Programming and Hardware”,
Revised 2nd Edition 2006, Tata McGraw Hill
2. Ramesh S. Gaonkar, “Microprocessor Architecture, Programming and
Application with 8085”, 5th Edition 2002, Prentice Hall
• A microprocessor is a computational, programmable electronic device that is
able to perform complex tasks from basic computations logically arranged in a
program.
• multi-purpose device: Using many different programs to achieve many
different objectives, the microprocessor is often used in multiple applications.
• Instrumentation means to employ a method/process/apparatus to measure
physical parameters.
• Electrical/ Electronic transducers convert the real world physical parameters
into equivalent electrical signals.
• Calibration means to equate electrical signals to physical values/units.
Measurement is performed on a calibrated scale.
• A microprocessor based instrumentation system is centered around a
microprocessor that performs additional data processing/analysis on collected
digital data.
• The microprocessor based instrumentation system is versatile, reliable and
efficient and often has improved accuracy.
• Another advantage is that such a system can be used to automate and control
many processes such as an assembly line in factories, power plants, ATM
machine, etc
• Benefits of Microprocessor Based Instrumentation System
– Multipurpose: The same system can be used in different applications by simply
replacing with a new program and if necessary, the transducers.
– Immense computational power to improve accuracy and efficiency
– to achieve automation and control.
– Data logging in memory aids in interpolation and extrapolation of data, periodicity
and pattern recognition. Data can be further transmitted to remote servers.
– Parallel processing in modern processors improves speed of computation and
allows multitasking and multiplexing of many processes.
• Demerits
– Significant additional complexity and cost.
– Additional knowledge of machine dependant programming language to program
the microprocessor
– Tradeoff between complexity+cost versus system efficiency must be carefully
weighed while analyzing for feasibility.
• Benchmarks
– Speed: The greater the speed of the microprocessor, faster the data can be
sampled. Speed is critical especially for high bandwidth signals.
– Memory: The amount of memory required depends on the amount of data
required for decision making/data analysis, hence, is application specific. There is
always a tradeoff between accuracy and memory requirement and a careful
optimum must be chosen.
Open Loop & Closed Loop
Control System
• The inputs or the process
variables to any system (open/
closed loop) are provided from an
instrumentation system.
• The o/p of an open loop system is
based on the i/p(s) only
• Simple and low cost
• Manual adjustments for control
• An open loop control system may
or may not be microprocessor
based (need basis)
• In a closed loop system, the o/p is
fed back as i/p through a feedback
path.
• The o/p is based on the difference
between desired o/p and the
actual o/p
• High cost and complexity
• Adaptive: the system keeps the
difference between desired o/p
and actual o/p to zero.
• Usually microprocessor based.
Open Loop
System
o/pi/p Open Loop
System+i/p
o/p
-
+
Microcomputer Interfacing
• Interfacing means to connect I/O devices (here, the transducers) to the
microprocessor so as to enable communication/data flow between them.
• Interfaces (Ports) are hardware points (with necessary logic circuits) where
to connect the I/O devices
PC Interfacing Techniques
• The personal computer provides several different interfaces to connect peripherals
which are listed here
• I/O Bus: The system bus is made externally available for direct connection
through internal expansion slots on the motherboard. E.g: PCI bus
• Parallel ports: The data bus along with several control lines are made
individually available for external connection. E.g: LPT (Printer port)
• Serial ports: A single data line and some handshake signalling lines are
provided. E.g: COM1, COM2 communication interface
• USB ports: These are much versatile, faster and user-friendly serial ports
available in modern day computers
I/O addressing
• I/O addresses are used to identify between different
I/O devices.
• Two types of I/O addresses:
– Memory mapped I/O addresses: In the 8085, these are 16-
bit addresses, just like memory addresses and are used
just the same with MOV instructions in programs. In fact,
the data lines from the corresponding memory location is
hardwired to the I/O device and the IO/M control line
indicates memory access.
– I/O mapped addresses: In the 8085, these are 8-bit
addresses (also called port numbers) and are used with IN
and OUT instructions. The IO/M control line is asserted
high to indicate IO.
I/O address decoding
• The I/O address is decoded and then used to select/
enable/ activate the particular I/O device or their
buffers/ latches.
• Unique address decoding: The particular I/O device will
be activated with one and only one unique address.
The decoding circuitry decodes all address lines (A0:A7
for I/O mapped address; A0:A15 for memory mapped
I/O)
• Non-unique address decoding: Some of the least
significant address lines are unused in the decoding
circuitry providing a range of addresses for the
particular I/O device.
Types of I/O
• Programmed I/O (Polling): The microprocessor continuously monitors
(programmed in a loop) the I/O port or a flag associated with the port for
the arrival of new valid data (for input port)/ an indicator that the data has
been received (for output port). Programmed I/O is useful with such I/O
which continuously send/receive data. E.g: display
• Interrupt driven I/O: The microprocessor only serves the I/O port
(send/receive) when an interrupt corresponding to the particular I/O
device is raised. Interrupt-driven I/O is useful when the nature of data is
intermittent.
• Direct Memory Access (DMA): The microprocessor is always involved in
I/O except in DMA, where direct data transfer between I/O device and
memory in huge volumes takes place. The microprocessor simply releases
the data bus and address bus when a DMA request is received, such as
when loading the OS/ programs from the hard disk to memory. Valuable
time and resource is saved.

More Related Content

What's hot

upfc
upfcupfc
DUAL TRACE OSCILLOSCOPE
DUAL TRACE OSCILLOSCOPEDUAL TRACE OSCILLOSCOPE
DUAL TRACE OSCILLOSCOPE
Abdul Qayoom Mangrio
 
Amplifier (Transformer Coupled)
Amplifier (Transformer Coupled)Amplifier (Transformer Coupled)
Amplifier (Transformer Coupled)
Arpan Bose
 
Methods of Voltage Control
Methods of Voltage ControlMethods of Voltage Control
Methods of Voltage Control
Yashvi Mehta
 
3 phase half wave controlled converter with r Load
3 phase half wave controlled converter with r Load3 phase half wave controlled converter with r Load
3 phase half wave controlled converter with r Load
mechatronics jf
 
POWER ELECTRONIC DEVICES
POWER ELECTRONIC DEVICESPOWER ELECTRONIC DEVICES
POWER ELECTRONIC DEVICESshazaliza
 
Analysis of Shunt APF (Active PowerFilter)
Analysis of Shunt APF (Active PowerFilter)Analysis of Shunt APF (Active PowerFilter)
Analysis of Shunt APF (Active PowerFilter)
Rajesh Dunna
 
Application of DSP
Application of DSPApplication of DSP
Application of DSP
KUNAL RANA
 
Balanced faults
Balanced faultsBalanced faults
Balanced faults
RODGERS MARIGA
 
OP AMP Applications
OP AMP ApplicationsOP AMP Applications
OP AMP Applications
aroosa khan
 
Power system stability
Power  system  stabilityPower  system  stability
Power system stability
rohit kumar
 
Phase Locked Loop (PLL)
Phase Locked Loop (PLL)Phase Locked Loop (PLL)
Phase Locked Loop (PLL)
Debayon Saha
 
Thyristor
Thyristor Thyristor
Thyristor
Burdwan University
 
132 33kv substation documentation
132 33kv substation documentation132 33kv substation documentation
132 33kv substation documentation
Rajashekar Gurrala
 
Streamer theory of breakdown
Streamer theory of breakdownStreamer theory of breakdown
Streamer theory of breakdown
vishalgohel12195
 
Simulation of Boost Converter Using MATLAB SIMULINK.
Simulation of  Boost Converter Using MATLAB SIMULINK.Simulation of  Boost Converter Using MATLAB SIMULINK.
Simulation of Boost Converter Using MATLAB SIMULINK.
Raviraj solanki
 
Thyristors and its series and parallel combinations
Thyristors and its series and parallel combinationsThyristors and its series and parallel combinations
Thyristors and its series and parallel combinations
Ilyas Ghumman
 
Illumination Example 7
Illumination Example 7Illumination Example 7
Illumination Example 7
Vijay Raskar
 
MTDC SYSTEMS
MTDC SYSTEMSMTDC SYSTEMS
MTDC SYSTEMS
Prashant Kumar
 
Sample and hold circuit
Sample and hold circuitSample and hold circuit
Sample and hold circuit
Prathamesh Kolekar
 

What's hot (20)

upfc
upfcupfc
upfc
 
DUAL TRACE OSCILLOSCOPE
DUAL TRACE OSCILLOSCOPEDUAL TRACE OSCILLOSCOPE
DUAL TRACE OSCILLOSCOPE
 
Amplifier (Transformer Coupled)
Amplifier (Transformer Coupled)Amplifier (Transformer Coupled)
Amplifier (Transformer Coupled)
 
Methods of Voltage Control
Methods of Voltage ControlMethods of Voltage Control
Methods of Voltage Control
 
3 phase half wave controlled converter with r Load
3 phase half wave controlled converter with r Load3 phase half wave controlled converter with r Load
3 phase half wave controlled converter with r Load
 
POWER ELECTRONIC DEVICES
POWER ELECTRONIC DEVICESPOWER ELECTRONIC DEVICES
POWER ELECTRONIC DEVICES
 
Analysis of Shunt APF (Active PowerFilter)
Analysis of Shunt APF (Active PowerFilter)Analysis of Shunt APF (Active PowerFilter)
Analysis of Shunt APF (Active PowerFilter)
 
Application of DSP
Application of DSPApplication of DSP
Application of DSP
 
Balanced faults
Balanced faultsBalanced faults
Balanced faults
 
OP AMP Applications
OP AMP ApplicationsOP AMP Applications
OP AMP Applications
 
Power system stability
Power  system  stabilityPower  system  stability
Power system stability
 
Phase Locked Loop (PLL)
Phase Locked Loop (PLL)Phase Locked Loop (PLL)
Phase Locked Loop (PLL)
 
Thyristor
Thyristor Thyristor
Thyristor
 
132 33kv substation documentation
132 33kv substation documentation132 33kv substation documentation
132 33kv substation documentation
 
Streamer theory of breakdown
Streamer theory of breakdownStreamer theory of breakdown
Streamer theory of breakdown
 
Simulation of Boost Converter Using MATLAB SIMULINK.
Simulation of  Boost Converter Using MATLAB SIMULINK.Simulation of  Boost Converter Using MATLAB SIMULINK.
Simulation of Boost Converter Using MATLAB SIMULINK.
 
Thyristors and its series and parallel combinations
Thyristors and its series and parallel combinationsThyristors and its series and parallel combinations
Thyristors and its series and parallel combinations
 
Illumination Example 7
Illumination Example 7Illumination Example 7
Illumination Example 7
 
MTDC SYSTEMS
MTDC SYSTEMSMTDC SYSTEMS
MTDC SYSTEMS
 
Sample and hold circuit
Sample and hold circuitSample and hold circuit
Sample and hold circuit
 

Similar to 1.instrumentation ii

Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
JavedIqbal549896
 
chapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdfchapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdf
SangitaBose2
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its typesNehal Naik
 
Embedded sysyetm components
Embedded sysyetm componentsEmbedded sysyetm components
Embedded sysyetm components
lambanaveen
 
I/O systems chapter 12 OS
I/O systems chapter 12 OS I/O systems chapter 12 OS
I/O systems chapter 12 OS
ssuser45ae56
 
micro manit.pptx
micro manit.pptxmicro manit.pptx
micro manit.pptx
bhaveshagrawal35
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
Pratik Gohel
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptx
DrVaibhavMeshram
 
An Introduction to Microcontrollers.pptx
An Introduction to Microcontrollers.pptxAn Introduction to Microcontrollers.pptx
An Introduction to Microcontrollers.pptx
139RAJESHA
 
Unit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.pptUnit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.ppt
prateeksingh235912
 
Input_Output_Organization.pptx
Input_Output_Organization.pptxInput_Output_Organization.pptx
Input_Output_Organization.pptx
SherinRappai
 
Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introduction
Kiran Bagale
 
A guide to common automation terms
A guide to common automation termsA guide to common automation terms
A guide to common automation terms
Pratap Chandra
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
Manoharan Ragavan
 
Introduction to microcontrollers
Introduction to microcontrollersIntroduction to microcontrollers
Introduction to microcontrollers
EdwardOmondi4
 
PLC and SCADA communication
PLC and SCADA communicationPLC and SCADA communication
PLC and SCADA communication
Talha Shaikh
 
Unit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptxUnit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptx
Medicaps University
 
I/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxI/o management and disk scheduling .pptx
I/o management and disk scheduling .pptx
webip34973
 

Similar to 1.instrumentation ii (20)

Cao u1
Cao u1Cao u1
Cao u1
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
 
chapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdfchapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdf
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its types
 
Embedded sysyetm components
Embedded sysyetm componentsEmbedded sysyetm components
Embedded sysyetm components
 
I/O systems chapter 12 OS
I/O systems chapter 12 OS I/O systems chapter 12 OS
I/O systems chapter 12 OS
 
micro manit.pptx
micro manit.pptxmicro manit.pptx
micro manit.pptx
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptx
 
An Introduction to Microcontrollers.pptx
An Introduction to Microcontrollers.pptxAn Introduction to Microcontrollers.pptx
An Introduction to Microcontrollers.pptx
 
Unit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.pptUnit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.ppt
 
Input_Output_Organization.pptx
Input_Output_Organization.pptxInput_Output_Organization.pptx
Input_Output_Organization.pptx
 
Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introduction
 
A guide to common automation terms
A guide to common automation termsA guide to common automation terms
A guide to common automation terms
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
 
Introduction to microcontrollers
Introduction to microcontrollersIntroduction to microcontrollers
Introduction to microcontrollers
 
PLC and SCADA communication
PLC and SCADA communicationPLC and SCADA communication
PLC and SCADA communication
 
Unit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptxUnit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptx
 
I/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxI/o management and disk scheduling .pptx
I/o management and disk scheduling .pptx
 

Recently uploaded

Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 

Recently uploaded (20)

Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 

1.instrumentation ii

  • 1. Chapter 1: Microprocessor based Instrumentation System Text books: 1. D. V. Hall, “Microprocessor and Interfacing, Programming and Hardware”, Revised 2nd Edition 2006, Tata McGraw Hill 2. Ramesh S. Gaonkar, “Microprocessor Architecture, Programming and Application with 8085”, 5th Edition 2002, Prentice Hall
  • 2. • A microprocessor is a computational, programmable electronic device that is able to perform complex tasks from basic computations logically arranged in a program. • multi-purpose device: Using many different programs to achieve many different objectives, the microprocessor is often used in multiple applications. • Instrumentation means to employ a method/process/apparatus to measure physical parameters. • Electrical/ Electronic transducers convert the real world physical parameters into equivalent electrical signals. • Calibration means to equate electrical signals to physical values/units. Measurement is performed on a calibrated scale. • A microprocessor based instrumentation system is centered around a microprocessor that performs additional data processing/analysis on collected digital data. • The microprocessor based instrumentation system is versatile, reliable and efficient and often has improved accuracy. • Another advantage is that such a system can be used to automate and control many processes such as an assembly line in factories, power plants, ATM machine, etc
  • 3. • Benefits of Microprocessor Based Instrumentation System – Multipurpose: The same system can be used in different applications by simply replacing with a new program and if necessary, the transducers. – Immense computational power to improve accuracy and efficiency – to achieve automation and control. – Data logging in memory aids in interpolation and extrapolation of data, periodicity and pattern recognition. Data can be further transmitted to remote servers. – Parallel processing in modern processors improves speed of computation and allows multitasking and multiplexing of many processes. • Demerits – Significant additional complexity and cost. – Additional knowledge of machine dependant programming language to program the microprocessor – Tradeoff between complexity+cost versus system efficiency must be carefully weighed while analyzing for feasibility. • Benchmarks – Speed: The greater the speed of the microprocessor, faster the data can be sampled. Speed is critical especially for high bandwidth signals. – Memory: The amount of memory required depends on the amount of data required for decision making/data analysis, hence, is application specific. There is always a tradeoff between accuracy and memory requirement and a careful optimum must be chosen.
  • 4. Open Loop & Closed Loop Control System • The inputs or the process variables to any system (open/ closed loop) are provided from an instrumentation system. • The o/p of an open loop system is based on the i/p(s) only • Simple and low cost • Manual adjustments for control • An open loop control system may or may not be microprocessor based (need basis) • In a closed loop system, the o/p is fed back as i/p through a feedback path. • The o/p is based on the difference between desired o/p and the actual o/p • High cost and complexity • Adaptive: the system keeps the difference between desired o/p and actual o/p to zero. • Usually microprocessor based. Open Loop System o/pi/p Open Loop System+i/p o/p - +
  • 5. Microcomputer Interfacing • Interfacing means to connect I/O devices (here, the transducers) to the microprocessor so as to enable communication/data flow between them. • Interfaces (Ports) are hardware points (with necessary logic circuits) where to connect the I/O devices PC Interfacing Techniques • The personal computer provides several different interfaces to connect peripherals which are listed here • I/O Bus: The system bus is made externally available for direct connection through internal expansion slots on the motherboard. E.g: PCI bus • Parallel ports: The data bus along with several control lines are made individually available for external connection. E.g: LPT (Printer port) • Serial ports: A single data line and some handshake signalling lines are provided. E.g: COM1, COM2 communication interface • USB ports: These are much versatile, faster and user-friendly serial ports available in modern day computers
  • 6. I/O addressing • I/O addresses are used to identify between different I/O devices. • Two types of I/O addresses: – Memory mapped I/O addresses: In the 8085, these are 16- bit addresses, just like memory addresses and are used just the same with MOV instructions in programs. In fact, the data lines from the corresponding memory location is hardwired to the I/O device and the IO/M control line indicates memory access. – I/O mapped addresses: In the 8085, these are 8-bit addresses (also called port numbers) and are used with IN and OUT instructions. The IO/M control line is asserted high to indicate IO.
  • 7. I/O address decoding • The I/O address is decoded and then used to select/ enable/ activate the particular I/O device or their buffers/ latches. • Unique address decoding: The particular I/O device will be activated with one and only one unique address. The decoding circuitry decodes all address lines (A0:A7 for I/O mapped address; A0:A15 for memory mapped I/O) • Non-unique address decoding: Some of the least significant address lines are unused in the decoding circuitry providing a range of addresses for the particular I/O device.
  • 8. Types of I/O • Programmed I/O (Polling): The microprocessor continuously monitors (programmed in a loop) the I/O port or a flag associated with the port for the arrival of new valid data (for input port)/ an indicator that the data has been received (for output port). Programmed I/O is useful with such I/O which continuously send/receive data. E.g: display • Interrupt driven I/O: The microprocessor only serves the I/O port (send/receive) when an interrupt corresponding to the particular I/O device is raised. Interrupt-driven I/O is useful when the nature of data is intermittent. • Direct Memory Access (DMA): The microprocessor is always involved in I/O except in DMA, where direct data transfer between I/O device and memory in huge volumes takes place. The microprocessor simply releases the data bus and address bus when a DMA request is received, such as when loading the OS/ programs from the hard disk to memory. Valuable time and resource is saved.