CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Problem with 16F877 and DS18B20

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mitk0k



Joined: 08 May 2009
Posts: 3

View user's profile Send private message

Problem with 16F877 and DS18B20
PostPosted: Fri May 08, 2009 11:33 am     Reply with quote

Hi, guys.

I'm trying to "assemble" simple thermometer using PIC16F877 and DS12B80. I'm also using 1wire "driver" from here and flex_lcd driver from here. But the problem is that the LCD shows TEMP: -0 / COLD !

Anyone have clue ?

Thanks in advance Smile
Mitko Kostov.

PS: The scheme :


bungee-



Joined: 27 Jun 2007
Posts: 206

View user's profile Send private message

PostPosted: Fri May 08, 2009 11:53 am     Reply with quote

Well if you would post the actual code, someone could actually help you.
mitk0k



Joined: 08 May 2009
Posts: 3

View user's profile Send private message

PostPosted: Fri May 08, 2009 12:03 pm     Reply with quote

I pointed to the code I use.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri May 08, 2009 12:08 pm     Reply with quote

Quote:
#define ONE_WIRE_PIN PIN_A0

The linked driver uses pin A0. You are using pin C0. Did you change
the #define statement above to use your pin ?
mitk0k



Joined: 08 May 2009
Posts: 3

View user's profile Send private message

PostPosted: Fri May 08, 2009 12:16 pm     Reply with quote

Yep, I changed it, also configured the LCD with my pin configuration.

The error in Proteus :





EDIT : I was using 16F877, not 16F877A. Problem solved I guess.

Thanks.
didaduh
Guest







Cant make it to work
PostPosted: Thu Oct 15, 2009 6:35 pm     Reply with quote

Mitko Kostov,

Can you send me the files to didaduh@gmail.com ?

Thanks in advance.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group