You are on page 1of 13

Microprocessor and microcontroller: Aseembly language programs

Interfacing microprocessors, 8086, MASM 6.11, microcontroller 8085 and assembly language programming, projects, ebooks and tutorials on microprocessors and microcontrollers

Search Web jntuimplab.blogspot.com

Sign up to receive updates via email Enter your email address:

Subscribe After subscribing please check your inbox and click on the confirmation link to get updates

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

J A N 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, RTDs 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 1A/K above absolute zero temperature that is open in browser PRO version
Are you a developer? Try out the HTML to PDF API

Recent posts PWM with 89S52 How to access R0 to R7 registers


pdfcrowd.com

a current O/P of 1A/K above absolute zero temperature that is 2730C. Thus at 00C the current O/P will be 273A and 250 if will be 298A 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.

in Keil C? Program to initialise the LCD in 4 bit mode using PIC microcontroller Program for multiplexing of led displays for pic microcontrollers version control system for keil & MPLAB.

TAGS Assembly Language (50) Program (41) 8086 (24) microprocessor (15) Experiment (13) pic microcontroller (11) pic (10) 8051 (6) 8255 (6) c program (6) AVR (5) atmega (4) software (4)

MODEL SMALL

stepper motor (4)


Are you a developer? Try out the HTML to PDF API

open in browser PRO version

pdfcrowd.com

.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:

stepper motor (4) AVR Microprocessor (3) atmega32 (3) projects (3) robotics (3) 8085 (2) Traffic light control system (2) array (2) bcd to ascii (2) generate square waveform (2) interface stepper motor (2) largest number (2) linux (2) masm611 (2) microcontroller (2) real time clock (2) simulator 8085 (2) temperature control (2) video (2)

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

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

8255 ic (1) ATmega16L (1) Analog-to-Digital converter (1) DIY (1) Digital to Analog converter (1)

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

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

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

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

NMI (1) PIC16F877A (1) PIC1F4550 (1) Troubleshooting (1) a86 (1)

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

architeture (1) arithmetic mean (1) arm (1) celsius (1) centigrade (1) complier (1) ebook (1) emulator (1) factorial (1) fahrenheit (1) faqs (1) fibonacci series (1) floating point (1) freescale (1) ground pin (1) indirect addressing (1) initialization (1) interfacing (1)

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:

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

intreview questions (1)

pdfcrowd.com

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

intreview questions (1) keil (1) learn (1) masm (1) memory (1) moving block of data (1) packed bcd (1) pop (1) product of numbers (1) push (1) pwm (1) ramp (1) registers (1) reverse (1) simulator (1) sourceforge (1) square root (1) square wave (1) stack (1) statistics (1) string (1) subtraction (1) sum of cubes (1) sum of elements (1)
pdfcrowd.com

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

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

sum of elements (1) sum of squares (1) switch (1) tcp (1) temperature (1) triangular (1) waveform generation (1)

Blog Archive March (2) February (5) January (1) October (3) June (1) May (1) March (2) February (1) January (1) December (7) November (5) October (6) September (11) August (3) July (17)
Are you a developer? Try out the HTML to PDF API

open in browser PRO version

pdfcrowd.com

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

July (17) June (13) May (13) April (2) March (7) February (3) January (8) December (6)

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

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

Labels: 8086, Experiment, microprocessor, Program, temperature control


open in browser PRO version
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

9 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 July 4, 2008 2:12 PM AMIT said... hi.. can someone tell me something about temperature controller using 8085 ..? November 4, 2009 11:09 AM manju said... to
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

mr. Amit pls refer this site....... www.rbainnovations.com/abstracts/.../G%20temp%20controller .doc December 10, 2009 5:01 AM helloworld0707 said... hi can i please get the circuit diagram for the temperature control system or where i can find it? January 27, 2010 7:19 AM Anisha said... hello........... i want to know about temperature sensor using 8255 microprocessor March 13, 2010 8:48 AM san said... hi friends, need 8085programs for the following, 1)DAC 2)ADC 3)TEMPERATURE 4)traffic light controller 5)stepper motor March 17, 2010 10:41 PM yousuf said...
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

plz post a circuit diagram of temperature controlling......... or mail me at yousuf.gill@yahoo.com yousuf.gill@hotmail.com , yousufgill@gmail.com April 29, 2010 4:53 PM reddy royals said... can you please send the circuit diagram for the temperature control system using 8086 November 10, 2010 6:19 AM shraiya said... anyone got the circuit diagram??? April 20, 2011 10:11 PM Post a Comment

Newer Post

Home

Older Post

Subscribe to: Post Comments (Atom)

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

stat

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

You might also like