Cant read a DS18S/B20 on a 18F4685 at 20Mhz

General discussion on mikroPascal.
Post Reply
Author
Message
alm7100
Posts: 85
Joined: 09 Oct 2008 11:58
Location: Denmark

Cant read a DS18S/B20 on a 18F4685 at 20Mhz

#1 Post by alm7100 » 21 Feb 2009 14:48

Hi

My first breadboard project at 4MHz i can read DS18S/B20 with out any problems. But now i run at 20MHz, i can't get the temp but i can get it ID.

Any one the har a solution??

[DeviceName]
Value=P18F4685
[DeviceClock]
Value=20
[DeviceFlags]
Count=8
Value0=_OSC_HS_1H = $00F2
Value1=_FCMEN_OFF_1H = $00BF
Value2=_IESO_OFF_1H = $007F
Value3=_BOREN_OFF_2L = $00F9
Value4=_WDT_OFF_2H = $00FE
Value5=_PBADEN_OFF_3H = $00FD
Value6=_XINST_OFF_4L = $00BF
Value7=_LVP_OFF_4L = $00FB

Thanks.
//
Allan (Sorry for my English.)

alm7100
Posts: 85
Joined: 09 Oct 2008 11:58
Location: Denmark

#2 Post by alm7100 » 22 Feb 2009 13:24

Please anyone to help me.

Need any more information?? I am stranded there.

The first project i make its runs at 4MHz and now i am trying to make i run on 20MHz.

The display, keyboard and so on, works fine, but i cant get the temp on the DS18S20 or DS18B20 only the ID of the DS18B/S20 i can get.
//
Allan (Sorry for my English.)

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

#3 Post by janni » 22 Feb 2009 18:28

Hard to help you with so little (and strange) information. If you can get the ID from the sensor, there is no reason why other communication shouldn't work.

alm7100
Posts: 85
Joined: 09 Oct 2008 11:58
Location: Denmark

#4 Post by alm7100 » 22 Feb 2009 19:07

Hi

I Know, bout i dont know hov to give more information, can it be the config word there is error in. Its whas 4Mhz before and nog iam trying to run it at 20Mhz, i have set the mikro pascal IDE to 20MHz??

What information is needet to get me going??
//
Allan (Sorry for my English.)

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#5 Post by yo2lio » 22 Feb 2009 20:05

Must work at 20 Mhz!

What library do you use ?

If program is not secret please put code here, we try to help you.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

alm7100
Posts: 85
Joined: 09 Oct 2008 11:58
Location: Denmark

#6 Post by alm7100 » 23 Feb 2009 21:09

Hi

I Use the Termal_Library

And i have fount the error, it was a bad connector stik.
//
Allan (Sorry for my English.)

Post Reply

Return to “mikroPascal General”