From: hackbard Date: Sun, 31 May 2009 16:05:12 +0000 (+0200) Subject: new prescaler + debug outs X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ae3689334b273952e70ebbde465caa68fd14efd;p=my-code%2Fatmel.git new prescaler + debug outs --- diff --git a/led_plex/main.asm b/led_plex/main.asm index 8a03d53..b27f65f 100644 --- a/led_plex/main.asm +++ b/led_plex/main.asm @@ -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: diff --git a/led_plex/port.asm b/led_plex/port.asm index eefa04f..7109c3c 100644 --- a/led_plex/port.asm +++ b/led_plex/port.asm @@ -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 diff --git a/led_plex/timer.asm b/led_plex/timer.asm index e6b8aec..c61967a 100644 --- a/led_plex/timer.asm +++ b/led_plex/timer.asm @@ -3,7 +3,7 @@ TIMER0_INIT: ; clock select - ldi tmp1,0x01 + ldi tmp1,0x02 out TCCR0B,tmp1 ret