123 Eng

Engineering the engineers

Latest Jobs Forum(hot)

 

Home

Source Codes

Engineering Colleges

BE Students

Training  Reports (updated)

Seminar Reports (updated

Placement Papers (updated)

Forums

   Computer Science / IT

   Electronics

   Electrical

   Mechanical

   Chemical

   Civil

   CAT / MBA

   GMAT / Foreign MBA

Latest Jobs

Engineering Jobs / Technical Jobs

Management Jobs

Sitemap

About-Us

Terms of use

 
   

Training Reports / Projects

 
 

Project on Remote Sensing

 

PRACTICAL TRAINING

AT

DEFENCE LABORATORY, JODHPUR

TOPIC: - Remote Sensing, Digital Image Processing and some electronics instrumentation projects.

CONTENTS

 

1.  INTRODUCTION TO REMOTE SENSING AND DIGITAL IMAGE  PROCESSING

2.  FUNCTIONAL REQUIREMENTS OF THE SYSTEM

Ø      RPM SENSOR

Ø      THE 8751 MICROCONYROLLER

3.  CIRCUIT DIAGRAMS

4.  CIRCUIT DESCRIPTION

5.  PROGRAM CODING

6.  CONCLUSION

 

PREFACE

The summer training for IV semester was completed from Defence Laboratory, Jodhpur a Research Laboratory under Ministry of Defence, Defence Research and Development Organization. The work place allotted within the laboratory was Remote Sensing Group. The group is essentially engaged in activities related to Remote Sensing, Digital Image Processing and some electronics instrumentation projects.

 INTRODUCTION: The main activity of the group in which I was placed was remote sensing. The Remote sensing data is obtained from various satellites such as Indian Remote Sensing satellites, LANDSAT of USA, SPOT satellite of France, IKONOS of USA etc. This data comes in different resolutions. The data needs lot of processing before it can be used for analysis of ground cover or details of features on ground. Software for processing of satellite data was demonstrated to us along with ways and means of analysis. The group is also engaged in development of instrumentation and our area of specialization being electronics we were given training in electronics.

SCOPE: The training was aimed at imparting understanding of instrument design using intel’s 8751 microcontroller and I was specifically directed to develop a RPM  Counter.

LEARNING OBJECTIVES:

SHORT TERM: The short term objective was to develop RPM Counter using intel’s 8751 microcontroller.

LONG TERM: Long term learning objectives were:

Ø                To understand the intel’s 8751 microcontroller

Ø                To understand itinerary of instrument design

Ø                To be able to develop software in assembly language

Ø                To learn the concept of microprocessor development system

 

 

METHODOLOGY: Initially I was introduced to the subject of microprocessors in general and 8751 in particular through a series of lectures/ discussions. Familiarization with the software and hardware development environment was thereafter completed. The concept of how to proceed with system design was introduced before the final task was assigned. My progress on the task was regularly monitored and problems encountered were sorted out till the completion of task

 

CONTENTS OF TRAINING:  The training consisted of following activities:

Ø                Learning Microprocessor hardware and software through lectures/ discussions.

Ø                Familiarization with development environment.

Ø                Issues of signal compatibility for sensor connectivity.

Ø                Working with 7 segment displays and drivers.

Ø                Constructing the circuit on general purpose PCBs.

Ø                Burning programs in controller and

Ø                Testing of the system

ACHIEVEMENTS:   The objectives of the training outlined above were achieved. A RPM Counter for the given sensor was constructed and tested. With additions such as calibration etc. it can be a functional unit.

CONCLUSION: The objectives of the training were completely achieved.

 

REFERENCES:

1.        Intel’s Data sheets on 8751 microcontroller.

2.        National semiconductor Datasheets

3.        Introduction to Microprocessor: Aditya P. Mathur

4.        Microprocessor data Hand book BPB Publications

 

INTRODUCTION TO REMOTE SENSING AND DIGITAL IMAGE PROCESSING

Remote sensing in the present context can be defined as a tool for getting information about the terrestrial objects from a platform placed at sufficiently high altitude. The field of remote sensing came in prominence after 1950. The availability of multiple data acquisition techniques and data analysis systems made this possible. The remote sensing techniques enhance the capability of human observer. The limitation of line of sight, hindrance caused by undulations of terrain, obstruction of view by natural or artificial objects etc. are automatically overcome as the sensor is at a much higher height than most terrestrial objects. This has become possible due to data acquisition in limited and narrow spectral bands, near IR and thermal IR imaging, microwave imaging etc.

Remote sensing of an area requires: 1. A platform, 2. Suitable Sensor, 3. Data collected from the platform, 4. Some ground based information for assisting the process of information extraction and 5. A computer system along with necessary software for data analysis and output generation.

THE PLATFORM

The platforms can be of wide variety. Cherry picker, Balloons, Aircraft, and satellites of commercial and secrete nature are commonly used platforms. The use of Cherry packer and balloons can yield very high-resolution data since the altitude is low in comparison with other platforms. These platforms are however inconvenient to collect data and not suitable in defence applications since placing these in adversaries area is out of question. The Aircraft is a convenient means of data collection. It can yield high-resolution data and can be deployed for reconnaissance flights. Unmanned aircraft can also be used in specific applications. The aircraft however is susceptible to anti-aircraft missiles. Satellites are the most convenient means of data collection. Commercial data products of any location are readily available and the resolution of these data products is day by day increasing to suit military applications. Recently the IKONOS satellite has been announced with 1m resolution. This resolution can enable detection capability to detect even a single tank placed on ground.

THE SENSORS

These may include aerial cameras, aerial scanners, Satellite based imaging scanners etc. The imaging may again be done in any range of electromagnetic spectra e.g. Microwave, Visible, Near IR or Thermal IR. Depending on the altitude of the sensor and the scanner used the resolution of the data changes. The resolution or pixel size is defined as the area represented by a single data point. The spectral specifications include number of bands and the spectral response of each of them. Details on this topic are discussed in the lecture on SENSORS.

       The following figure illustrates a typical data acquisition system used in remote sensing. The platform shown is a satellite. The sensor shown is a typical scanning imager. The satellites, which are generally launched in the sun-synchronous orbit, revolve in plane orthogonal to the equatorial plane. The satellite while passing over any locations scans the ground in the different spectral bands. The reflection from the earth surface is digitized and the digital data is transmitted to the data receiving stations.

DIGITAL IMAGE PROCESSING

Processing of any two dimensional data is termed as image processing. Such data may be satellite scanner imageries, X-ray photographs, temperature profiles of an object, CAT scan images, aerial scanner data or any other two dimensional data. This is a wide definition and includes image processing by visual as well as digital means. The part of image processing that shall be discussed in this lecture is digital image processing. Optical image processing tools are also used, which are convenient and fast. The limitation of optical processing is the complexity of the systems and their inability in generation of outputs of statistical and numerical nature. Quantification of parameters using optical processing is difficult.

Digital image processing techniques can be further divided into seven sub-sections. These are, 1. Image representation, 2. Image transforms, 3. Image restoration, 4. Image enhancement, 5. Image reconstruction, 6. Image analysis and 7. Data compression.

The brief summary of each of these processes is discussed here:-

 

IMAGE REPRESENTATION

         A digital image is a set of numbers represented in matrix format. Fig. 1 shows a sample digital image. The image data placed in such format or any other suitable format is termed as image representation

a1,1

a2,1

...

am,1

a1,2

a2,2

...

...

...

...

...

...

--

a2,n

...

am,n

 

 

 

 

 

 

 

 

 

 

 

 

The origin of the data is a continuous image i.e. analog image. The analog image is suitably scanned to generate the digital equivalent of the image. In some cases e.g. satellite or aerial scanners the sensor itself generates digital output. For true representation of the input the sampling must be done at greater than Nyquist rate. Any details of spatial frequency above the frequency decided by the sampling rate will be lost and create input noise for other details. The sampling must therefore be optimally done to reproduce all the relevant details in the scene. Each number in the matrix represents an area in the scene. E.g. in IRS IC PAN Images a data point represent 5.8m * 5.8m area on the ground. The data point in the digital image is termed as ‘PIXEL’. 

IMAGE MODELS

The representation of image data is done in many formats. The above shown representation is one such model. This is known as matrix format of representation. Other methods are Fourier/ or Walsh transform representation, statistical models, and neighborhood models. These models are useful for noise removal, feature extraction, classification, edge detection etc.

IMAGE TRANSFORMS

For the purpose of mathematical processing the images are needed to be transformed to suitable orthogonal set of functions. Similar to the one-dimensional signal processing many orthogonal set of functions are used in case of image processing also. The transformation to orthogonal set of Eigen functions is essential for estimating the response of any system to an unknown input. If the input and the system response both can transformed to the basic Eigen function set then the response of the system to any input can be predicted as the sum of the response of the system to Eigen functions with change in multiplication constant or Eigen number.

One most widely used transform is the Fourier transform. The discreet version of the transform can be implemented in a computer system. The two-dimensional discreet Fourier transform F(u, v) for image f(x, y) of size M * N is defined as               

                 1       M-1   N-1                         ux       vy 

F(u, v) = -----    ( å     å f(x, y) exp[-j2p{---- + ----  }])

               MN     x=0  y=0                           M       N 

 

Salient features of this transform are:

1.                  Translation of input results in phase shift in the output.

2.                  Rotation of input results in rotation in the transformed image.

3.                  Scaling can be predicted and

4.                  Fast algorithms are available for implementing the transformation. This transform is particularly useful for spatial frequency filtering.

The other transforms that are widely used are Walsh transform, Hadamard-Walsh transform, Cosine transform, Sine transform, Slant transform and KL transforms.

The KL transform differs from the other set of transforms. The Eigen functions of transformation in this case are derived from the derivative (Statistical) of the input image. Such transforms are known as Hotelling transforms. The hotelling transforms are specifically suitable for application in data compression and analysis.

IMAGE RESTORATION

The reduction or removal of aberrations in the image caused by imaging system is called image restoration. Aberrations in the image caused during image acquisition can be different.

Some examples of such aberrations are listed here:

1.  Focusing: The imaging system if not properly focused shall blur the image. Usually this type of aberration is circularly symmetric and can be easily removed with the help of Fourier transform filtering.

2. Non-linear quantization: If the analog to digital converter of the imaging system does not have linear response over the range of input light intensity the resulting image is said to have non-linear quantization error.

3.  Motion blur: The blur caused in the image due to relative motion of the object and the camera/ imaging system this aberration is produced in the output image.

4. Geometric distortion: Geometric distortion is specifically related to the remote sensing data. Here the sensor is seeing a wide area of the earth surface from very high altitude. The distortion in the output image may be caused due variation in altitude of the sensor, change in the angle of the sensor, tilting of the platform on any of the three axis etc. The curvature of the earth also adds the error in the planar output.

            The generalized approach of the image restoration technique is as follows. The mathematical model shown in Fig. 2 represents the imaging system.

f(i,j)         h(i,j,l,m)                                g(n)              f’(i,j)

 

Or,                               ¥

f’(i,j) = g(n) å    å f(i,j)h(i,j,l,m)                                

                                    l,m =-¥

Where,

f’(i, j) is the output image.

h(i,j,l,m) is the point spread function of the imaging system.

g(n) is the quantization function.

f(i,j) is the scene.

The obvious solution to this equation is the inverse transformation. This can be expressed as:

            f(i,j) = g-1(n) å  å  f’(i,j) h -1(i,j,l,m)

                                    l,m =-¥           

However, it is not always possible to implement this function.

The reasons are:

1.              The function g and h are not a-priori known and

2.              The solution may result in unrealistic output terms.

The most popular means therefore are constrained solutions based on statistical methods. One such solution is the Wiener filtering technique. The requirement of using this technique is a-priori knowledge of mean, variance and noise distribution.

IMAGE ENHANCEMENT

Image enhancement techniques are the techniques of improving the perceptibility of the image by means of applying a mathematical operator on the image. These techniques are segregated in four classes based on the nature of the mathematical operator used. These are

1.      Pixel base

2.      Histogram based

3.      Spatial based and

4.      Multiple imagery based.

Pixel based image enhancement: The operator used in this type of enhancement operates on the magnitude of the pixel without considering any other pixel values. The most commonly used operations are contrast stretching, noise clipping, bit slicing and negative formation. The contrast-stretching operator stretches the distribution of magnitude of the pixels. In noise clipping algorithms the part of the magnitudes causing noise are clipped out of the pixel values. Bit slicing is formation of the image using on or more number of bits from the binary number corresponding to the pixel value. Negative formation is done by inverting the pixel values and assigning the closest appropriate number to the pixel.

Histogram based operators: The histogram of pixel values is referred to as input. This histogram is changed by suitable operator to yield a better quality image. These operators are

1.         Histogram equalization,

2.         Histogram modification and

3.         Density slicing.

Histogram equalization: The distribution of the pixel values is changed in a manner that the histogram of the output has equal distribution. The operator required is the probability density function of the input image.

Histogram modification: The histogram is modified by an operator derived from the probability density function.

Density slicing: Density slicing operator works in the following. The input histogram is divided into a few sub sections. These may or may not be equal in distribution. The pixel value falling in a subsection is assigned a suitable numerical value. The resultant image is displayed as a gray level image or by assigning a different color to each numerical value.

Spatial operators: The image enhancement is done by considering the neighborhood pixels. These operators are low pass filtering, high pass filtering, median filtering, directional smoothing etc. The image is convolved with a matrix of size 3*3 or larger to yield the output image. The nature of the operator chosen shall decide whether it is low pass or high pass etc.

Multiple imagery based: More than one image are used in this type of enhancements. E.g. Image of the same scene with different band from a satellite scanner or images of the same scene of different dates may be used. The standard techniques used are as follows.

False color composite: The images from satellite scanner are arranged to represent as NIR image = R plane, Red band image = Green band and Green band image = Blue plane. The vegetation on the ground with high NIR reflectance appears red can be distinguished from other green colored objects.

Pseudo Color: The images displayed with color scheme other than the one described above is called as pseudo color composite. Depending on the specific applications different color schemes may be more suitable.

Image Subtraction: The output image to be displayed is made from the subtraction of two images with adequate bias and gain. This enhancement is useful for analyzing changes in the scene.

Band rating: The image formed by rating two bands or combination of them is the output image. This technique is suitable to eliminate the effect illumination condition, slopes etc. Some operators in this type of image enhancement have been commonly adopted e.g. the NDVI which is useful for measuring extent of vegetation.

IMAGE RECONSTRUCTION

Some sensors like ultrasonic scanners, neutron radiography etc. generate one-dimensional data. The characteristic of the imaging techniques is such that the point-spread function is two-dimensional. Extensive mathematical treatment is therefore required for making an image from the data recorded. The processing techniques adopted in these applications are termed as image reconstruction.

 

IMAGE ANALYSIS

Quantification of parameters from the image is termed as image analysis. This may comprise of measurement of extent of vegetation, cultivable lands, urban areas or measurement of size, shape, spectral response of an identified area/ object. The routine procedure of image analysis comprises of following steps:

 

Segmentation: The image segments with common qualities are isolated. The techniques used are called classification techniques. These techniques may be supervised or unsupervised. The supervised techniques require the operator to specify the characteristic of the classes. This may be done by visually identifying an area belonging to each class or by feeding the relevant information like mean and standard deviation of gray values. Popular methods based on this technique are Minimum distance classifier and Maximum likelihood classifier. The unsupervised methods of classification do not need any interaction from the user. The classification process is automatic by identifying close resemblance characterization. The methods are clustering and histogram based techniques.

 

Feature extraction: After classification is performed by any one of the methods the segments of the class of interest are combined. This process is called feature extraction.

 

Boundary detection: Once the feature extraction is completed the boundary of the feature is detected. The boundary detection can be performed by either edge extraction or by nearest neighborhood method. The boundary is then coded in mathematical representation. The various representations used are chain code, quad tree, Fourier descriptors or b-spleens.

 

Area mapping: The boundary thus detected and coded is used for mapping of the area occupied by the feature.

 

Labeling: Individual areas are marked with labels. The labels need not identify the class or objects.

 

Identification: The user after studying the spectral signature of the labeled class and using his airport knowledge whether by experience or by ground truth correlation identifies the particular feature or object.

 
DATA COMPRESSION

The data received for remote sensing is very huge. E.g. a 30 km * 30 km area image by IRS 1C LISS III sensor shall have minimum 3Mbytes and the corresponding PAN data shall be approximately 4MB. Storage and retrieval of this huge data is a complex problem. The data compression techniques are used to reduce this voluminous data. The techniques used are image transforms e.g. Fourier, cosine, KL transform etc. and coding techniques. 

FUNCTIONAL REQUIREMENTS OF THE SYSTEM

The objective of the project was to build an RPM counter using Intel’s 8751 Microcontroller. The sensor for RPM measurement was a LED-LDR pair in conjunction with a wheel mounted on the shaft of the motor having Black and White Strips. The frequency of the signal is directly proportional to the RPM.

The microprocessor system was required to measure the frequency output from the flow sensor and display the flow in 7 segment LED displays driven by Port outputs of 8751 via BCD to seven segment decoders. 

After testing of the functionality of the software, a synthesizable system was to be designed so that the hardware requirement is minimal.  The required functions to be implemented were:

1.                  Internal Timer ‘0’ to be configured for 64k so that interrupt from the timer arrives every 64msec.

2.                  Keeping the Timer 1 in counter mode controlled under software control through timer ‘0’ interrupt.

3.                   Reading the counter in every interrupt before restarting the timer/ counter function again.

4.                  Displaying the RPM in seven segment LED display

 

RPM SENSOR

The LED-LDR combination works on the principle of measurement of light intensity. It can be used in light path interruption mode or in the mode of sensing reflected light intensity. In our setup light reflection phenomena was used.

The arrangement used is shown in fig. 1.

Fig. 1 LED-LDR sensor in reflection mode

Light emitted by the LED is directed towards the outer core of the wheel. The outer core has one white mark against a black background. When the black background is exposed to incident light the reflected energy is low and the resistor value of LDR remains unaffected. As the white portion of the core faces incident radiation, it reflects most of the energy. This reflected light falls on the LDR causing the resistance to drop. Voltage across the output also drops. If there is only one white spot on the wheel the RPM shall be,

 

 60 * frequency of sensor output

The resolution and speed of measurement can be increased to desired level by having multiple black & white stripes.

Another possible arrangement is to use a toothed wheel and place the LED-LDR combination in such away that the teeth interrupt the passage of light between LED and LDR.

THE 8751 MICROCONTROLLER

The 8051 is an 8 bit microcontroller originally developed by Intel in 1980.  It is the world's most popular microcontroller core, made by many independent manufacturers (truly multi-sourced).

 

An 8751 contains:
       - CPU with Boolean processor
       - 5 interrupts of which 2 are external 2 priority levels
       - 2 * 16-bit timer/ counters
       - Programmable full-duplex serial port
         (Baud rate provided by one of the timers)
       - 32 I/O lines (four 8-bit ports)
       - RAM

       - 4Kbyte EPROM in some models

 

 

The 8751 instruction set is optimized for the one-bit operations so often desired in real-world, real-time control applications. The Boolean processor provides direct support for bit manipulation. This leads to more efficient programs that need to deal with binary input and output conditions inherent in digital-control problems. Bit addressing can be used for test pin monitoring or program control flags.
SPECIFICATIONS OF 87C51
CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
Commercial/ Express 87C51
■ High Performance CHMOS EPROM
■ 12 MHz Operation
■ Improved Quick-Pulse Programming Algorithm
■ 3-Level Program Memory Lock
■ Boolean Processor
■ 128-Byte Data RAM
■ 32 Programmable I/O Lines
■ Two 16-Bit Timer/Counters
■ Extended Temperature Range (-40°C to +85°C)
■ 5 Interrupt Sources
■ Programmable Serial Port
■ TTL- and CMOS-Compatible Logic Levels
■ 64K External Program Memory Space
■ 64K External Data Memory Space
 

 

MEMORY ORGANIZATION:

 

Program memory: Up to 4 Kbytes of the program memory can reside on-chip. In addition the device can address up to 64K of program memory external to the chip.

 

Data memory: This microcontroller has a 128 x 8 on-chip RAM. In addition it can address up to 64 Kbytes of external data memory.

The Intel 87C51 is a single-chip control-oriented Microcontroller which is fabricated on Intel's reliable CHMOS III-E technology. Being a member of the MCS® 51 controller family, the 87C51 uses the same powerful instruction set, has the same architecture, and is pin-for-pin compatible with the existing MCS 51 controller family of products.

 

PIN OUT DETAILS

PIN DESCRIPTION:

VCC: Supply voltage.

VSS: Circuit ground.

Port 0: Port 0 is an 8-bit open drain bidirectional I/O port. As an output port each pin can sink several LS TTL inputs. Port 0 pins that have 1's written to them float, and in that state can be used as high-impedance inputs. Port 0 is also the multiplexed low-order address and data bus during accesses to external memory. In this application it uses strong internal pull-ups when emitting 1's.

Port 0 also receives the code bytes during EPROM programming, and outputs the code bytes during program verification. External pull-ups are required during program verification.

Port 1: Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1 output buffers can drive LS TTL inputs. Port 1 pins that have 1's written to them are pulled high by the internal pull-ups, and in that state can be used as inputs. As inputs, Port 1pins that are externally pulled low will source current (IIL, on the data sheet) because of the internal pull-ups.

Port 1 also receives the low-order address bytes during EPROM programming and program verification.

Port 2: Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. Port 2 pins that have 1's written to them are pulled high by the internal pull-ups, and in that state can be used as inputs. As inputs, Port 2 pins that are externally pulled low will source current (IIL, on the data sheet) because of the internal pull-ups.

Port 2 emits the high-order address byte during fetches from external Program memory and during accesses to external Data Memory that use 16-bit address (MOVX @DPTR). In this application it uses strong internal pull-ups when emitting 1's. During accesses to external Data Memory that use 8-bit addresses (MOVX @Ri), Port 2 emits the contents of the P2 Special Function Register.

Port 2 also receives some control signals and the high-order address bits during EPROM programming and program verification.

Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3 output buffers can drive LS TTL inputs. Port 3 pins that have 1's written to them are pulled high by the internal pull-ups, and in that state can be used as inputs. As inputs, Port 3 pins that are externally pulled low will source current (IIL, on the data sheet) because of the pull-ups.

Port 3 also serves the functions of various special features of the MCS-51 Family, as listed below:

Pin Name Alternate Function

P3.0 RXD Serial input line

P3.1 TXD Serial output line

P3.2 INT0 External Interrupt 0

P3.3 INT1 External Interrupt 1

P3.4 T0 Timer 0 external input

P3.5 T1 Timer 1 external input

P3.6 WR External Data Memory Write strobe

P3.7 RD External Data Memory Read strobe

Port 3 also receives some control signals for EPROM programming and program verification.

RST: Reset input. A high on this pin for two machine cycles while the oscillator is running resets the device. The port pins will be driven to their reset condition when a minimum VIH1 voltage is applied whether the oscillator is running or not. An internal pull down resistor permits a power-on reset with only a capacitor connected to VCC.

ALE/PROG: Address Latch Enable output signal for latching the low byte of the address during accesses to external memory. This pin is also the program pulse input (PROG) during EPROM programming for the 87C51. If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH. With this bit set, the pin is weakly pulled high. However, the ALE disable feature will be suspended during a MOVX or MOVC instruction, idle mode, power down mode and ICE mode. The ALE disable feature will be terminated by reset. When the ALE disable feature is suspended or terminated, the ALE pin will no longer be pulled up weakly. Setting the ALE-disable bit has no effect if the microcontroller is in external execution mode. In normal operation ALE is emitted at a constant rate of 1/6 the oscillator frequency, and may be used for external timing or clocking purposes. Note, however, that one ALE pulse is skipped during each access to external Data Memory.

PSEN: Program Store Enable is the Read strobe to External Program Memory. When the 87C51/BH is executing from Internal Program Memory, PSEN is inactive (high). When the device is executing code from External Program memory, PSEN is activated twice each machine cycle, except that two PSEN activations are skipped during each access to external Data Memory.

EA/V PP: External Access enable. EA must be strapped to VSS in order to enable the 87C51/BH to fetch code from External Program Memory locations starting at 0000H up to FFFFH. Note, however, that if either of the Lock Bits is programmed, the logic level at EA is internally latched during reset. EA must be strapped to VCC for internal program execution. This pin also receives the programming supply voltage (VPP) during EPROM programming.

XTAL1: Input to the inverting oscillator amplifier.

XTAL2: Output from the inverting oscillator amplifier.

INSTRUCTION SET:

The instruction set is divided in to 5 categories.  They are as follows:                     

    1.  Arithmetic instructions.
    2.  Logic instructions.
    3.  Data transfer instructions.
    4.  Boolean variable manipulation instruction.
    5.  Program and machine control instruction.

CIRCUIT DIAGRAMS

Circuit Diagram for signal conditioning circuit

 PROGRAM CODING

 

 

****** LISTING of (XYZ) ******

LINE LOC OBJECT SOURCE

   1 0000               ;******************************************************

   2 0000            B:            EQU       0F0H        ; B REGISTER

   3 0000            ACC:       EQU       0E0H       ; ACCUMULATOR

   4 0000            PSW:      EQU       0D0H       ; PROGRAM 

                                                                         STATUS WORD

   5 0000            IEC:         EQU       0A8H      ; INTERRUPT 

                                                                          ENABLE 

   6 0000              P1:        EQU       90H           ; PORT 1

   7 0000              P2:       EQU       0A0H        ; PORT 2

   8 0000              TH1:      EQU       8DH         ; TIMER 1 HIGH

   9 0000              TH0:      EQU       8CH         ; TIMER 0 HIGH

  10 0000             TL1:       EQU       8BH        ; TIMER 1 LOW

  11 0000             TL0:       EQU       8AH        ; TIMER 0 LOW

  12 0000             TMOD:   EQU       89H        ; TIMER MODE

  13 0000             TCON:   EQU       88H         ; TIMER 

                                                                           CONTROL

  14 0000              DPH:     EQU       83H         ; DATA POINTER 

                                                                            HIGH

  15 0000              DPL:     EQU       82H          ; DATA POINTER 

                                                                             LOW

  16 0000              SP:       EQU       81H           ; STACK 

                                                                             POINTER

  17 0000  ;---------MCS-51 INTERNAL BIT ADDRESSES

  18 0000              CY:       EQU       0D7H       ; CARRY FLAG

  19 0000              RS1:     EQU       0D4H        ; REGISTER   

                                                                             SELECT MSB

  20 0000              RS0:     EQU       0D3H        ; REGISTER 

                                                                             SELECT LSB

  21 0000              EA:       EQU       0AFH        ; ENABLE ALL  

                                                                              INTERUPPT

  22 0000              ET1:      EQU       0ABH       ; ENABLE TIMER 

                                                                             1 INTERUPPT

  23 0000              EX1:      EQU       0AAH      ; ENABLE 

                                                                             EXTERNAL 1 

                                                                             INTERR                                                       

  24 0000              ET0:      EQU       0A9H       ; ENABLE TIMER 

                                                                             0 INTERUPPT

  25 0000              EX0:      EQU       0A8H       ; ENABLE 

                                                                              EXTERNAL 0

                                                                              INTERR

  26 0000              TF1:      EQU       08FH         ; TIMER 1 

                                                                              OVERFLOW 

                                                                               FLAG

  27 0000              TR1:      EQU            08EH               ; TIMER 1 RUN 

                                                                                         CONTROL BIT

  28 0000              TF0:      EQU             08DH              ; TIMER 0 

                                                                                         OVERFLOW 

                                                                                           FLAG

                    

  29 0000              TR0:     EQU             08CH               ; TIMER 0 RUN          

                                                                                          CONTROL BIT

  30 0000              IE1:      EQU             08BH                ; EXT INTERR. 1 

                                                                                           EDGE FLAG

  31 0000              IT1:      EQU             08AH                ; EXT INTERR. 1 

                                                                                           TYPE FLAG

  32 0000              IE0:      EQU              089H                ; EXT INTERR. 0 

                                                                                           EDGE FLAG

  33 0000              IT0:      EQU              088H                ; EXT INTERR. 0 

                                                                                            TYPE FLAG

  34 0000              

  35 0000              ; ---------DEVICE ADDRESS TABLE HERE

  36 0000              

  37 0000              ; ---------RAM ADDRESS HERE

  38 0000              PINF:    EQU             030H               ; PARA 

                                                                                          ENTRY    

                                                                                          FLAG 1

  39 0000              NUM:    EQU            031H                ; NO. TO   

                                                                       &nbs