projects
/
my-code
/
atmel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed to only send timer values on level change (first initial checkin)
[my-code/atmel.git]
/
monolyzer
/
timer.asm
diff --git
a/monolyzer/timer.asm
b/monolyzer/timer.asm
index
861e9b9
..
2f14b69
100644
(file)
--- a/
monolyzer/timer.asm
+++ b/
monolyzer/timer.asm
@@
-1,26
+1,10
@@
; timer functions
; timer functions
-TIMER
0
_INIT:
+TIMER
1
_INIT:
- ; clock select, no prescaling
- ldi tmp1,0x01
- out TCCR0B,tmp1
-
- ret
-
-TIMER0_INT_INIT:
-
- ; overflow interrupt
+ ; clock select, prescaler 8
ldi tmp1,0x02
ldi tmp1,0x02
- out TIMSK,tmp1
-
- ret
-
-TIMER0_INT_END:
-
- ; overflow interrupt
- ldi tmp1,0x00
- out TIMSK,tmp1
+ out TCCR1B,tmp1
ret
ret