Temperature reading failure

23 Apr 2010

Hi, I'm using the OneWireCRC program for my DS18S20, and nothing works. I changed the pin number and #define for my device and readings I get are really abnormal. Device surely works - I checked it with OneWireViewer so what's wrong ? Here's my terminal output :

 

read = 0 ff 4b 46 ff ff c 10 17
TEMP_READ: -128.000000
Temperature: -128.000000
read = 10 ff 4b 46 ff ff a 10 e9
TEMP_READ: -120.000000
Temperature: -119.875000
read = ff 0 4b 46 ff ff 3 10 d4
TEMP_READ: 127.500000
Temperature: 128.062500
read = c9 0 4b 46 ff ff 7 10 80
TEMP_READ: 100.500000
Temperature: 100.812500
read = 0 ff 4b 46 ff ff e 10 86
TEMP_READ: -128.000000
Temperature: -128.125000
read = f0 0 4b 46 ff ff c 10 36
TEMP_READ: 120.000000
Temperature: 120.000000
read = fe 0 4b 46 ff ff e 10 1e
TEMP_READ: 127.000000
Temperature: 126.875000
read = ee 0 4b 46 ff ff 9 1read = 9f 0 4b 46 ff ff 8 10 16
TEMP_READ: 79.500000
Temperature: 79.750000
read = d5 0 4b 46 ff ff 3 10 d0
TEMP_READ: 106.500000
Temperature: 107.062500

23 Apr 2010

Have you looked at a previous thread on a One Wire Driver.  If  not see:

http://mbed.org/forum/mbed/topic/101/?page=1#comment-356

 

Howard