]> hackdaworld.org Git - my-code/atmel.git/commitdiff
now saving power with sleep mode :)
authorhackbard <hackbard>
Mon, 8 Dec 2003 17:25:55 +0000 (17:25 +0000)
committerhackbard <hackbard>
Mon, 8 Dec 2003 17:25:55 +0000 (17:25 +0000)
beginners/test_int.asm

index ba2317d0cdf11acf7ad03e36d70ddfac8f4e9199..bb01a4129922d19813c5071abbe31231aec3115f 100644 (file)
@@ -90,9 +90,14 @@ out TCCR1B, r16
 ldi r16, (1<<TOIE1)
 out TIMSK, r16
 
+; allow sleep mode
+ldi r16, (1<<SE)
+out MCUCR, r16
+
 ; global interrupts enable
 sei
 
 ; main loop
 MAIN:
+sleep
 rjmp MAIN