Google

Jan 28, 2008

Temperature Control system using 8086

AIM:-

To develop Temperature Control system using 8086

APPARATUS:-

Microprocessor trainer kit, Temperature controller kit, power supply, data cable etc

THEORY:-

Temperature control system involved interfacing successive approximation ADC and typical method of measuring and controlling the temperature using microprocessor. ADC is among the most widely used devices for data acquisition. A digital computer uses binary values, but in physical world everything is analog, temperature, pressure, humidity, and velocity are few examples of physical quantities that we seal with every day.

Temperature measurement is of great importance in industry as most of the processes are temperature dependent. A number of devices and schemes have been used over the years, for the measurement of temperature. Typical sensors include devices like thermocouples, thermostats, RTD’s and semiconductor sensor.

This system uses semiconductor sensor AD590 to monitor the temperature of water bath. The AD590 is basically a PTAT (proportional to absolute temperature) current regulator. It generates a current O/P of 1µA/K above absolute zero temperature that is -2730C. Thus at 00C the current O/P will be 273µA and 250 if will be 298µA and 373mV at 1000. This O/p is buffered through an OPAMP having a gain of 10. To enable easy equivalence between the transducers O/P in volts and the measured temperature a calibration procedure needs to be done.

WORKING:-

8255 is interfaced with 8086 in I/O mapped I/O. port A (PA0-PA7) as input port is connect to data lines of ADC, PB0, PB1, PB2 lines of port B for channel selection, PC2 connected to Start of conversion (SOC) and PC3 to O/P enable. Channel 1 of ADC is used to input analog signal, Channel 0 of ADC for temperature controller.

ADC will give binary equivalent of the I/P voltage. Input will vary from 0 to 5V (0 to 100 degree C) and the ADC O/P varies from 00-FFH. So 5V/100 i.e. 5000mvs/100 gives 50mvs/0C. And the counts for indication of temperature are taken as 2.5 (256/100) per degree C.

AC supply to the external heating element is controlled through the onboard Relay, based on the set value. When the temperature of the heating element (which is sensed by AD590, AD590 output is analog which is converted to digital by ADC) is less than the set value (reference value) heating element will be switched ON and when temperature crosses the set temperature AC supply is turned OFF.




MODEL SMALL
.STACK 100
.DATA
START:
PORTA EQU FFC0H ; PORTA address
PORTB EQU FFC2H ; PORTB address
PORTC EQU FFC4H ; PORTC address
CTL EQU FFC6H ; Control port address
CTL_BYTE EQU 98H ; 8255 control reg.
CLEAR_DISPLAY EQU F800:4BB1H
DWAD EQU F800:4BB1H
DBDTA EQU F800:4F1F
DEC_TEMP DB 0
SET_TEMP DB 0
ADC_VAL DB 0
COUNT DB 0
PRE_TEMP DB 0
.CODE
ADC TABLE:

DB 00H,03H,05H,08H,0aH,0dH,0fH,11H,14H,16H


DB 19H,1cH,1eH,21H,24H,27H,2aH,2cH,2eH,32H

DB 34H,36H,39H,3cH,3fH,42H,45H,48H,4aH,4cH

DB 4eH,50H,52H,54H,56H,58H,5bH,61H,64H,67H

DB 6aH,6dH,70H,72H,74H,77H,7aH,7dH,7fH,82H

DB a0H,a2H,a5H,a8H,aaH,aDH,afH,b0H,b3H,b6H

DB b9H,bcH,bfH,c1H,c4H,c6H,c9H,ccH,cfH,d0H

DB d2H,d5H,d7H,daH,dcH,dfH,e0H,e2H,e5H,e7H

DB e9H,ebH,eeH,f1H,f4H,f6H,f9H,fcH,ffH

START:
MOV AL,CTL_BYTE ; 8255
MOV DX,CTL ; PORTC (lower) as output
OUT DX,AL ; PORTA as input
MOV AL,DEC_TEMP
CALL DEC_HEX
MOV SET_TEMP,AL
MOV AL,DEC_TEMP
MOV AH,00
MOV SI,AX
CALL FAR DWAD
MOV DX,CTL
MOV AL,02
OUT DX,AL
MOV AL,00
OUT DX,AL
MOV CX,70
L0:
LOOP L0
BACK:
MOV COUNT,0
CALL ADC
CALL DISP_TEMP
CALL TEMP_CONTL
JMP BACK
DISP_TEMP:
MOV AL,ADC_VAL
MOV SI,OFFSET ADC_TABLE
AGAIN:
CMP AL,[SI]
JC FOUND
JE FOUND
INC SI
INC COUNT
JMP AGAIN
FOUND:
MOV AL,COUNT
CALL HEX_DEC
MOV AH,0
MOV SI,AX
CALL FAR DBDTA
RET
TEMP_CONTL:
MOV AL,COUNT
CMP AL,SET_TEMP
JC TURN_ON_RELAY
RELAY_OFF:
MOV DX,PORTB
MOV AL,0FFH
OUT DX,AL
MOV DL,20H
HERE1:
MOV CX,FFFFH
HERE:
LOOP HERE
DEC DL
JNZ HERE1
RET
TURN_ON_RELAY:
MOV DX,PORTB
MOV AL,00H
OUT DX,AL
CONTINUE:
MOV CX,FFFFH
L22:
LOOP L22
RET
ADC:
MOV DX,CTL
MOV AL,01
OUT DX,AL
MOV CX,70
L10:
LOOP L10
MOV AL,00
OUT DX,AL
L1:
MOV DX,PORTC
IN AL,DX
AND AL,80H
CMP AL,80H
JNZ L1
MOV DX,PORTA
IN AL,DX
MOV ADC_VAL,AL
RET
HEX_DEC:
MOV AH,00H
MOV CL,0AH
DIV CL
MOV CL,04H
ROL AL,CL
AND AL,F0H
OR AL,AH
RET
DEC_HEX:
MOV BL,AL
AND BL,0FH
AND AL,F0H
MOV CL,04
ROR AL,CL
MOV CL,0AH
MUL CL
ADD AL,BL
RET
END START

PROCEDURE:-

1. Connect power supply 5V & GND to both microprocessor trainer kit & temperature controller interfacing kit.

2. Connect data bus between microprocessor trainer kit & temperature controller interfacing kit.

3. Enter the program to read temperature of the water bath from ADC at 0000:4000.

4. Execute the program by typing GO 0000:4000 enter.

5. Enter the reference temperature value, when temperature of water bath exceeds reference value then power supply to water bath is switched OFF.


You might be also interested in:

:: Traffic light control system using 8086
:: Assembly Language Program to serve NMI
:: Interfacing Stepper Motor to 8086 using 8255

32 comments:

rishabh said...

hi
u have used a ad590 chip here..which has a temperature range limitation.(0 to 100)

i have to design a similar system, but for a higher range, like 450-600 degree Celsius.

ive read the data sheet...and there it says that by modifying the output range of opamps, the temp range limitation can be modified.

is that the only solution or should i go for another chip, if yes could you please suggest me which one.

awaiting your reply

Unknown said...

hi..
can someone tell me something about temperature controller using 8085 ..?

Unknown said...

to
mr. Amit
pls refer this site.......
www.rbainnovations.com/abstracts/.../G%20temp%20controller.doc

Unknown said...

hi can i please get the circuit diagram for the temperature control system or where i can find it?

Unknown said...

hello...........
i want to know about temperature sensor using 8255 microprocessor

san said...

hi friends,
need 8085programs for the following,
1)DAC
2)ADC
3)TEMPERATURE
4)traffic light controller
5)stepper motor

MUHAMMAD yousuf said...

plz post a circuit diagram of temperature controlling.........
or mail me at yousuf.gill@yahoo.com
yousuf.gill@hotmail.com ,
yousufgill@gmail.com

Sridhar Reddy said...

can you please send the circuit diagram for the temperature control system using 8086

shraiya said...

anyone got the circuit diagram???

nhmdp said...

In the program what does the following instruction mean?

DWAD EQU F800:4BB1H
DBDTA EQU F800:4F1F

I want to know what is DWAD and DBDTA.

Please reply soon.

Unknown said...

hi frnds..
please post the circuit diagram of temperature control system using 8086

Unknown said...

hi..

Unknown said...
This comment has been removed by the author.
Shivani said...

Thanks to post Govt Jobs 2016 Here.

technical malik said...

Eid Mubarak Images

Eid Mubarak Hd Images

Ramadan Mubarak Images

Eid Mubarak Shayari

Eid Mubarak Wishes

Advance Eid Mubarak Images

Riya Sharma said...

Riya Royal provides escorts services in Dubai. We provide full pleasure to our customer. We provide them all types of services through  Indian Escorts, Pakistani Escorts etc. 
Call Riya Royal to enjoy the best escort experience in Dubai.We serves top class erotic services in Dubai and always satisfy our customers with great service
website-http://www.riyaroyal.com/.
Pakistani Escorts in Dubai

Riya Sharma said...

HinaSharma Female Escorts Dubai are very trained in all aspect to make customers happy. Book elite and busty girls by contacting the Hina-Sharma for some of the most unforgettable moments of your life. We offer top class erotic escort services in Dubai and always satisfy our customers. For more information visit our Homepage.

Riya Sharma said...

Want some Cheap Call Girls in Dubai call us to get some fun. The UAESPICY Escorts are world renowned for thier beauty,charm,intelligence and charming company. You will need to recruit thier services as fast as possible. If you wish to find a good lady among the Dubai call girls call us. Check the Portofolio of the beauty online and book them at UAESPICY

Riya Sharma said...

We have a variety of girls who are totally devoted to thier works. There are fair skin tones acquiring hotties as well as dusky bombshells. They are naturally beautifull and we proud of that. We provide escorts in UAE. The men who are looking for friendship in life contact Naughty Princess . The Naughty Princess provide best escort service in UAE. Click here if you want some fun in your life.

Unknown said...

15 august images
15 august 2017 images
15 august status
Independence day 2017 Images
15 august images hd
independence day images hd

Ganesh Chaturthi images
Ganesh Chaturthi 2017 images
Ganesh Chaturthi wishes
Ganesh Chaturthi images hd

Krishna janmashtami 2017 images
Ganesh Chaturthi hd images

Unknown said...

Tere Bina lyrics

jimmy choo choo lyrics

gallan muk janiyan Lyrics

border lyrics

laddoo lyrics

lag ja gale lyrics

simran title song lyrics

meet lyrics simran lyrics

chalti hai kya 9 se 12 lyrics

border lyrics

laddoo lyrics

lag ja gale lyrics

Ekam Khurana said...

cinemabox hd apk

Riya Sharma said...

It is the momentary pleasure that makes life special, makes life very desirable to you. For a moment’s pleasure, you can forget weeks of worries. Their lies the specialty of life. When feels just tied up with the tensions of life you must get a respite from it with some interesting ways. An interesting dating with a loving woman can bring out of the tensions of life. There lies the specialty of Indian Escorts in Bur Dubai who are skilled enough to bring you out of sufferings of life and present you the joys of life. They are known for their amazing skills and thus have clients from all over the world. Not only the travelers but the locals are also absolutely fond of these amazing ladies.

Unknown said...

Great blog...
Thanks for Sharing..
Temperature Controller, Humidity Countroller, pH meter, Controller

Unknown said...

Nice Blog...
Thanks for Sharing...
Temperature Controller, Humidity Meter, Controller, Data Logger, Conductivity Meter,



haru said...

Nice article Check Diode Working condition

Unknown said...

Circuit diagram please

Unknown said...

Did get Circuit diagram if get please to me

Maria said...
This comment has been removed by the author.
Maria said...

Could i get the circuit diagram please???

idealistb@gmail.com

Ganesh said...

Nice blog...Temperature Controller
Indication Led Light Supplier in Chennai

MedPlusIndia said...

The article is really awesome. Thanks for sharing the most useful information with us. Order through forehead thermometer and get reduce your expenses through greatest discounts.