]> hackdaworld.org Git - my-code/atmel.git/blobdiff - beginners/test_int.asm
added thermo app
[my-code/atmel.git] / beginners / test_int.asm
index ba2317d0cdf11acf7ad03e36d70ddfac8f4e9199..7c00fac537e341ef43d625b05e2a46d4a37bc944 100644 (file)
@@ -93,6 +93,11 @@ out TIMSK, r16
 ; global interrupts enable
 sei
 
+; allow sleep mode
+ldi r16, (1<<SE)
+out MCUCR, r16
+
 ; main loop
 MAIN:
+sleep
 rjmp MAIN