projects
/
my-code
/
atmel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
all leds on (multiplexed!)
[my-code/atmel.git]
/
led_plex
/
timer.asm
diff --git
a/led_plex/timer.asm
b/led_plex/timer.asm
index
e371f65
..
e6b8aec
100644
(file)
--- a/
led_plex/timer.asm
+++ b/
led_plex/timer.asm
@@
-1,2
+1,18
@@
; timer functions
+TIMER0_INIT:
+
+ ; clock select
+ ldi tmp1,0x01
+ out TCCR0B,tmp1
+
+ ret
+
+TIMER0_INT_INIT:
+
+ ; overflow interrupt
+ ldi tmp1,0x02
+ out TIMSK,tmp1
+
+ ret
+