Click here to Skip to main content
16,004,564 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
A computer is connected to control the temperature of a room at 250 C using pin configuration of µp pin 0023H of register C. write an assembly segment to monitor this temperature in that < 250C, the fan is switched on. Note take H for heater and F for fan as instructions allowed by µp.

What I have tried:

I have tried but i have not been able to solve the problem.
Posted
Updated 13-Jun-24 9:13am
v2
Comments
Richard MacCutchan 13-Jun-24 15:14pm    
Tried what? We cannot help to fix your code if you do not let us see it. Please use the Improve question link above, and add complete details of what is not working.
0x01AA 13-Jun-24 15:51pm    
Quote: '... this temperature in that < 250C, the fan is switched on ...'
And in case temperatue is above 250C the heater should be on? ...
jeron1 13-Jun-24 16:16pm    
There is nothing here at this point that is assembly related.
Mike Hankey 13-Jun-24 17:15pm    
A room at 250C, you need to specify if the room is on Mercury or some other planet.

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 
Since the only clue is the address 0023H, should we first guess a processor where the address 0023H addresses a pin? It also seems to make more sense to switch on the fan when the temperature is above 25 degrees Celsius and not below. The value 250C is probably a typo and should actually mean 25°C.

A digital sensor, e.g. with I2C, would occupy several pins, which indicates that it is an analog sensor. So if we assume a common microcontroller to which an analog temperature sensor is connected, and the address 0023H represents an analog input, then the microcontroller could be an Atmel AVR or a Microchip PIC, for example, both of which have built-in A/D converters.

A typical procedure could be as follows:

1. configure the ADC
2. set the reference voltage and the analog channel to be used
3. read in the analog value and convert it into a temperature
4. check whether the temperature is above 25°C
5. switch the fan on or off
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900