Jejej...
En el segundo post que puse escribí esto:
Hola Pablo!
La solución en C para una DS18B20 sería esta:
http://www.todopic.com.ar/foros/index.php?topic=13953.0
No se si será compatible , en cualquier caso, ya nos comentas como te ha ido.
Un saludo desde Alicante.
Y como un poco más tarde me decías que más o menos te funcionaba... daba por seguro que serían casi iguales la ds18B20 y la ds18s20 (que la diferencia radicaría en otra parte).
Bueno, mirando las características de ambas sondas tenemos que:
DS18B20 -> Thermometer resolution is user-selectable from 9 to 12 bits
DS18S20 -> 9-bit thermometer resolution
Jeje... creo que ahí radica el problema. En resumidas cuentas se puede decir que la 18B20 es mejor.
Yo tengo 4 o 5 conectadas en la misma patilla del PIC y te puedo asegurar que funcionan a la perfección (y el programa lo tengo hecho para que admita 10 sondas, lo que pasa es que nunca las he conectado de forma simultanea
).
Un saludo desde Alicante.