projects
/
my-code
/
atmel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3350913
)
now saving power with sleep mode :)
author
hackbard
<hackbard>
Mon, 8 Dec 2003 17:25:55 +0000
(17:25 +0000)
committer
hackbard
<hackbard>
Mon, 8 Dec 2003 17:25:55 +0000
(17:25 +0000)
beginners/test_int.asm
patch
|
blob
|
history
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