18F25K80 OneWire library

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
Bonca
Posts: 319
Joined: 18 Mar 2009 07:55

18F25K80 OneWire library

#1 Post by Bonca » 10 Aug 2022 23:23

Dear Support,

I need an advise how to get the 18F25K80 working with DS18B20. It seems that the OneWire library does not work properly on that controller. Do you have a similar solution like this?
viewtopic.php?f=88&t=71189&p=287347&hil ... 20#p287347
Thank you in advance.

Bonca

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: 18F25K80 OneWire library

#2 Post by hexreader » 17 Sep 2022 10:31

Works OK for me using RA2 for DS18B20 ...

Maybe you did not make the correct changes when changing processor?

Attached is mikroE demo code, adjusted from PIC18F45K22 to PIC18F25K80 and for DS18B20 on RA2
Attachments
One Wire.zip
(79.77 KiB) Downloaded 43 times
Start every day with a smile...... (get it over with) :)

Bonca
Posts: 319
Joined: 18 Mar 2009 07:55

Re: 18F25K80 OneWire library

#3 Post by Bonca » 17 Sep 2022 10:43

Hi hexreader,

thank you for testing on 18F controller. I have prepared my own OneWire library taking in consideration the TRIS, LAT and PORT registers.

Bonca

Post Reply

Return to “mikroC PRO for PIC General”