projects
/
my-code
/
atmel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
init of monolyzer project
[my-code/atmel.git]
/
monolyzer
/
timer.asm
diff --git a/monolyzer/timer.asm
b/monolyzer/timer.asm
new file mode 100644
(file)
index 0000000..
c9ef074
--- /dev/null
+++ b/
monolyzer/timer.asm
@@ -0,0
+1,18
@@
+; timer functions
+
+TIMER0_INIT:
+
+ ; clock select, no prescaling
+ ldi tmp1,0x01
+ out TCCR0B,tmp1
+
+ ret
+
+TIMER0_INT_INIT:
+
+ ; overflow interrupt
+ ldi tmp1,0x02
+ out TIMSK,tmp1
+
+ ret
+