View previous topic :: View next topic |
Author |
Message |
mitk0k
Joined: 08 May 2009 Posts: 3
|
Problem with 16F877 and DS18B20 |
Posted: Fri May 08, 2009 11:33 am |
|
|
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
Mitko Kostov.
PS: The scheme :
|
|
|
bungee-
Joined: 27 Jun 2007 Posts: 206
|
|
Posted: Fri May 08, 2009 11:53 am |
|
|
Well if you would post the actual code, someone could actually help you. |
|
|
mitk0k
Joined: 08 May 2009 Posts: 3
|
|
Posted: Fri May 08, 2009 12:03 pm |
|
|
I pointed to the code I use. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri May 08, 2009 12:08 pm |
|
|
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
|
|
Posted: Fri May 08, 2009 12:16 pm |
|
|
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 |
Posted: Thu Oct 15, 2009 6:35 pm |
|
|
Mitko Kostov,
Can you send me the files to [email protected] ?
Thanks in advance. |
|
|
|