Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

LM35 WIth pic16f877A - LCD it is not showing (using C)

Status
Not open for further replies.

ADDE

Newbie level 2
Joined
Apr 25, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
::))
Activity points
1,325
HI all.
I am New in here n Also Very New in Controller i have programmed my controller Using C but the problem is that in the LCD it is nt showin the correct value when i increase the Tempreture or press the positive one it will jump two value and displays the Even Values only....

I need Help as soon PLz the due date is Less u can feel it as student.

thnz even for ur reading
 

HI all.
I am New in here n Also Very New in Controller i have programmed my controller Using C but the problem is that in the LCD it is nt showin the correct value when i increase the Tempreture or press the positive one it will jump two value and displays the Even Values only....

I need Help as soon PLz the due date is Less u can feel it as student.

thnz even for ur reading

Me too having the same problem!
 

Sorry I dont get anything from the link( that website);

Only a program
Yes, just take the source code.
Someone give for the theory, then asking for source code. Giving the source code, then asking for another else.
 

I think My program side is ok. I am writing pgm using CCs compiler. What my doubt is the variation in the output of LM35. Temperature is varying between a range of 4- 5 degree Cel:
 

please upload your code as well as the circuit. That may give us some clue to help you
 

Code:
#include<16f877a.h>
//#device adc=10
#include"pic.h"
#include"lcd1.h"
float x,tempread;
int i;
float temp()
{
	set_adc_channel(4);
	delay_us(20);
	x=read_adc();
	delay_ms(200);
	return(x*1.96);
	delay_ms(500);
}
		
void main()
{
	float T;
	setup_adc(ADC_CLOCK_INTERNAL);
   	 setup_adc_ports(ALL_ANALOG);
   	 lcdinit();
  	go(3);
	printc("Temp Sensor");
  	delay_ms(1500);
 	delay_ms(1500);
	clrscr();
while(1)
{
	
	go(0);
	printc("Temperature=");
	go(12);
	print(temp());
	delay_ms(1500);
}	
}


---------- Post added at 17:01 ---------- Previous post was at 17:00 ----------

Circuit is nothing but output of LM35 directly connected to RA5 of PIC 16f877a
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top