]> hackdaworld.org Git - my-code/atmel.git/commitdiff
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 8a03d53ee219358e90b4fac8de1d3f69ba3a2a68..b27f65ffef75ef487e4f37f33ec5c951209a28b3 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 eefa04fcccbf0c04d653c8b7feb0be3b0a040666..7109c3c08a14e4aa1bb44bed12dcf7ed43656b23 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 e6b8aec8ca8f7601f7aeaf98b38e1751c82b56d1..c61967a51b728c12b4378c43b506ea1bdf39041f 100644 (file)
@@ -3,7 +3,7 @@
 TIMER0_INIT:
 
        ; clock select
-       ldi tmp1,0x01
+       ldi tmp1,0x02
        out TCCR0B,tmp1
 
        ret