projects
/
my-code
/
atmel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
now saving power with sleep mode :)
[my-code/atmel.git]
/
beginners
/
test_int.asm
diff --git
a/beginners/test_int.asm
b/beginners/test_int.asm
index
ba2317d
..
bb01a41
100644
(file)
--- a/
beginners/test_int.asm
+++ b/
beginners/test_int.asm
@@
-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