<?xml version="1.0" encoding="utf-8" ?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
				<channel rdf:about="http://www.8051projects.net/">
				<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
				<link>http://www.8051projects.net/</link>
				<description>Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>
				<dc:language>en-gb</dc:language>
				<dc:date>2009-01-08T08:34:02-08:00</dc:date>
				<dc:creator>contact@nospam.com</dc:creator>
				<admin:generatorAgent rdf:resource="http://e107.org" />
				<admin:errorReportsTo rdf:resource="mailto:contact@nospam.com" />
				<sy:updatePeriod>hourly</sy:updatePeriod>
				<sy:updateFrequency>1</sy:updateFrequency>
				<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
				<items>
				<rdf:Seq>
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t1707.html" />
				</rdf:Seq>
				</items>
				</channel>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator></dc:creator>
						<dc:subject></dc:subject>
						<description>Can some1 teach me ho to do this hardware?what code should i write for this hardware?This assignment as mention in the title,we need have the function as below:-The system has 2 modes of operation: manual and automatic. -In manual mode, a user may control the speed of the fan (either off, low or high speed) via push buttons.-In automatic mode, the microcontroller controls the speed of the fan depending on the ambient temperature:Off Temperature &lt; 30ºCLow speed30ºC Temperature &lt; 40ºCHigh speedTemperature 40ºC-Regardless of the mode of operation, the ambient temperature is always shown on a dual-digit seven-segment display modules.ion and what additional function can i add for this fan?I am very weak in doing this type of project...Hope some1 can help me and thanks for helping</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>hi cenadius,welcome to rickey's world   talking about your assignment.. first of all.. decide which hardware to use.. i mean.. the temperature sensor, fan interfacing technique..only after that.. writing a program for that hardware can be done. Also which language you want to use? C or Assembly?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi Ajay,thanks you first for trying to help me.i only allowed to use  assembly language to do this project and i will attach the part list to be use for you.Hope u can teach me how to do  after see the electronic part that i will use in doing this project.Can i know what is fan interfacing tehniques means?sorry, i really very weak in this subject,so many term that i not understand. 1187571252_3470_FT1707_part_list__mlk_.pdf</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>hey cenadius since u r using dc fan... so its a very easy task.what u have to do is analog to digital conversion and then pwm according to temperature from lm35.in c language its very simple task</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>As said by abbas, the controlling DC fan can be done through a PWM on a pin. and reading LM35 is easy with the help of ADC. All you need to do is the calibration of temperature with the ADC o/p.you can start building your schematic. Just try it once</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>PWM is Pulse width modulation.. it helps you to control the output voltage by varying the width of a square wave pulse..A Brief Description:CODE:|¯¯|__|¯¯|__|¯¯|__ ---> A square wave<br /><br />|¯¯¯¯¯¯|______<br />&lt;-Ton->&lt;-Tof->.<br />&lt;---Ttotal--->Ttotal = ton+toffDuty cycle d = Ton/Ttotalif Vin is the input voltage and Vo is the o/p voltage.. thenVo = d x Vinwhere d is the duty cycle..now if we vary the duty cycle we can control the o/p voltagee.g. d = 0, then Vo = 0 -- o/p is zeroand if d = 1, then Vo = Vin -- o/p equals inputNow the value of d can never be greater than 1.To control d, we need to control the Ton, if we reduce the value of Ton, then d decreases and hence Vo. similarly if Ton increases, d increases and hence Vo increases.So d is directly proportional to Ton.Vo is directly proportional to dhence Vo is directly proportional to TonI hope you understood the concept of PWM.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>Can i know what is PWM mean?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>Thanks for ur explanation.This  is the schematic that we need to use.Pls help me see got any problem?if i wan add other thing such as buzzer,how to add?Can u teach me how to write the code by using asembly langugae for this assignment?thx</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>as the schematic is ready.. so you can start programming one by one.. which one you want to go first? write programs in small modules... and then combine them later on.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>-The system has 2 modes of operation: manual and automatic.How to write the code for this function?teach me pls</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well this function can be implemented later on.. because this is the final interface. First you need to write drivers for your peripherals like ADC, keys, Fan and its speed control and 7-segment LED. After you finish the basic building blocks of your project.. you can easily make the final interface.. I hope you got my point. So you can first start with the simplest.. "Fan switching and speed control".where is your schematic?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>i maybe want add something to my circuit so i remove it first.So can u teach me how to write the code for control the fan speed in manual mode?i need write the code to control fan speed for manual and auto separately or just write 1 can d?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>ok.. i tell you something.. controlling via manual or auto is the later part of your project it will be according to the keys user press.. that is the interface part. But basically you need to write for controlling and switching of FAN first.And yes i will help you writing it..So as i told you about PWM, you need a timer (either Timer 0 or Timer 1). and we need to load the timer for 2 different values, One for ON timer and one for OFF time (as explained for PWM square wave).The value of ON, OFF depends on the mode selected by the user. i.e. If manual then you can have 5 preset values for user to select from and load them according to the selected value.In automatic mode, i don't know how it suppose to work in auto mode..So I hope you understood the basic idea.. can you make a simple code to generate a square wave? I will help you to modify it, according to your project   waiting for your INPUT</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>sorry for taking so long time to reply u.Do u know what software that can use to draw the circuit schematic?This is the simple code u ask me to do which can get square wave,this program is use to generate 1hz square wave by using timer 1 with duty circle 50%,deration for high low portion of square wave are 0.5 s,T=1s.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>I think there is some problem with the attachment of file.. i need to check that..By the time.. please try to paste the code..here is a sample PWM code.. check it..CODE:org 0H<br />sjmp start<br />org 0BH<br />TIMER_0_INTERRUPT:<br />&nbsp; &nbsp;JB F0, HIGH_DONE &nbsp; &nbsp;; If F0 is set then we just finished the high section of the<br />LOW_DONE: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; &nbsp; cycle so Jump to HIGH_DONE<br />&nbsp; &nbsp;SETB F0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Make F0=1 to indicate start of high section<br />&nbsp; &nbsp;SETB P1.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Turn off LED<br />&nbsp; &nbsp;MOV TH0, R7 &nbsp; &nbsp; &nbsp; &nbsp; ; Load high byte of timer with R7 (pulse width control value)<br />&nbsp; &nbsp;CLR TF0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Clear the Timer 0 interrupt flag<br />&nbsp; &nbsp;RETI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Return from Interrupt to where the program came from<br />HIGH_DONE:<br />&nbsp; &nbsp;CLR F0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Make F0=0 to indicate start of low section<br />&nbsp; &nbsp;CLR P1.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Turn on LED<br />&nbsp; &nbsp;MOV A, #0FFH &nbsp; &nbsp; &nbsp; &nbsp; ; Move FFH (255) to A<br />&nbsp; &nbsp;CLR C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Clear C (the carry bit) so it does not affect the subtraction<br />&nbsp; &nbsp;SUBB A, R7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Subtract R7 from A. A = 255 - R7.<br />&nbsp; &nbsp;MOV TH0, A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; so the value loaded into TH0 + R7 = 255<br />&nbsp; &nbsp;CLR TF0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Clear the Timer 0 interrupt flag<br />&nbsp; &nbsp;RETI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Return from Interrupt to where the program came from <br />start:<br />&nbsp; &nbsp; &nbsp; &nbsp; MOV TMOD,#00H<br />&nbsp; &nbsp; &nbsp; &nbsp; SETB TR0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; turn on timer 0<br />&nbsp; &nbsp; &nbsp; &nbsp; SETB EA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Enable Interrupts<br />&nbsp; &nbsp; &nbsp; &nbsp; SETB ET0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Enable Timer 0 Interrupt<br />&nbsp; &nbsp; &nbsp; &nbsp; MOV R7, #160 &nbsp; &nbsp; &nbsp;; set pulse width control to dim<br />LOOP:<br />&nbsp; &nbsp;SJMP LOOP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;go to LOOP<br />&nbsp; &nbsp;END</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>this is my code,why i cannot attch file?i wan attach the file that contain my code but cannot so i have to type it here		 ORG  0000		 MOV  TMOD,#10H	;TIMER 1 IN MODE 1MAIN:		 MOV  R0,#10                     ;COUNTER FOR 10 LOOPINGREPEAT:	                      MOV  TH1,#3CH	;MOVE 3CH INTO TH0		 MOV  TL1,#0B0H	;MOVE B0H INTO TL0		 SETB TR1		;START THE TIMER 1LOOP:		 JNB   TF1,LOOP	;WAIT FOR TIMER1 OVERFLOW		 CLR   TR1		;STOP TIMER 1		 CLR   TF1		;CLEAR TIMER 1 OVERFLOW FLAG		 DJNZ R0,REPEAT	;IF R0 NOT ZERO GO TO REPEAT		 CPL   P1.0		;COMPLEMENT P1.0 TO GET HIGH OR LOW			 SJMP MAIN		;RELOAD TH1&amp;TL1		 END</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>ok.. but.. i wanted you to make it with timer.. for PWM, the delay should be less otherwise your motor will not run smooth.. you can try connecting an LED to the port to see that.. it will flicker a lot..where as if you use keep delay smaller like timer in a 13-bit mode.. then you will see a variation in voltage instead of flickering..I am attaching a sample PWM code for you.. take a look.CODE:MOV R7, #160 &nbsp; ; set pulse width control to dimThe above part of the code will determine the output voltage level. you can test this code.. by changing the value of R7.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>you can use orcad for making schematic.. but is not a free software... the schematic u showed me is made in protel. you can use the same software. or try some free software on internet like eagle.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>ok,thanks,but how u see the delay in my code?actually i found this code from book and modify it so i no very understand,and do u know what software that can use to draw the circuit schematic?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>Can u explain the function of this PWM code?why we need control output voltage level?The output voltage will affect which part of function of hardware?i not very understand,i am sorry that i only know ask question but i try to learn all this thing through doing this assignment,so i do it all by my own.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>PWM is to control o/p voltage.. to increase or decrease the speed of motor. as you said.. there is requirement of manual select for speed of fan.. so this code will be useful.you can have preset 5 values, that you will load when user press a key  Please check your PM</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>ooo,i see,but we just need 3 value which for fan run fast ,medium and slow and we only have 4 switch which use to set 3 value and change the fan between auto and manual mode.On the other hand,can u give me the link to download protel?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>i  want add other electronic part to create extra feature for this program,cos this extra feature also cost us some mark,now  i think i donw an add extra part d cos i donno how to connect iinto this circuit,and can u pls told me what should i do next after complete the pwm code?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>mmm... protel is also not free..But the schematic you gave me is already a finished one.. so why you want to make another schematic?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>thanks,how to  try on hardware?we need complete all the code only can insert into the 8051 microcontroller,right?then only can test,right?And how should i set all those value into the pwm code?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>Don't forget to test the code on the hardware.. and for three levels.. i think appropriate values can be..Low: 30Medium: 150Fast: Switch ON the fan.. and stop the timer..The next thing you can do is.. writing a code for 7-segment Display..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>i mean just try fan part.. check if PWM is working or not..i mean to say... check if by putting the value.. are you getting a varying voltage or not.. that is what i meant with checking.program once with first value and note the voltage o/p with a multimeterthen again program with second value and note the voltage.then third.. and note the voltage..In all three cases you should have a varying voltages. if that is coming then one module is ready.. then go to second part of your board.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>hariz</dc:creator>
						<dc:subject></dc:subject>
						<description>1)the code just now to set the ADC rite???what is the effect to 8051 and how that code function??2)...i need to set 8051 to set for my fan to work rite?.what is the code that i need to make my 8051 get data from ADC??</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>Hariz.. please create your own topic.. or i get confuse answering you both.. this topic is for cenadius.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>AS shown in the schematic,if i wan set when i press sw2,the fan will run at low speed;when i press sw3,the fan will run at medium speed;when i press sw4 the fan will run on fas speed,so how i need to modified the sample code u give to to get the output like this?And can i do such that after i press sw2 then press sw3,it will automatic reset sw2? 1188580283_3470_FT1707_schematics_rev2.pdf</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well.. everything is possible   and is not at all hard to do that   i will explain how to do that ok!  all you have to do is.. wait for the key press.. and when a key is pressed.. execute some part of code related to that key.So when sw2 is pressed it will execute the code for sw2, and set the fan speed, and if you pressed sw3 then it will execute the sw3 code and will set the new fan speed... overriding the old speed set by sw2.Try to write a code.. to read which key is pressed.. and execute code for that key... PM me the code</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>I saw your code...there are many mistakes..   i think you have no idea about what interrupts are.. anyways.. i explain you..its like this..whenever an interrupt occur, as clear from the name.. it interrupt the current processing of the CPU, and start executing the code which deal with that interrupt, that special part of code is called interrupt routine.In AT89C51 there are 5 interrupts (2 external, 2 timer and one serial). and specific addresses are assigned to these interrupts in the ROM, which is called Interrupt vector location.There is one more interrupt which is usually there in all the MCUs, called Reset interrupt and vector location is 00Hso whenever you press a reset button your CPU jumps and start executing from 00H.This way for.. INT0 - location is 0003HTimer 0 - 000BHINT1 - 00013HTimer 1 - 0001BHSerial - 00023Hso whenever an interrupt occur it jumps to these location to execute the code.. and the code written in these location is called interrupt service routine. When you return from these routines you cannot use simple RET instruction. you need RETI (return from Interrupt).In your code.. you are overwriting on location where timer interrupt has to jump. so you need to rearrange your code something like this..CODE:org 0H<br />sjmp reset<br /><br />org 0BH<br />sjmp timer0int<br /><br />reset:<br />--- your starting of program---<br /><br />timer0int:<br />---the PWM code---I hope you got my idea..   please try rearranging the code.. so i understand a better way what you did. if i feel anything wrong in the code i will correct it and send you back</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>what is the meaning of pullups?i compile  the program,still got error,which is the reset there,from error columm it show say that symbol already defined,what is that mean?symbol defined also an error?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>its working properly no error!CODE:Build target 'Target 1'<br />assembling test.asm...<br />linking...<br />Program Size: data=8.0 xdata=0 code=85<br />creating hex file from "test"...<br />"test" - 0 Error&#40;s&#41;, 0 Warning&#40;s&#41;.which compiler you using?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>mm.. i think lable is written twice..i did not compile the program. and your program was having lot of errors..Pullup means.. connect the pin to VCC via 10K resistor...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well i don't know why it is giving you error.. can you please post the error? in detail?or if possible download the demo version of Keil.. www.keil.combecause your code will be lesser than 2K limit of demo.. so you can use it...if you don't want to do that.. then you need to give complete error details.try to take a screenshot and upload it to www.imageshack.us and post the link here.. i will take a look at the error.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>i using Fet89c5x compiler</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>Can u give the hint on how to start the 7segment program?The 7segment is needed to show the temperature value sense by sensor in the auto mode in celsius unit.The error link as shown below:http://img505.imageshack.us/my.php?image=erorkn2.jpg</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>hmm.. ok.. i think i first need to download your assembler and then check what is wrong..  regarding.. 7-segment.. search in the site..   you will get it in the forum..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>just rename the label RESET with something else.. like mainand it will work.. test it. and tell me the results..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>thanks,i test d,no problem</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>so the fan working fine now? if yes then you can now start with 7-segment display</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>joshua</dc:creator>
						<dc:subject></dc:subject>
						<description>i hav read thru tis thread but i still got some problem to do with tis project. i hope to get some assist from u guys. thx</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>thanks for ur guideline,ajay,but 1 of my senior told me that we don need delay for 7segment code,cos it will alway display the temperature after get the data from adc</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>AJAY,I NEED MODIFIED MY PWM CODE WHICH WILL GIVE MY FAN 3 CONDITION  FAN WILL OFF,SLOW AND FAST,CAN I CHANGE 1 OF THE VALUE INTO 0 IN ORFER MAKE IT OFF?SUCH AS SET MOV R7, #30  TO MOV R7, #0?ON THE OTHER HAND,THE SCHEMATIC CONNECTION HAD CHANGED,WILL IT AFFECT THE CODE SETTING? 1188913836_3470_FT1707_schematics_rev3_mlk.pdf</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well its really simple.. where you set the value 30.. instead of that switch off the timer.. clear the TF0 and stop the fan.. clear the FAN bit. just like we did in fast mode.. do the opposite for stop  also i saw the changes in the circuit.. i also told you to connect pullups on switches like you did on transistors.and for 7 segment.. you need not to write such a big code..also there are lot of modifications that are to be done in 7-seg display..i am going to explain you with example..say... you want to display a number like 39 (in hex) on display..so.. as you already got the decoded value for displaying numbers on 7-seg.. you just need to separate the number to display and send it to the port where they are connectedCODE:mov dptr,#decodedtable ;load the decoded values<br />mov temp,a &nbsp; &nbsp;;where temp is a temp variable<br />anl a,#0F0H &nbsp; ;we just need the higher nibble<br />swap a<br />movc a,@a+dptr ; load the decoded value for<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; the number to display<br /><br />mov 7segport,a &nbsp;;7segport is the port where 7segments<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;are connected<br />acall delay &nbsp; &nbsp; &nbsp; ;you need some delay here.. about 10ms<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;or more.. you can adjust it when u run<br />;then enable the common pin here<br />setb common1 &nbsp; &nbsp; ;for first 7-seg<br /><br />;now we send the lower nibble<br />mov a,temp &nbsp; &nbsp; ;restore the number form temp<br />anl a,#0FH &nbsp; &nbsp; &nbsp;;mask the higher nibble to extract<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;lower nibble only<br />movc a,@a+dptr &nbsp; ;load the decoded value for<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;lower nibble<br />mov 7segport,a &nbsp; ;send the decoded value<br />setb common2 &nbsp; &nbsp;;enable the common pin for<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;second 7-seg display<br />decodedtable:<br />db &#40;decoded values here&#41;....The decode table will be the values you used in your program to send individual digits..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>natasha</dc:creator>
						<dc:subject></dc:subject>
						<description>hye ajay..i got some problem with my assignment which is about 8051 based temperature controlled fan.i having some difficulty about the source code.so,can u help me ??</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well cenadius.. we do need delay.. the reason is..the 7-segs are connected to the same port.. and.. before the first 7-seg show the value you are deactivating it and displaying the second value... just test the code.. you will see nothing on 7-seg and you will see 88 on display.the sequence is this way...get the higher nibble..move it to the seven segment portactivate the seven segmentput some delaydeactivate the seven segmentget the lower nibblesend to the seven segment portactivate the second seven segmentdelaydeactivate itThis way you will see the proper value.microcontroller execute instructions in microseconds.. so delay is must   you can check with and without delay  @Natasha:Please create a new thread.. and explain me your problem. I will surely help you out.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>what is nibble mean?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>1 byte got 8 bits..Bit 7 to Bit 4  - upper nibbleBit 3 to Bit 0 - lower nibble..combination of 4 bits is called a nibble</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>sadsack</dc:creator>
						<dc:subject></dc:subject>
						<description>can i ask u something here?for the DPTR, it is 16-bit right?then when we do this--> MOV DPTR,#decodetableis it mean all decodetabe value also 16-bit?or we jsut use the lower 8bits of DPTR?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>ok.. here is your answer..when we do mov dptr,#decodedtableit actually load the address of the label...lets say if your values are stored somewhere at 2000H then executing the above instruction will load the DPTR with 2000H. to fetch the values from that location we use instructions like..movx - from external rammovc - from code memoryas our decoded table resides in ROM/Code memory so we usemovc a,@a+dtpr --- a is loaded from the memory location pointed by (dtpr + a). and the loaded value will be 8-bit</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>sadsack</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay, can i write the code of this project without using interrupt?but it will make the MCU busy as keep on checking the current state n do...i have roughly write the flow of the whole program n realize that it maybe work, but not sure.is it possible?p/s: coz im really stuck at interrupt n dont know how to combine all parts...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well.. for PWM interrupt is must.. coz by the time u are checking and displaying the ADC value.. at the background your PWM will be running that is going to control the fan speed.for ADC no need of interrupt!!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>sadsack</dc:creator>
						<dc:subject></dc:subject>
						<description>how is the intterupt working when we still running other thing in the main function?from the example in the book, when we waiting for the intterupt, we just write a simple code like: SJMP $n it is simply waiting for intterupt occur, so how can i change it to keep on doing other in main? is it simply continue n cancel the code " SJMP $ "?p/s:the example in the book only teach waiting for the interrupt, n when that intterupt occur, the MCU will do the intterupt part n the main function doing nothing, so....confuse me...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>lol! you are funny.. i mean yes confusion can be there  ok.. is like this way...sjmp $ means jump on the same location.. it is done this way.. when you do not have anything else to do in your program.. but in your program.. you have many thing.. which you need to do in a sequence and continuously.CODE:loop:<br />&nbsp; &nbsp; check for key press<br />&nbsp; &nbsp; read adc<br />&nbsp; &nbsp; display adc<br />&nbsp; &nbsp; sjmp loopso doing the above work in loop will keep your controller busy.. and if in between the timer interrupt for PWM occurs, then CPU will save the data.. and jumps to Interrupt service routine execute that code.. and come back to the main program and do the work as usual in loop.I think your problem is.. if CPU execute the ISR then what about the main code.. it get stuck or something.. so the answer is.. ISR will finish fast.. i mean.. wont take time for ISR to finish as only few instructions will be there in ISR and CPU execute them fast without wasting any time.. you will come to know when you do them in the program.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>lampard8</dc:creator>
						<dc:subject></dc:subject>
						<description>can pm me the source code that had done ? i wan to try it ... thanks .... appreciate it very much .....</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>No Sorry! its his work.. i cannot send you</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay,how to write the delay code for 10ms?i write like this is it correct?DELAY:MOV R0,#10?what is subroutine code?is the subroutine code same as delay?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>here is the code for delayCODE:delay:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov r5,#50H<br />wait:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov R4,#255<br />&nbsp; &nbsp; &nbsp; &nbsp; djnz r4,$<br />&nbsp; &nbsp; &nbsp; &nbsp; djnz r5,wait<br />&nbsp; &nbsp; &nbsp; &nbsp; retRoutine is a part of code just like functions.. they are called routines or sub routines in Assembly. search in google for more information.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Shabiul Islam</dc:creator>
						<dc:subject></dc:subject>
						<description>how do i start the assembly code? which part to start? im noob here.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>please read all the previous discussions.. it will help you.. take help from your seniors too.. wherever needed..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>thanks,what is the diferent between R0,R4 and R5,how to knwo when i need use r0,r4 or r5,or other rvalue such as r2,r3?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>those are registers... it depends on you.. how you want to use.. according to your requirement and ease of programming.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>thanks .ajay,after 7segment code,what should i do next?write the code for adc?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>ok,thanks,ajay can u help me check 7segment code on the other hand,can u explain to me the finction of the switch in the circuit?especially switch name sw-spdt,that switch 1 pin connect to ground and 1 pin no connected,it still an function?and is sw1 on off switch ?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>ofcourse.. check the forum.. you will find the code...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well.. i think it would be better to ask Y.S Yong who actually designed the circuit   because.. when you make a circuit you keep the functional working in mind.and regarding 7-segment.. you need to check it on the circuit.. and please take help from your teachers...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>compile it and then program the controller to see the results.. and check the output and compare the working as per your expected program.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>sadsack</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay, i finish writing program but not sure correct flow o not...can u help me to check the program?n how can i send the file to u?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>tsubasa</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay,May I know how we can have preset values in PWM? How we can make PWM accept values from ADC after ADC have finished translating the analogue signal?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>after finishing the ADC conversion you will get some value from the ADC, as you want the fan to be at three speeds (OFF, Slow, Fast)The values you used in case of manual can be used in auto mode too.. all you need to do is check the temperature.e.g if temp is between less than 20° - Fan off (stop timer and clear the fan bit)if temp is between 20° to 30° - Fan slow (run the PWM with the same value as decided in manual mode)if temp is between 30° and above - Fan Fast (stop timer and set the fan bit)This how the auto mode works.. and for PWM values you can use any value i suggest you using 100. Value can be between 0 to 255. as only slow mode is there so 100 is ok.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>tsubasa</dc:creator>
						<dc:subject></dc:subject>
						<description>So that's mean code for PWM that you've posted before is complete? We only need to write the code for checking condition, is it? What is the code to stop the timer?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>yes the code is complete..tsubasa wrote ...What is the code to stop the timer?         clr TR0 or whatever timer you are using.. the clear the timer run bit.. i cannot believe you people are really studying or what...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>sadsack</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay, today i just try my program but.....so...  :....7segment cant display properly...:mad:</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>tsubasa</dc:creator>
						<dc:subject></dc:subject>
						<description>Hehe. Relax Ajay. Cool.....down..... Actually the time I wrote that question was when I had been pressured by my group leader to finish the coding. I also don't know why I asked you that stupid question. Sorry for that.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>make a simple counter program to check..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>tsubasa</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay,for cenadius code he used 4 seven segment disp. What about if we only use 2 seven segment? The code is still the same, is it?  The different only at the lookup table, right?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>As per you said in PM...you are doing wrong.. he said.. V is the ADC value.. from 0 to 255. LM35 gives voltage o/p in mV for every 1° rise there is increase in 10mV.So if the temp is 20°C then the voltage o/p will be 20*10 = 200mV Now when you work with ADC, the total voltage range is divided in 256 steps. so... each step is equal to 5/256 Vor 19mV approximately. So you might be having little error in reading the temperature but it will be very close to the actual one.So.. all you have to do is.. convert the ADC value directly to the temperature value.. and make a lookup table for that.. as i said you can have V from 0 to 255 so, you will have 256 different values as answer, that will be your temperature</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>speeder13</dc:creator>
						<dc:subject></dc:subject>
						<description>i m really weak in assembly  programming..May i ask some question which might sound silly to u all..?when i wan to use a pin from my uC, i shud "SETB PX.X" right?lets take a  switch to pin P1.0as an example,when the switch is on(do not grounded) den my P1.0 will detected as 1? when the the switch is grounded it will giv reading of 0. m i right?e.ga switch connect to P1.0to control which mode to b used(auto or manual):wat i wan is when the switch is open den it will go to manual when it is grounded(pressed) it goes to autocheck out my code..          ORG 0000HLOOP:SETB P1.0          JNB P1.0, AUTO          JMP MANUALAUTO:...................         ..............          JMP LOOPMANUAL:..............          .............          JMP LOOPENDcan tis stupid thing work? sry i m nt gd in programming. alwez ask stupid question..:P</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>as per your program.. it will surely work, only if the switch is a latched one.. i mean like the one you have in your circuit SPDT switch. the above code will work with that..rest all parts depends on your code  and you wrote a good and correct code. so don't worry</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>speeder13</dc:creator>
						<dc:subject></dc:subject>
						<description>Thx for the reply. wat about the micro-tact switch? the switch which will nt remain in the"pressed" position how shud i write the code? I mean how shud i detect it after it has been pressed.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>speeder13</dc:creator>
						<dc:subject></dc:subject>
						<description>oic...actually i m using the same circuit as the rest of them... the micro-tact switches are used to control fan speed during the manual code...i was using code as below:MANUAL:	SETB P1.2                     SETB P1.3                      JNB P1.2,FAST	JNB P1.3,SLOW	CALL OFFwher P1.2 &amp; P1.3 are connected to the switches.Then i realized it cant work. FAST,SLOW, OFF are subroutines to control fan speedthx for telling me it actually wont work..haiz.. i will try another code to detect the input from tis two switches.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>they are to be detected in the same way... but the thing is they wont be latched..as per your program, you are reading a switch and then doing the work auto or manual according to the position of switch.. and after doing the work, you are again jumping back to read the switch again.. for micro-tact switches, the code wont work..So all you can do is.. when you press the switch, clear or set a bit as per you want.. that bit can be as mode bit for your application..So all you will do is.. read the mode bit, and see if its set then do auto if clear do manual..and when the mode switch is pressed for changing the mode, just toggle the bit.. and mode will be changed automatically</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>speeder13</dc:creator>
						<dc:subject></dc:subject>
						<description>If i use tis code, den i hav to add another switch? i m wondering that must i "SETB Px.x" to use the particular pin? i do nt hav a correct idea wat must i write for the code to use hardware(the switch) to control the flow.i juz learn it from some example codes,which they will use SETB Px.x before they start detecting the input from the pin.Anyway thx alot for ur reply.. i hav asked lots of ppl (seniors, lecturers) they dun seem like wan to help ..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well..try the other way i tell you..Manul:JNB key1,offJNB key2,slowJNB key3,fastsjmp manualoff:;your code for fan offJNB key1,$sjmp manualslow:;your code for slow speedJNB key2,$sjmp manualfast:;your code for fast speedJNB key3,$sjmp manualtry this one.. is better.. it waits for user to release key and then go back for scanning agian..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>speeder13</dc:creator>
						<dc:subject></dc:subject>
						<description>oo..so i need 3 pins/switches(key1,key2 and key3) to control the fan speed, m i right? coz i plan to use only 2 pins in the beginning , but since u tell me tis code is easier to b used den i will change it to 3 pins. thx again...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>Yes you have to use 3 keys...  and fourth for Auto/Manual.. it depends on you if you want it as the SPDT switch or micro-tact switch.. accordingly program will change..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>there is no need to do setb Px.x as by default on startup all the pins are i/p pins so no need to make then i/p again.In the code i wrote above..its goes this way..in first three lines of code.. it wait for any key to press.. and waiting in the loop until a key is pressed. as soon as a key is pressed.. it jumps to the label specified..after jump it execute that part of code.. and the statementJNB keyx,$ will wait for user to release the key.and as soon as user release the key.. it again wait for key press from the user...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>what help you need? can you please create a new topic? this discussion is different from your requirement...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>bennu</dc:creator>
						<dc:subject></dc:subject>
						<description>I need help regarding the report.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>here is the complete code.. just read it.. see the instruction set carefully and try to imaging what is going on...Test it on board directly.. and i cannot guarantee 100% working..all you need to do is test it..CODE:;-------------------------------------------<br />;<br />; &nbsp; Function of switches used in my program<br />;<br />; &nbsp; &nbsp; &nbsp;SPDT = Auto/Manual<br />; &nbsp; &nbsp; &nbsp;SW2 = Off<br />; &nbsp; &nbsp; &nbsp;SW3 = Low<br />; &nbsp; &nbsp; &nbsp;SW4 = Fast<br />;<br />;-------------------------------------------<br /><br />automan equ P3.4<br />off &nbsp; &nbsp; equ P1.4<br />flow &nbsp; &nbsp;equ P1.5<br />ffast &nbsp; equ P1.6<br />soc &nbsp; &nbsp; equ P3.1<br />read &nbsp; &nbsp;equ P3.0<br />fan &nbsp; &nbsp; equ P3.3<br />mode &nbsp; &nbsp;equ 20H<br />done &nbsp; &nbsp;equ 21H<br />adc &nbsp; &nbsp; equ 30H<br />adcport equ P2<br />MSB &nbsp; &nbsp; equ P1.0<br />LSB &nbsp; &nbsp; equ P1.1<br />seg7 &nbsp; &nbsp;equ P0<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; org 0H<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp start<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; org 03H<br />&nbsp; &nbsp; &nbsp; &nbsp; setb done<br />&nbsp; &nbsp; &nbsp; &nbsp; reti<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; org 0BH<br />&nbsp; &nbsp; &nbsp; &nbsp; ljmp timer0_int<br /><br />start:<br />&nbsp; &nbsp; &nbsp; &nbsp; clr fan<br />&nbsp; &nbsp; &nbsp; &nbsp; clr done<br />&nbsp; &nbsp; &nbsp; &nbsp; clr mode<br />&nbsp; &nbsp; &nbsp; &nbsp; clr MSB<br />&nbsp; &nbsp; &nbsp; &nbsp; clr LSB<br />&nbsp; &nbsp; &nbsp; &nbsp; mov IE,#10000011B<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />scan:<br />&nbsp; &nbsp; &nbsp; &nbsp; acall read_adc<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB automan,auto<br />&nbsp; &nbsp; &nbsp; &nbsp; clr mode<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp manual<br />auto:<br />&nbsp; &nbsp; &nbsp; &nbsp; setb mode<br />manual:<br />&nbsp; &nbsp; &nbsp; &nbsp; JB mode,inauto<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB off,fanoff<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB flow,fanlow<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB ffast,fanfast<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp scan<br /><br />fanoff:<br />&nbsp; &nbsp; &nbsp; &nbsp; clr TR0<br />&nbsp; &nbsp; &nbsp; &nbsp; clr TF0<br />&nbsp; &nbsp; &nbsp; &nbsp; clr fan<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB off,$<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp scan<br /><br />fanlow:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov r7,#50H<br />&nbsp; &nbsp; &nbsp; &nbsp; setb TR0<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB flow,$<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp scan<br /><br />fanfast:<br />&nbsp; &nbsp; &nbsp; &nbsp; clr TR0<br />&nbsp; &nbsp; &nbsp; &nbsp; clr TF0<br />&nbsp; &nbsp; &nbsp; &nbsp; setb fan<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB ffast,$<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp scan<br /><br />inauto:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov a,adc<br />&nbsp; &nbsp; &nbsp; &nbsp; clr c<br />&nbsp; &nbsp; &nbsp; &nbsp; cjne a,#30H,chk<br />chk:<br />&nbsp; &nbsp; &nbsp; &nbsp; jc fanoff<br />&nbsp; &nbsp; &nbsp; &nbsp; clr c<br />&nbsp; &nbsp; &nbsp; &nbsp; cjne a,#60H,chk1<br />chk1:<br />&nbsp; &nbsp; &nbsp; &nbsp; jc fanlow<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp fanfast<br /><br />read_adc:<br />&nbsp; &nbsp; &nbsp; &nbsp; clr soc<br />&nbsp; &nbsp; &nbsp; &nbsp; nop<br />&nbsp; &nbsp; &nbsp; &nbsp; setb soc<br />&nbsp; &nbsp; &nbsp; &nbsp; jnb done,$<br />&nbsp; &nbsp; &nbsp; &nbsp; clr done<br />&nbsp; &nbsp; &nbsp; &nbsp; clr read<br />&nbsp; &nbsp; &nbsp; &nbsp; mov a,adcport<br />&nbsp; &nbsp; &nbsp; &nbsp; setb read<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; mov dptr,#ctable<br />&nbsp; &nbsp; &nbsp; &nbsp; movc a,@a+dptr<br />&nbsp; &nbsp; &nbsp; &nbsp; mov adc,a<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; mov dptr,#dtable<br />&nbsp; &nbsp; &nbsp; &nbsp; swap a<br />&nbsp; &nbsp; &nbsp; &nbsp; anl a,#0FH<br />&nbsp; &nbsp; &nbsp; &nbsp; movc a,@a+dptr<br />&nbsp; &nbsp; &nbsp; &nbsp; mov seg7,a<br />&nbsp; &nbsp; &nbsp; &nbsp; setb MSB<br />&nbsp; &nbsp; &nbsp; &nbsp; acall delay<br />&nbsp; &nbsp; &nbsp; &nbsp; clr MSB<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; mov a,adc<br />&nbsp; &nbsp; &nbsp; &nbsp; anl a,#0FH<br />&nbsp; &nbsp; &nbsp; &nbsp; movc a,@a+dptr<br />&nbsp; &nbsp; &nbsp; &nbsp; mov seg7,a<br />&nbsp; &nbsp; &nbsp; &nbsp; setb LSB<br />&nbsp; &nbsp; &nbsp; &nbsp; acall delay<br />&nbsp; &nbsp; &nbsp; &nbsp; clr LSB<br />&nbsp; &nbsp; &nbsp; &nbsp; ret<br /><br />timer0_int:<br />&nbsp; &nbsp;JB F0, HIGH_DONE<br />LOW_DONE:<br />&nbsp; &nbsp;setb F0<br />&nbsp; &nbsp;setb fan<br />&nbsp; &nbsp;mov TH0, R7<br />&nbsp; &nbsp;clr TF0<br />&nbsp; &nbsp;reti<br /><br />HIGH_DONE:<br />&nbsp; &nbsp;clr F0<br />&nbsp; &nbsp;clr fan<br />&nbsp; &nbsp;mov A, #0FFH<br />&nbsp; &nbsp;clr C<br />&nbsp; &nbsp;subb A, R7<br />&nbsp; &nbsp;mov TH0, A<br />&nbsp; &nbsp;clr TF0<br />&nbsp; &nbsp;reti<br /><br />delay:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov r6,#20<br />wait:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov r5,#255<br />&nbsp; &nbsp; &nbsp; &nbsp; djnz r5,$<br />&nbsp; &nbsp; &nbsp; &nbsp; djnz r6,wait<br />&nbsp; &nbsp; &nbsp; &nbsp; ret<br /><br />ctable:<br />DB 0H, 0H, 1H, 1H, 2H, 2H, 2H, 3H<br />DB 3H, 4H, 4H, 4H, 5H, 5H, 5H, 6H<br />DB 6H, 7H, 7H, 7H, 8H, 8H, 9H, 9H<br />DB 9H, 10H, 10H, 11H, 11H, 11H, 12H, 12H<br />DB 13H, 13H, 13H, 14H, 14H, 15H, 15H, 15H<br />DB 16H, 16H, 16H, 17H, 17H, 18H, 18H, 18H<br />DB 19H, 19H, 20H, 20H, 20H, 21H, 21H, 22H<br />DB 22H, 22H, 23H, 23H, 24H, 24H, 24H, 25H<br />DB 25H, 25H, 26H, 26H, 27H, 27H, 27H, 28H<br />DB 28H, 29H, 29H, 29H, 30H, 30H, 31H, 31H<br />DB 31H, 32H, 32H, 33H, 33H, 33H, 34H, 34H<br />DB 35H, 35H, 35H, 36H, 36H, 36H, 37H, 37H<br />DB 38H, 38H, 38H, 39H, 39H, 40H, 40H, 40H<br />DB 41H, 41H, 42H, 42H, 42H, 43H, 43H, 44H<br />DB 44H, 44H, 45H, 45H, 45H, 46H, 46H, 47H<br />DB 47H, 47H, 48H, 48H, 49H, 49H, 49H, 50H<br />DB 50H, 51H, 51H, 51H, 52H, 52H, 53H, 53H<br />DB 53H, 54H, 54H, 55H, 55H, 55H, 56H, 56H<br />DB 56H, 57H, 57H, 58H, 58H, 58H, 59H, 59H<br />DB 60H, 60H, 60H, 61H, 61H, 62H, 62H, 62H<br />DB 63H, 63H, 64H, 64H, 64H, 65H, 65H, 65H<br />DB 66H, 66H, 67H, 67H, 67H, 68H, 68H, 69H<br />DB 69H, 69H, 70H, 70H, 71H, 71H, 71H, 72H<br />DB 72H, 73H, 73H, 73H, 74H, 74H, 75H, 75H<br />DB 75H, 76H, 76H, 76H, 77H, 77H, 78H, 78H<br />DB 78H, 79H, 79H, 80H, 80H, 80H, 81H, 81H<br />DB 82H, 82H, 82H, 83H, 83H, 84H, 84H, 84H<br />DB 85H, 85H, 85H, 86H, 86H, 87H, 87H, 87H<br />DB 88H, 88H, 89H, 89H, 89H, 90H, 90H, 91H<br />DB 91H, 91H, 92H, 92H, 93H, 93H, 93H, 94H<br />DB 94H, 95H, 95H, 95H, 96H, 96H, 96H, 97H<br />DB 97H, 98H, 98H, 98H, 99H, 99H, 00H, 00H<br /><br />dtable:<br />DB 3FH, 06H, 5BH, 4FH, 66H, 6DH, 7DH, 07H, 7FH, 67H<br /><br />ENDNote: Temp 100° cannot be displayed on 2 7-segments.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>yeah!! At last my projects is ended,however it is a failure,   but no matter what i wan post my highly appreciation here to AJAY who have give me so many help and guidelines in doing the coding part of this projects.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>actually my project failure is no bcause  the code not working but the hardware got problem,it make my 8051 cant run,all my group mate even my senior also donno why, 1 of my lecture told e that my 7segment display got problem and have drag all the 8051 current and make it malfunction</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>I am sorry... for that failure.. but thats how you learn. it was a project work an assignment and if i would give you the code directly you could have never learn anything.Now the working code is there in my last post so you can try it out  Thank you for your comments</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>hmm.. i saw your circuit and it doesn't look like you have problem with the 7-seg. Could be that during development process of the project it got malfunctioned. Still the real problem could only be found if i see the controller or the board myself.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>Sure i will update it...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay, can u put the comment on the code to make me can understand how the code that u write flow?   thanks</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>hey,ajay,can u teach me how to write the delay code?my exam is near but i stil not understand on how to write the delay code,u just use any example u have and explain to me pls....</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>can you start a new topic on this? i just don't want to confuse people...  There are common two methods to generate delay.. first is using timers and second is registers... so i will explain both of them and also answer your doubts. Please create another topic</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>cenadius</dc:creator>
						<dc:subject></dc:subject>
						<description>ok</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>nattu</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi I am also doing similar projectHere I want control the proportional valve by varying 0 to 24v(0-400mA) using 8051 PWMCan you help me regarding the hardware?  Regardschandu</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>you can make use of L293D for this...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>pdi i have single cycle 8051   the fastest one.. i think it can beat avr</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pantechprojects</dc:creator>
						<dc:subject></dc:subject>
						<description>For PWM technique, it is very easy and compatible if u go head with PIC Controllers.If u want more guidence, contact [BLOCKED BY ADMIN]they are dealing with embedded projects based on 8051,PIC, AVR, ARM,Reneses and DSP processor also..U will get complete guidence on your academic and research projects.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>hi nattu/chandu/naresh,in the above project, the fan speed is controlled depending upon the temperature input but the temperature itself is not being controlled. so please confirm if u really want to control only the flow of gas for pr-determined levels of temperature OR whether ur valve is directly controlling the temperature because both the algorithms are completely different. If the former is true, then the above algorithm will hold good but if u require the latter one then better start a new thread with a detailed specification of ur requirements.do also mention whether u require a continuousl changing output(analog) or fixed predetermined output levels.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>nattu</dc:creator>
						<dc:subject></dc:subject>
						<description>Thanks for replyIn the L293D have 4-channel driver, but for my application I need only one channel It is the proportional valve which control the flow of the gasThe flow of the gas I have to control using micro controller PWMPlease can you send Hardware circuit related to this project?Regardschandu</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>sure silver,u can use any of the above ICs (AVRs) and if u have understood the concept well, u would find it very easy to write the code in AVR.AVRs are much more faster/powerful than even the fastest 8051 processor available ( provided both run on the same frequency   ).</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>hi there, i am kinda impressed with this project, but i wish to ask, is there any other possible chips that i can use besides AT89S51? can i use maybe any other Atmel products like Atmega 8, Atmega8515 or Atmega 88?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>i see, thanks for the quick reply. but i wish to ask a few more things. what is the closest AVR/8051 chip that can replace this AT89S51 for this project?besides that, can the assembly code given by Ajay be applied in the other chips?in the schematics given at page 3 of this project, can i ask is it possible that i replace the diode 1N4002 to 1N4003?hope that you all can help me in this:P. thanks.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay wrote ...pdi i have single cycle 8051   the fastest one.. i think it can beat avr  i was expecting that comment  .i know of the single cycle 8051 core . i think the later versions of Amel 8051 derivatives all have it e.g. 89s2051. so i specifically mentioned the clock frequency because a single cycle core 8051 running @ 33MHz is indeed one of the fastest 8 bit uCs till date.;)  btw, no smileys menu  for  the reply box??</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well smilies are available at the bottom of reply box or there is smiley button now (I forgot to add image button).I want you to take a look at this  http://www.maxim-ic.com/quick_view2.cfm/qv_pk/407833MIPS @ 33MHzI am bit possessive when it comes to 8051   lol!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>very nice one. especially the two serial ports and 64k code memory part apart from the speed!!i rest my case...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>hehe....   lot of features are there...   i simply love Dallas 450 controller</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>hi there again, i wish to reconfirm a few things...based on the schematics on page 3 by cenadius which i assume is the final schematics...i wish to replace the AT89S51 now with AT89S52, is it possible that it will work out as well?besides that, i wonder if the final source code given by Ajay on page 11, is it working fine:P? or do i have to try it out myself? well cause i am trying to create somewhat the same circuit in this project for my graduation project, so just wanna reconfirm though:)i hope the mods and admins can help me out in this:), i will be very grateful for your help, thanks.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>sure silver,the 89s52 has a larger code and data memory and is perfectly upper compatible with the 89s51. As for the code part,do try it on the hardware and post any doubts/problems.c'mon man, atleast u can do that , can't u? ajay has provided u 90% of ur work and all u have to do is to try it out.!!   after all, the manufacturer has so generously invented the 1000 times re-programmable flash code memory in the 8051 so that u guys can experiment on ur coding skills. make good use of it!!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>vimalnath</dc:creator>
						<dc:subject></dc:subject>
						<description>This  is the best microcontroller when comapared to other microcontrollers.This is  16-bit microcontroller, Address lines. memory data.###################3vimal widecircles</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>@vimalnath,are u talking about 89s52 or some other uC because 89s52 is a 8bit uC.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>rajeshbari</dc:creator>
						<dc:subject></dc:subject>
						<description>better u first study  basic of micro controller then by using diff hard ware interface them then use simple complier like bascom-8051 to write program</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>@vimalnath &amp; rajesh,please stick to the topic of the forum. do be clear on the matter posted so that other members can understand    . u guys can chat freely in the chat box provided as this is not the appropriate place.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>ermm, can i ask one question about the circuit in page 3?well its about the 7 segment display...i wish to ask are they common cathode or common anode?besides that, what is the possible model name of the 7 segment dual digit display?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>@ silver,they are common cathode. the model no. for a multiplexed two digit display depends upon the manufacturer. try browsing on the manufacturer site  for the model nos.P.S. the display interface part of the circuit does not seem to have adequate current protection. So pease add suitable buffer/current limiting resistors to the circuit for safety of the uC.good luck.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>ermm, i tried to connect and did all programming correctly.unfortunately it did not work, i feel its really weird. my 7 segment well its trying to produce some number but its just all blur, meaning not giving any fixed value but shows some blinking.besides that, there is another thing, the switches are not working as well, please help me out. thanks. is it the programming that is wrong or the circuit?oh wait, i did not see the page 5 has a circuit as well, let me try that out first...sorry for inconvenience</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>i finally got the project working, fan working out well, OFF, LOW, FAST switch was fine. the display of temperature is fine too but, the biggest problem is...the value does not stick at one value at one time, example the temperature now is 27 but it seems to be always blinking the value and when it changes to 26, it blinks as well and change to 26.mostly if i were to see a proper 7 segment, it stays at 27 then when the temperature drops , it drops as well and does not blink repeatedly.i hope you all can tell me how to overcome this problem:)...cause my friend tried to solve it last time failed as well. thanks.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Freddy</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi guys, I have a project with LM35 (with ADC) and a fan. how can I control the fan (on/off) with respect to the temperature ?    I mean how to perform these instructions in assembly language ?    Output of ADC is at P2 and stored in AOFF fan if Temp &lt; 31 CelsiusON fan if Temp >  31 Celsius Thanks for your consideration.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>silver,the problem may be occurring because the code is executing some other part of the code which takes a bit of time and during the interval the whole display is blank. U can avoid blinking by introducing the scanning of the display in a timer interrupt service routine meant to execute for every 1msecond. If u have written the code in c-language, that would not be very difficult. but if written in assemble , take care to save the different variables before executing the display routine.post ur code and we can try to find a way out...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>oh about the code, i am currently using the code on page 10 given by Ajay.well i wonder if you can help me to look through it and see is there any way i can change the blinking of the 7 segment. thanks for looking through this, pdi33. well of course its in assembly code form but i am pretty poor in my assembly code, therefore i wonder if you can help me out:)</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Arun Kumar V</dc:creator>
						<dc:subject></dc:subject>
						<description>pl.post the code here so that we can helpArun</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>hi silver,sorry for not replying earlier. actually, i was trying to find a way out of ur problem. trying to reverse engineer a code written by another person is always difficult ( especially if the code is a good compact one!!!   ). anyways, i think the problem could be (possibly ) that the code is holding on to a single display for a bit too long before displaying the next digit.here is the portion:        mov dptr,#dtable        swap a        anl a,#0FH        movc a,@a+dptr        mov seg7,a        setb MSB        acall delay        clr MSB        mov a,adc        anl a,#0FH        movc a,@a+dptr        mov seg7,a        setb LSB        acall delay        clr LSB        retNow, i would suggest u to reduce the delay in the delay routine so as to increase the switch over and thus reduce the blinking effect.do try it and get back.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>well its on page 10 of this forum topic, well not being stubborn but no point posting the same code twice on the same topic:). anything you can view page 10 of this forum topic written by Ajay that is. CODE:automan equ P3.4<br />off &nbsp; &nbsp; equ P1.4<br />flow &nbsp; &nbsp;equ P1.5<br />ffast &nbsp; equ P1.6<br />soc &nbsp; &nbsp; equ P3.1<br />read &nbsp; &nbsp;equ P3.0<br />fan &nbsp; &nbsp; equ P3.3<br />mode &nbsp; &nbsp;equ 20H<br />done &nbsp; &nbsp;equ 21H<br />adc &nbsp; &nbsp; equ 30H<br />adcport equ P2<br />MSB &nbsp; &nbsp; equ P1.0<br />LSB &nbsp; &nbsp; equ P1.1<br />seg7 &nbsp; &nbsp;equ P0<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; org 0H<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp start<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; org 03H<br />&nbsp; &nbsp; &nbsp; &nbsp; setb done<br />&nbsp; &nbsp; &nbsp; &nbsp; reti<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; org 0BH<br />&nbsp; &nbsp; &nbsp; &nbsp; ljmp timer0_int<br /><br />start:<br />&nbsp; &nbsp; &nbsp; &nbsp; clr fan<br />&nbsp; &nbsp; &nbsp; &nbsp; clr done<br />&nbsp; &nbsp; &nbsp; &nbsp; clr mode<br />&nbsp; &nbsp; &nbsp; &nbsp; clr MSB<br />&nbsp; &nbsp; &nbsp; &nbsp; clr LSB<br />&nbsp; &nbsp; &nbsp; &nbsp; mov IE,#10000011B<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />scan:<br />&nbsp; &nbsp; &nbsp; &nbsp; acall read_adc<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB automan,auto<br />&nbsp; &nbsp; &nbsp; &nbsp; clr mode<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp manual<br />auto:<br />&nbsp; &nbsp; &nbsp; &nbsp; setb mode<br />manual:<br />&nbsp; &nbsp; &nbsp; &nbsp; JB mode,inauto<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB off,fanoff<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB flow,fanlow<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB ffast,fanfast<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp scan<br /><br />fanoff:<br />&nbsp; &nbsp; &nbsp; &nbsp; clr TR0<br />&nbsp; &nbsp; &nbsp; &nbsp; clr TF0<br />&nbsp; &nbsp; &nbsp; &nbsp; clr fan<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB off,$<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp scan<br /><br />fanlow:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov r7,#50H<br />&nbsp; &nbsp; &nbsp; &nbsp; setb TR0<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB flow,$<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp scan<br /><br />fanfast:<br />&nbsp; &nbsp; &nbsp; &nbsp; clr TR0<br />&nbsp; &nbsp; &nbsp; &nbsp; clr TF0<br />&nbsp; &nbsp; &nbsp; &nbsp; setb fan<br />&nbsp; &nbsp; &nbsp; &nbsp; JNB ffast,$<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp scan<br /><br />inauto:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov a,adc<br />&nbsp; &nbsp; &nbsp; &nbsp; clr c<br />&nbsp; &nbsp; &nbsp; &nbsp; cjne a,#30H,chk<br />chk:<br />&nbsp; &nbsp; &nbsp; &nbsp; jc fanoff<br />&nbsp; &nbsp; &nbsp; &nbsp; clr c<br />&nbsp; &nbsp; &nbsp; &nbsp; cjne a,#60H,chk1<br />chk1:<br />&nbsp; &nbsp; &nbsp; &nbsp; jc fanlow<br />&nbsp; &nbsp; &nbsp; &nbsp; sjmp fanfast<br /><br />read_adc:<br />&nbsp; &nbsp; &nbsp; &nbsp; clr soc<br />&nbsp; &nbsp; &nbsp; &nbsp; nop<br />&nbsp; &nbsp; &nbsp; &nbsp; setb soc<br />&nbsp; &nbsp; &nbsp; &nbsp; jnb done,$<br />&nbsp; &nbsp; &nbsp; &nbsp; clr done<br />&nbsp; &nbsp; &nbsp; &nbsp; clr read<br />&nbsp; &nbsp; &nbsp; &nbsp; mov a,adcport<br />&nbsp; &nbsp; &nbsp; &nbsp; setb read<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; mov dptr,#ctable<br />&nbsp; &nbsp; &nbsp; &nbsp; movc a,@a+dptr<br />&nbsp; &nbsp; &nbsp; &nbsp; mov adc,a<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; mov dptr,#dtable<br />&nbsp; &nbsp; &nbsp; &nbsp; swap a<br />&nbsp; &nbsp; &nbsp; &nbsp; anl a,#0FH<br />&nbsp; &nbsp; &nbsp; &nbsp; movc a,@a+dptr<br />&nbsp; &nbsp; &nbsp; &nbsp; mov seg7,a<br />&nbsp; &nbsp; &nbsp; &nbsp; setb MSB<br />&nbsp; &nbsp; &nbsp; &nbsp; acall delay<br />&nbsp; &nbsp; &nbsp; &nbsp; clr MSB<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; mov a,adc<br />&nbsp; &nbsp; &nbsp; &nbsp; anl a,#0FH<br />&nbsp; &nbsp; &nbsp; &nbsp; movc a,@a+dptr<br />&nbsp; &nbsp; &nbsp; &nbsp; mov seg7,a<br />&nbsp; &nbsp; &nbsp; &nbsp; setb LSB<br />&nbsp; &nbsp; &nbsp; &nbsp; acall delay<br />&nbsp; &nbsp; &nbsp; &nbsp; clr LSB<br />&nbsp; &nbsp; &nbsp; &nbsp; ret<br /><br />timer0_int:<br />&nbsp; &nbsp;JB F0, HIGH_DONE<br />LOW_DONE:<br />&nbsp; &nbsp;setb F0<br />&nbsp; &nbsp;setb fan<br />&nbsp; &nbsp;mov TH0, R7<br />&nbsp; &nbsp;clr TF0<br />&nbsp; &nbsp;reti<br /><br />HIGH_DONE:<br />&nbsp; &nbsp;clr F0<br />&nbsp; &nbsp;clr fan<br />&nbsp; &nbsp;mov A, #0FFH<br />&nbsp; &nbsp;clr C<br />&nbsp; &nbsp;subb A, R7<br />&nbsp; &nbsp;mov TH0, A<br />&nbsp; &nbsp;clr TF0<br />&nbsp; &nbsp;reti<br /><br />delay:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov r6,#20<br />wait:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov r5,#255<br />&nbsp; &nbsp; &nbsp; &nbsp; djnz r5,$<br />&nbsp; &nbsp; &nbsp; &nbsp; djnz r6,wait<br />&nbsp; &nbsp; &nbsp; &nbsp; ret<br /><br />ctable:<br />DB 0H, 0H, 1H, 1H, 2H, 2H, 2H, 3H<br />DB 3H, 4H, 4H, 4H, 5H, 5H, 5H, 6H<br />DB 6H, 7H, 7H, 7H, 8H, 8H, 9H, 9H<br />DB 9H, 10H, 10H, 11H, 11H, 11H, 12H, 12H<br />DB 13H, 13H, 13H, 14H, 14H, 15H, 15H, 15H<br />DB 16H, 16H, 16H, 17H, 17H, 18H, 18H, 18H<br />DB 19H, 19H, 20H, 20H, 20H, 21H, 21H, 22H<br />DB 22H, 22H, 23H, 23H, 24H, 24H, 24H, 25H<br />DB 25H, 25H, 26H, 26H, 27H, 27H, 27H, 28H<br />DB 28H, 29H, 29H, 29H, 30H, 30H, 31H, 31H<br />DB 31H, 32H, 32H, 33H, 33H, 33H, 34H, 34H<br />DB 35H, 35H, 35H, 36H, 36H, 36H, 37H, 37H<br />DB 38H, 38H, 38H, 39H, 39H, 40H, 40H, 40H<br />DB 41H, 41H, 42H, 42H, 42H, 43H, 43H, 44H<br />DB 44H, 44H, 45H, 45H, 45H, 46H, 46H, 47H<br />DB 47H, 47H, 48H, 48H, 49H, 49H, 49H, 50H<br />DB 50H, 51H, 51H, 51H, 52H, 52H, 53H, 53H<br />DB 53H, 54H, 54H, 55H, 55H, 55H, 56H, 56H<br />DB 56H, 57H, 57H, 58H, 58H, 58H, 59H, 59H<br />DB 60H, 60H, 60H, 61H, 61H, 62H, 62H, 62H<br />DB 63H, 63H, 64H, 64H, 64H, 65H, 65H, 65H<br />DB 66H, 66H, 67H, 67H, 67H, 68H, 68H, 69H<br />DB 69H, 69H, 70H, 70H, 71H, 71H, 71H, 72H<br />DB 72H, 73H, 73H, 73H, 74H, 74H, 75H, 75H<br />DB 75H, 76H, 76H, 76H, 77H, 77H, 78H, 78H<br />DB 78H, 79H, 79H, 80H, 80H, 80H, 81H, 81H<br />DB 82H, 82H, 82H, 83H, 83H, 84H, 84H, 84H<br />DB 85H, 85H, 85H, 86H, 86H, 87H, 87H, 87H<br />DB 88H, 88H, 89H, 89H, 89H, 90H, 90H, 91H<br />DB 91H, 91H, 92H, 92H, 93H, 93H, 93H, 94H<br />DB 94H, 95H, 95H, 95H, 96H, 96H, 96H, 97H<br />DB 97H, 98H, 98H, 98H, 99H, 99H, 00H, 00H<br /><br />dtable:<br />DB 3FH, 06H, 5BH, 4FH, 66H, 6DH, 7DH, 07H, 7FH, 67H<br /><br />END in fact i discussed this with my friends who learned the same field as me, unfortunately the assembly code we learned is just one semester and there are a few parts we don't understand, anyway straight to the point is we are trying to solve the 7 segment display blinking problem, so we are not so sure what is the main problem, is it the code? the crystal? or problems in the schematic connection?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>hmmm, yeah i was thinking about the delay part but unfortunately i am inexperienced in the 7 segment programming part cause even my friends and seniors here failed to solve it.if its possible that maybe you all can help me write the programme for the reducing the delay for the 7 segment? if not i have to wait till my next semester starts again to ask my assembly professor about this:(sorry for the trouble though.by the way, the project is working perfectly fine with the fan and sensor but only the 7 segment is kinda annoying blinking in the eyes...LOL</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>silver,in the delay routine written by ajay, CODE:<br />&nbsp;delay:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov r6,#20<br />wait:<br />&nbsp; &nbsp; &nbsp; &nbsp; mov r5,#255<br />&nbsp; &nbsp; &nbsp; &nbsp; djnz r5,$<br />&nbsp; &nbsp; &nbsp; &nbsp; djnz r6,wait<br />&nbsp; &nbsp; &nbsp; &nbsp; ret<br />&nbsp;change the counter: mov r6,#20  to saymov r6,#10if u find some improvement, try reducing the delay further till u get a steady display.note that decreasing the delay has a catch that it will also increase the frequency of the ADC readings and may lead to some fluctuation as both the ADC reading part and the display are placed in the same routine. For now, find a optimum delay which can meet ur requirement . U can try separating the display and ADC routine in future.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>yeah it worked, my 7 segment does not blink that often so far, glad to have found this place for my project, thanks pdi33 and co. LOL. my project is finally completed and is operating smoothly.but my professor is one guy who never get satisfied...zzzz. he says that there is more function that can be inserted in here:(. well kinda disappointing after hearing that but maybe can i ask one question?is it possible that extra function can still be added in this project? based on the circuit on page 5 , i realised the SCK pin is still free and some pins on section 3 is still free. can i know example of functions that can still be inserted in this?well he requested me to do something like ability to adjust the temperature sensor so that instead of above 30 degrees, the fan will on...but he prefers that if the user is able to adjust his own limit by inserting, 25,26,27 and etc instead of 30. well it sounds complicated but wonder is this function could be inserted into the SCK pin or other free pins that have not been connected? of course programming comes later but just wondering about this though:)PS: i plan to just pass up my project as it is, as they say, forget about the prof.,s request:P</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>hi silver,glad it worked out well.    .As for ur enhancement of the project ,what the prof. suggested is perfectly acceptable thoug u may need to add quite a bit of code and a single EEPROM ic in ur existing one.u already have four switches connected to the uC so u will not need any more key interfacing to the unused pins except two lines which can be connected to a EEprom like 24c02. just change the existing function of the switches to SET/incremet and decrement functions. say, when the user presses the set key, the display will show the user settable set temperature which can be changed by pressing the increment key and decrement key. when the set key is released show again the process temperature. Now, u will need a EEProm to store this user set memory as the RAM contents will wash out after power is switched off .A nice example of such a setting procedure can be found in a project in download section by ajay called digital clock using DS1307.. here is the link: http://www.8051projects.net/downloads21.htmlgood luck.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>i see, i think i get what you mean...by the way, actually in the circuit of page 5, only 3 switches are actually usable cause they represent OFF, LOW and HIGH. but the 4th switch is not in used, my friend told me its possible that we can use the 4th switch for using SET mode, that when we press that the 7 segment will appear the current auto temperature we wanted for the fan to work, and then we will be able to press other 2 switches which has the function of increasing and decreasing the value:)and then the EEPROM is to remember your current settings even after you OFF the circuit, i think i got it right:P?by the way do i have to open a new topic for this?is it possible that pdi33 can assist me in this? cause i might need some help in the programming and circuit part. cause i am wondering where i should put my EEPROM(like 24C02) on which pin that is and what programme can be used for it to correspond with my 7 segment and 4 switches.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>u can connect the 24cXX to any two unused port pins ( only 2 pins re required for interfacing). the interface is I2C protocol and u can find more about it here on this forum itself   .And yes silver, not only pdi33 but the other mods/admins and even some very helpful members like gianni / experimenter are all there to help u out    . So go ahead and try it out.good luck.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>pdi33</dc:creator>
						<dc:subject></dc:subject>
						<description>check the download section :http://www.8051projects.net/download29.htmlu will find general I2C routines to interface  24cXX with 8051.   P.S.check this application note on atmel website for interfacing 24Cxx with 8051http://www.atmel.com/dyn/resources/prod_documents/doc0507.pdfhttp://www.atmel.com/dyn/resources/prod_documents/aat24cxx.exe</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>hmmm, 2 pins. actually i planned to connect it to 3.5/3.6/3.7/SCK, its either these 4 pins. then as for the SET mode switch i plan to use SW 8, the fourth switch which is not in use.do you think is it possible that way?by the way, what extra code do i need to write in the assembly code? well really i wished that i should take assembly code class during my last semester:(. hope the admins can guide me a little, but i can understand the previous code on page 10 so far:)</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t1707.html">
						<title>Re: An 8051 Based Temperature Controlled Fan project</title>
						<link>http://www.8051projects.net/forum-t1707.html</link>
						<dc:date>2009-01-08T08:34:02-08:00</dc:date>
						<dc:creator>Silver</dc:creator>
						<dc:subject></dc:subject>
						<description>ok, but lately i have been busy and will reply later the result of how it goes:)thanks for the links pdi33.</description>
						</item>
				</rdf:RDF>