summaryrefslogtreecommitdiff
path: root/software/ihu/temp.inc
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2012-06-07 17:34:39 +0000
committerChristian Pointner <equinox@mur.at>2012-06-07 17:34:39 +0000
commit06c643e22a9c5c6d5e8b4139403f2d25700c0f67 (patch)
treecfa620bfb520071d2863f534954ddc164942bcb4 /software/ihu/temp.inc
parentbetter Port Pin definitions (diff)
improved hardware definitions
git-svn-id: https://svn.spreadspace.org/mur.sat@510 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/ihu/temp.inc')
-rw-r--r--software/ihu/temp.inc22
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