all leds on (multiplexed!)
[my-code/atmel.git] / led_plex / timer.asm
index e371f65..e6b8aec 100644 (file)
@@ -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
+