DS18S20

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
foppa
Posts: 45
Joined: Sat Dec 20, 2008 1:55 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

DS18S20

Post by foppa »

Hello 8)

Are testing a DS18S20.
Can you have a custom macro in one wire
which is designed for ds1820

Chip is 16F628A

I had to make some changes in macrot so it suited for 16F628A
Is a little unsure if I made the right
It does not work
Attachments
one1.JPG
one1.JPG (24.13 KiB) Viewed 3992 times

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: DS18S20

Post by Benj »

Hello

Please see the following post for help using the one wire component.

http://www.matrixmultimedia.com/mmforum ... 767#p12454

The files provided by JCMB are an improved version of my beta one wire component code.

Your custom component properties look fine if you are trying to connect via pin RA1. If you want to use RA0 then change the pin value to 0.

foppa
Posts: 45
Joined: Sat Dec 20, 2008 1:55 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: DS18S20

Post by foppa »

Hello

I did what you wrote.
followed the link and I changed RA1 to RA0.
I get the CRC ERROR on the display.
google on crc error, but they reply I get does not solve my problem.
Have also tried to change the "delay time of ds18s20"
Without results.
Should I find a ds1820.
The I have now is ds18s20.

connect 4.7 kohm between + and out of ds18S20

Post Reply