Change Slave sends '0' during convert prozess on all DS18B20
[owSlave2.git] / common / OWRomFunctions.s
index 41a952f..9887940 100644 (file)
@@ -165,7 +165,7 @@ hrc_jmp_flasher:
        lds r_temp,flashmarker
        cpi r_temp,2
        brne hrc_jmp_flasher_inc
-       ldi r_temp,0xE0
+       ldi r_temp,0xC0
        push r_temp
        ldi r_temp,0x0E
        push r_temp
@@ -202,6 +202,7 @@ hrc_set_alarm_search:
 hrc_fw_configinfo:
        ldi r_mode,OW_FWCONFIGINFO
        ldi r_sendflag,1
+       CRCInit2
        rjmp h_fwconfiginfo
 
 
@@ -452,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
-       ldi r_temp,0xE0
+       ldi r_temp,0xC0
        push r_temp
        ldi r_temp,0x0E
        push r_temp
@@ -470,3 +471,18 @@ owinit_botest_end:
        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