DQ_HIZ ; This routine forces the DQ Line to an Input / High Impedance state
bsf STATUS,RP0 ; Bank 1
[COLOR="red"] bsf TRISA,4 ; Make Pin 3 an input, Pullup resistor forces line to logic 1, unless DS18B20 pulls it low[/COLOR]
[COLOR="red"]bcf STATUS,RP0 ; Bank 0[/COLOR]
return
DQ_LL ; This routine forces the DQ Line to Logic Low
bcf PORTA,4 ; Clear output latch
bsf STATUS,RP0 ; Bank 1
[COLOR="red"] bcf TRISA,4 ; Make Pin 3 an output
bcf STATUS,RP0 ; Bank 0[/COLOR]
return