Practical #11.
Temperature Sensor
Objective:
Using Microprocessor Trainer and Assembly Language Instructions develop following sensors
- Temperature
- Smoke
How to Use:
- The heater and thermostat system is connected to Port 03. Send 00 to port 3 to turn the heater off.
- Send 80 to port 03 to turn the heater on. Input from port 03 to test the thermostat state. The code snippet below is an incomplete solution to control the heater to keep the temperature steady at about 21 C.
- You can click the thermometer to set the temperature. This can save time when you are testing the system.
; ===== Heater and Thermostst on Port 03 ==========================
; ===== Temperature sensor.asm ==============================================
; ===== Heater and Thermostst on Port 03 ==========================
MOV AL,0 ; Code to turn the heater off
OUT 03 ; Send code to the heater
IN 03 ; Input from Port 03
AND AL,1 ; Mask off left seven bits
JZ Cold ; If the result is zero, turn the heater on
HALT ; Quit
Cold:
MOV AL,80 ; Code to turn the heater on
OUT 03 ; Send code to the heater
END
By: Miss SABA WAHAB
Figure 1 Temperature monitoring
Figure 2:Temperature monitoring Exi file
Temperature Sensor Using Microprocessor
MICROPROCESSOR PRACTICAL NOTE BOOK WRITER: MISS SABA WAHAB
indianpharmacy com https://indiaph24.store/# online pharmacy india
india pharmacy