diff options
Diffstat (limited to 'software/ihu/temp.inc')
-rw-r--r-- | software/ihu/temp.inc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/software/ihu/temp.inc b/software/ihu/temp.inc index f0ec683..6c9504d 100644 --- a/software/ihu/temp.inc +++ b/software/ihu/temp.inc @@ -45,13 +45,13 @@ TEMP_CMD_L_CNT EQU H'41' ;; ------------------------------------- owire_presence bsf STATUS,RP0 - bcf TRISA,OWIRE + bcf OWIRE movlw .161 movwf OWIRE_CNT owire_presence_loop decfsz OWIRE_CNT,f goto owire_presence_loop - bsf TRISA,OWIRE + bsf OWIRE bcf STATUS,RP0 movlw .21 movwf OWIRE_CNT @@ -71,9 +71,9 @@ owire_response_loop ;; ------------------------------------- owire_write1 bsf STATUS,RP0 - bcf TRISA,OWIRE + bcf OWIRE nop - bsf TRISA,OWIRE + bsf OWIRE bcf STATUS,RP0 movlw .20 movwf OWIRE_CNT @@ -85,13 +85,13 @@ owire_write1_loop ;; ------------------------------------- owire_write0 bsf STATUS,RP0 - bcf TRISA,OWIRE + bcf OWIRE movlw .21 movwf OWIRE_CNT owire_write0_loop decfsz OWIRE_CNT,f goto owire_write0_loop - bsf TRISA,OWIRE + bsf OWIRE bcf STATUS,RP0 return @@ -113,14 +113,14 @@ owire_write_loop ;; ------------------------------------- owire_readbit bsf STATUS,RP0 - bcf TRISA,OWIRE + bcf OWIRE nop - bsf TRISA,OWIRE + bsf OWIRE bcf STATUS,RP0 nop - btfss PORTA,OWIRE + btfss OWIRE bcf OWIRE_BYTE,7 - btfsc PORTA,OWIRE + btfsc OWIRE bsf OWIRE_BYTE,7 movlw .17 movwf OWIRE_CNT @@ -161,7 +161,7 @@ temp_init_error ;; ------------------------------------- temp_read_value - bcf PORTA,OWIRE + bcf OWIRE call owire_presence btfsc OWIRE_BYTE,0 goto temp_read_value_error |