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 support@ccsinfo.com

problem with ds18s20

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







problem with ds18s20
PostPosted: Thu Feb 27, 2003 12:51 am     Reply with quote

I try to use <a href="http://www.phanderson.com/PIC/PICC/CCS_PCM/ds1820.html" TARGET="_blank">http://www.phanderson.com/PIC/PICC/CCS_PCM/ds1820.html</a> code with ds18s20. I don't have oscilloscope so I can see nothing else than my lcd result. I can't get it work. Have someone more information to use ds18s20? I have 4,4Kohm pull-up resistor,using ds18s20 with paraside mode.

Pete
___________________________
This message was ported from CCS's old forum
Original Post ID: 12156
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: problem with ds18s20
PostPosted: Thu Feb 27, 2003 9:00 am     Reply with quote

:=I try to use <a href="http://www.phanderson.com/PIC/PICC/CCS_PCM/ds1820.html" TARGET="_blank"> <a href="http://www.phanderson.com/PIC/PICC/CCS_PCM/ds1820.html" TARGET="_blank">http://www.phanderson.com/PIC/PICC/CCS_PCM/ds1820.html</a></a> code with ds18s20. I don't have oscilloscope so I can see nothing else than my lcd result. I can't get it work. Have someone more information to use ds18s20? I have 4,4Kohm pull-up resistor,using ds18s20 with paraside mode.
:=
:=Pete

Search this forum and you can find a lot of information. I have see functions posted in this forum that support all the functionality of the ds1820. I have posted some myself with minimal support for the ds1820.
___________________________
This message was ported from CCS's old forum
Original Post ID: 12169
pete
Guest







Re: problem with ds18s20
PostPosted: Thu Feb 27, 2003 11:23 am     Reply with quote

I try to search but found nothing than phanderson code.
I just hope someone has more details, it helps me a lot.Usually I use LM335 temperature sensor, i-wire was new for me.
Thanks.
Pete
___________________________
This message was ported from CCS's old forum
Original Post ID: 12174
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: problem with ds18s20
PostPosted: Thu Feb 27, 2003 6:09 pm     Reply with quote

<font face="Courier New" size=-1>:=I try to search but found nothing than phanderson code.
:=I just hope someone has more details, it helps me a lot.Usually I use LM335 temperature sensor, i-wire was new for me.
--------------------------------------------------

Peter Anderson has some delay functions which are intended
for a 16-series PIC running at 4 MHz. If you are running
at a higher crystal frequency, and you're still using that
same code, then there could easily be a problem.

If so, then replace his delay functions with CCS delay
functions. Replace delay_10_us(n) with delay_us(n * 10).
(Do the n * 10 math yourself. Put in the actual value).
Delete his "delay_ms()" function, to be sure that the
CCS built-in delay_ms() function is used.

Maxim has an appnote that has C source code for 1-wire chips.
You could port this code to CCS.
<a href="http://pdfserv.maxim-ic.com/arpdf/AppNotes/app126.pdf" TARGET="_blank"> <a href="http://pdfserv.maxim-ic.com/arpdf/AppNotes/app126.pdf" TARGET="_blank">http://pdfserv.maxim-ic.com/arpdf/AppNotes/app126.pdf</a></a>

Here's another appnote that may be better than that one.
This one is specifically about the DS18x20 series chips,
with C source code. (Has to be ported to CCS).
<a href="http://pdfserv.maxim-ic.com/arpdf/AppNotes/app162.pdf" TARGET="_blank">http://pdfserv.maxim-ic.com/arpdf/AppNotes/app162.pdf</a>

Here's a page full of appnotes on the DS18S20.
(scroll down to the bottom of this page.)
<a href="http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2815" TARGET="_blank">http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2815</a>





--</font>
___________________________
This message was ported from CCS's old forum
Original Post ID: 12189
none
Guest







Re: problem with ds18s20
PostPosted: Fri Feb 28, 2003 10:55 am     Reply with quote

pete,

look below for some sample onewire routines, should
help you get started. you'll need to add support for
parasite mode, however.

<a href="http://losdos.dyndns.org:8080/public/onewire/" TARGET="_blank">http://losdos.dyndns.org:8080/public/onewire/</a>

regards



:=I try to search but found nothing than phanderson code.
:=I just hope someone has more details, it helps me a lot.Usually I use LM335 temperature sensor, i-wire was new for me.
:=Thanks.
:=Pete
___________________________
This message was ported from CCS's old forum
Original Post ID: 12224
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