Chapter 1 - Microprocessor Based Instrumentation System
Chapter 1 - Microprocessor Based Instrumentation System
Chapter – 1
Microprocessor Based Instrumentation System
Microprocessor: A Microprocessor is a multipurpose programmable, clock driven,
register based electronic device fabricated using signal integrations from SSI to VLSI that
reads binary instructions from a storage device called memory, accepts binary data as
input, processes data according to those instructions and provide result s as output.
Why microprocessor?
Can be used in any system.
Can be used in specific applications and specific design.
Logical and computational power of microprocessor has been used to develop
more accurate and efficient system.
Pressure (Analog
Signal) RAM Panel
ADC Panel
Memory Interface
DAC
To Heater
Control System
Port RAM
Panel
port Panel
Interface
ADC
Temperature of
Oven
Process / Multiplexer
Analog
Plant / (to sequentially feeds
Transducer
System the outputs one at atime)
Signal Conditioner
And
Magnetic Disk Print Out ADC
Computer Digital
Data Logger
Produces O/P Computer Software
Data
Communica-
tion
Remote Indicator
Fig: A typical digital computer based instrumentation system
Advantages:
Suitably programmed to automatically carry out the mundane tasks of drift
correction, noise reduction, gain adjustments, automatic calibration etc.
These instruments have signal conditioning and display which are
compact, rugged and reliable and are suited for performing in wide
conditions like industrial, consumer, military, automobile etc.
References: Gaonkar, Hall & Fowler | 4
Instrumentation II Chapter 1: Microprocessor Based Instrumentation System
Disadvantages:
They cannot replace the program themselves.
Software update
Prone to virus problem, so may become in-operational.
3) USB ports
Universal serial bus used for connecting number of peripheral
devices such as printer, scanner, digital cameras, and pen drives
etc. It is faster compared to traditional parallel and serial ports.
registers are arranged in a sequence and identified by binary numbers called memory
address.
To communicate with memory, the MPU should be able to:
- Select the chip
- Identify the register
- Read from or write into the register
The address decoding circuit enables MPU to select an address within memory chip or
I/O chip and then read or write into it through the available data bus and thus avoid
contention or data collision within the data bus.
Microprocessor is connected with memory and I/O devices via common address and data
bus. Only one device can send data at a time and other devices can only receive that data.
If more than one device sends data at the same time, the data gets garbled. In order to
avoid this situation, ensuring that the proper device gets addressed at proper time, the
technique called address decoding is used.
In address decoding method, all devices like memory blocks, I/O units etc. are assigned
with a specific address. The address of the device is determined from the way in which
the address lines are used to derive a special device selection signal known as chip select
( ( ). If the microprocessor has to write or to read from a device, the signal to that
block should be enabled and the address decoding circuit must ensure that signal
to other devices are not activated.
Depending upon the no. of address lines used to generate chip select signal for the device,
the address decoding is classified as:
Depending on the address that are allocated to the device the address decoding are
categorized in the following two groups.
If A0 is high and A1- A7 are low and if becomes low, the latch gets enabled.
The data to the LED can be transferred in only one case and hence the device has unique
address of 01H.
Example: Design an address decoding circuit for two RAM chips each of 4K X 8 at address
2050H.
Step 1: Calculate the number of address pins
Here both memory devices are of 4K X 8 memory which is 4KB. That means 2 n = 4KB (4X1KB
= 22X210 = 212). Therefore, 4KB memory requires 12 address lines.
n = log (memory capacity in bytes) / log (2)
n = log (4X1024) / log (2) = 12
Memory Address A A A A A A A A A A A A A A A A
Block 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
5 4 3 2 1 0
RAM Start:2050H 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0
End:304FH 0 0 1 1 0 0 0 0 0 1 0 0 1 1 1 1
ROM Start:3050H 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0
End:404FH 0 1 0 0 0 0 0 0 0 1 0 0 1 1 1 1
Here RAM1 requires 12 address lines that is 111111111111 (FFFH). The starting address of
RAM1 is 2050H; we can calculate the end address of RAM1 by adding RAM1 addresses with its
base address that is 2050H + FFFH = 304FH.
Similarly RAM2 requires 12 address lines that is 111111111111 (FFFH). The next address of the
RAM1’s end address is the starting address of RAM2 that is 304FH + 01H = 3050H. Now we
can calculate the end address of RAM2 by adding RAM2 addresses with its starting address that
is 3050H + FFFH = 404FH.
Step 3: Decide decoder pins
Here, bit A12 in address lines for RAM1 and RAM2 referring to start address are different, so
we require a 1X2 decoder. If we refer the end address, bits A12, A13 and A14 are different; in
this case we should use 3X8 decoder. Address lines A0 through A11 are used by RAM1 and
RAM2 as both having 12 address pins. Rest of the address lines (A15 if 3X8 decoder and A13,
A14 and A15 if 1X2 decoder) will be decoded to generate chip enable signals for decoder.
1.5.4 Programmed I/O, Interrupt Driven I/O and Direct Memory Access
(DMA)
Programmed I/O or Polling:
The microprocessor is kept in a loop (programmed) to check whether data are
available. For example to read a data from an input keyboard in a single board
microcomputer, the microprocessor can keep polling the port until a key is
pressed.