Rename Files of different Devices
[owSlave2.git] / common / OWSet_ATTINYX5.s
index 4c4528f..159d151 100644 (file)
 
 #else
 
-#define OWT_MIN_RESET 120 
-#define OWT_RESET2 60
+#define OWT_MIN_RESET 140
+#define OWT_RESET2 80
 #define OWT_RESET_PRESENT 30
 #define OWT_PRESENT 130
-//#define OWT_WRITE 35
-//#define OWT_READ 12
 #define OWT_WRITE 35
 #define OWT_READ 12
 
 #endif
 
 
+.macro CLEAR_TOV_FLAG
+       ldi r_temp,(1<<TOV0)
+       out _SFR_IO_ADDR(TIFR),r_temp
+.endm
+
+.macro JMP_NO_TOV
+       in r_temp, _SFR_IO_ADDR(TIFR)
+       sbrc r_temp,TOV0 ; wenn ueberlauf gleiich weiter
+.endm
 
 .macro CLEAR_INTERRUPT_FLAG 
        ldi r_temp,(1<<INTF0);inerrupt flags durch 1 loeschen..... 0 macht nix
 .endm
 
 
+.macro SET_FALLING_RESET_SLEEP
+       in r_temp,_SFR_IO_ADDR(MCUCR)
+       ori r_temp,(1<<ISC01)
+       andi r_temp,~(1<<SM1)
+       out     _SFR_IO_ADDR(MCUCR),r_temp
+.endm
 
 
 .macro HW_INIT