You are on page 1of 6

NATIONAL INSTITUTE OF TECHNOLOGY, PUDUCHERRY

(An Institute of National Importance Under MHRD, Govt. of India)

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


KARAIKAL-609609
CS208: Microprocessor and Microcontrollers
Course Project

Temperature controller using 8085


ALP

Submitted By:
AKASH SHUKLA
Dept. Of CSE,NITPY
Roll No:CS17B1006
Semester:IV
Temperature controller using 8085 ALP

Implementation
NOTE: This is a simple implementation of a temperature controller using 8085 ALP.
Here, the hardware and the circuit diagrams are not looked into very deeply and
accurately.

The implementation of this thermometer is done using the following hardware:

 8085 microprocessor
 An Analog to Digital Interface (ex. ADC0804)
 Temperature Sensor (ex. LM35)
 LCD Screen

This thermometer will be able to read temperatures in the Celsius Scale. For output of the
digital thermometer, a 16*2 LCD Display can be chosen. LM35 will be used to sense the
temperature. ADC will be used to convert the analogue current from the sensor to digital
format.

Chip select logic


Control word Format:

Data for channel selection:

=0BH (SOC= HIGH)

=03H (SOC= LOW)

Data for turning Heater ON/OFF:

=00H (Heater OFF)

=01H (Heater ON)


Interface Image
Program:
Label Opcode Operand Comment

LXI SP,2800H Initialize Stack Pointer


MVI A,98H Initialize 8255
OUT 83H(CWR)

START: MVI A,03H Selects Channel IN3 and


gets High to Low SOC and ALE signals

OUT 82H(PORT C)
MVI A,03H
OUT 82H(PORT C)
L1: IN 82H(PORT C) Checks EOC
RAL
JNC L1 Is EOC=’1’?If yes then read
temperature (t1)
MOV B,A Save reading of t1 into B
register
CPI A,DATA Is t1> T1? If no then send
signals to turn ON the heater
OUT 81H(PORT B)
JMP DISPLAY Jump to DISPLAY
OFF: MVI A,00H Sends control signal to turn
OFF heater
OUT 81H(PORT B)
DISPLAY: MOV A,B Display current Temperature
CALL DISPLAY
JMP START
Explanation
Temperature measurement is used in variety of applications like
furnace, water bath, oven, etc. with the help of transducers like
thermocouple.

The output of thermocouple is proportional to temperature which is


in milliVolts. Therefore to drive further stages of system, this
signal is amplified using instrumentation amplifier.

The amplified output is fed to channel 3 of ADC and 8085


provides High to Low SOC and ALE signal.

When ADC completes the conversion, 8085 reads the equivalent


digital data from Port A which is the current value of temperature
of object.

This value of measured temperature is then sent to display system.

For measuring temperature of furnace, water bath, etc. 8085 1st


measures current temperature (t1) and compares with the reference
temperature (T1) at which the temperature is to be kept constant.

If the measure temperature (t1) is greater than reference


temperature (T1) then 8085 sends control signal to the
transistorized relay circuit through Port B and turns OFF the
heating process to maintain temperature at desired level.

If the measure temperature (t1) is less than reference temperature


(T1) then 8085 sends control signal to the transistorized relay
circuit through Port B and turns ON the heating process to maintain
temperature at desired level, thus maintaining the temperature of
furnace, bath tub, etc.

You might also like