You are on page 1of 2

SOFTWARE DETAILS

3.1 INTRODUCTION

In the previous chapter we discussed the hardware details both module wise as
well as in full assembly.In this chapter,we move to the software design for the
project.Since,we are using microprocessor 8085 kit,so the assembly language
mnemonics and machine codes pertaining to microprocessor 8085 are used.But
since the logic design will be same so the same program can be written for 16-bit
processor also by making a few changes and using the appropriate machine
code.

As per the requirements of the project the machine language program has been
divided into three different parts which are,

1. ADC 0809 interfacing for measuring the temperature which is available at


the ADC in voltage form and storing the result in hexadecimal form.

2. Using look-up table to convert the hexadecimal value in user-readable


form.

3. Program to control the functioning of the relay circuits.

In the subsequent sections,we will present the software design flow for the
project followed by the machine code.

3.2SOFTWARE DESIGN FLOW

In this section we discuss the step by step procedure of software


programming used in the project.The steps are enumerated below-

1.Initialize 8255U (upper 8255 chip in the kit) and send control word to use
port A and port C upper in input mode and port B and port C lower in
output mode.
2. Select the channel of the ADC at which analog signal is to be fed.

3. Send the start of conversion signal.

4. Check for the End of Conversion signal.

5. Store the hexadecimal value at a particular memory location.

6. Use look up table to convert the hexadecimal value to user readable


form.

7. Compare the result with upper and lower limits of temperature.

8.If the temperature measured is less than or equal to the lower limit.port
B is used to switch on the relay connected to heater.

9. If the temperature measured is greater than or equal to the upper


limit,port B is used to switch on the relay connected to air conditioner.

Now below ,we present the flow chart depicting the software design
flow.This is shown in Fig.22

START

SEND CONTROL WORD AND SOC


PULSE

CHECK EOC

NO
IS CONV

OVER?

YES

READ OUTPUT FROM


ADC

COUNTER FOR LOOK-UP TABLE

COMPARE MEASURED VALUE


WITH LOOK UP TABLE VALUE
IS
TEMP>3
TEMP<2
GET TEMPERATURE FROM
STOP LOOK UP TABLE
YES AIR-CONDITIONER
HEATER ON
0 NNO YE

You might also like