new prescaler + debug outs
authorhackbard <hackbard@hackdaworld.org>
Sun, 31 May 2009 16:05:12 +0000 (18:05 +0200)
committerhackbard <hackbard@hackdaworld.org>
Sun, 31 May 2009 16:05:12 +0000 (18:05 +0200)
led_plex/main.asm
led_plex/port.asm
led_plex/timer.asm

index 8a03d53..b27f65f 100644 (file)
@@ -135,6 +135,9 @@ T1_OVF:
 
 T0_OVF:
 
+       ; debug output
+       cbi PORTD,3
+       
        ; shift source
        rol hc595_source
 
@@ -143,6 +146,9 @@ T0_OVF:
        ; set hc595
        rcall SET_HC595
 
+       ; debug output
+       sbi PORTD,3
+       
        reti
 
 UART_RECEIVE:
index eefa04f..7109c3c 100644 (file)
@@ -27,6 +27,12 @@ PORT_INIT:
        ; ser -> low
        cbi PORTD,6
 
+       ; port d 2 -> output (debug clk!)
+       sbi DDRD,2
+
+       ; port d 3 -> output (debug vertical!)
+       sbi DDRD,3
+
        ; release hc595 register clear
        sbi PORTB,3
 
index e6b8aec..c61967a 100644 (file)
@@ -3,7 +3,7 @@
 TIMER0_INIT:
 
        ; clock select
-       ldi tmp1,0x01
+       ldi tmp1,0x02
        out TCCR0B,tmp1
 
        ret