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
c9ef074
..
2f14b69
100644
(file)
--- a/
monolyzer/timer.asm
+++ b/
monolyzer/timer.asm
@@
-1,18
+1,10
@@
; 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
- out T
IMSK
,tmp1
+ out T
CCR1B
,tmp1
ret