From 526d5b3d4f0d6356baec290a9e9ce1fb945ebe6a Mon Sep 17 00:00:00 2001 From: hackbard Date: Mon, 15 Jan 2007 23:32:17 +0000 Subject: [PATCH] somehow t1_overflow is not executed properly ... --- thermo/thermo.asm | 169 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 129 insertions(+), 40 deletions(-) diff --git a/thermo/thermo.asm b/thermo/thermo.asm index a66a491..3794546 100644 --- a/thermo/thermo.asm +++ b/thermo/thermo.asm @@ -21,13 +21,13 @@ reti reti ; T1 CAPT1 -rjmp T1_CAPTURE +reti ; T1 COMP A reti ; T1 OVF1 -reti +rjmp T1_OVERFLOW ; T0 OVF0 reti @@ -42,7 +42,7 @@ reti reti ; ANA COMP -reti +rjmp ANA_COMP ; PCINT reti @@ -85,60 +85,147 @@ INIT: ; uart init UART_INIT: - ldi r16,51 ; 9600 bps @ 8mhz + ldi r16,51 ; 9k6 bps @ 8mhz out UBRRL, r16 out UBRRH, r0 - ldi r16,(1<