Problems with Ds1820

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Jan Middel
Posts: 7
Joined: Sun Nov 18, 2007 11:23 am

Problems with Ds1820

Post by Jan Middel »

Hallo,

I’m stil trying to get a temperature meter with a 1-wire component to work properly.
To do this I use a Dallas DS1820 together with the example program that is supplied with the Flowcode 4.
When I run the program, I only get the result -1. With a DS18B20 I get the same result (-1).
When I disconnect the PIC I get an exception “Device not found”. Therefore I believe there is a connection between the PIC and the DS1820.
There is a pull-up resistance of 4k7 between the power source and data connection.
The processor runs at 2,45679 Mhz, I also get the same result with other speeds. I’ve asked questions before and used the answers, but somehow I can’t get it to work the way I want it to.
I use the 16f877a with de Ds1820 connect at pin 0 from port A
Can anybody help me?


Jan

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Problems with Ds1820

Post by Benj »

Hello Jan

Have you tried the example program available from here. It is working fine for me.

http://www.matrixmultimedia.com/mmforum ... =25#p15709

Post Reply