tm3d
/
owSlave2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change Slave sends '0' during convert prozess on all DS18B20
[owSlave2.git]
/
common
/
OWRomFunctions.s
diff --git
a/common/OWRomFunctions.s
b/common/OWRomFunctions.s
index
aa7891d
..
9887940
100644
(file)
--- a/
common/OWRomFunctions.s
+++ b/
common/OWRomFunctions.s
@@
-165,7
+165,7
@@
hrc_jmp_flasher:
lds r_temp,flashmarker
cpi r_temp,2
brne hrc_jmp_flasher_inc
lds r_temp,flashmarker
cpi r_temp,2
brne hrc_jmp_flasher_inc
- ldi r_temp,0x
E
0
+ ldi r_temp,0x
C
0
push r_temp
ldi r_temp,0x0E
push r_temp
push r_temp
ldi r_temp,0x0E
push r_temp
@@
-453,7
+453,7
@@
OWINIT:
sbic _SFR_IO_ADDR(PINA),PINA5
rjmp owinit_botest_end ;PINA5 nicht 0.... nicht verbunden
cbi _SFR_IO_ADDR(DDRA),PINA4
sbic _SFR_IO_ADDR(PINA),PINA5
rjmp owinit_botest_end ;PINA5 nicht 0.... nicht verbunden
cbi _SFR_IO_ADDR(DDRA),PINA4
- ldi r_temp,0x
E
0
+ ldi r_temp,0x
C
0
push r_temp
ldi r_temp,0x0E
push r_temp
push r_temp
ldi r_temp,0x0E
push r_temp
@@
-471,3
+471,18
@@
owinit_botest_end:
sts alarmflag,r_temp
RESETZEROMARKER
ret
sts alarmflag,r_temp
RESETZEROMARKER
ret
+
+
+.global EXTERN_SLEEP
+EXTERN_SLEEP:
+ cli
+ push r_temp
+ ldi r_temp,0
+ sts mode,r_temp ;SLEEP
+ sts gcontrol,r_temp
+ sts sendflag,r_temp
+ sts bcount,r_temp
+ RESETZEROMARKER
+ pop r_temp
+ sei
+ ret
\ No newline at end of file