At 12:20 16/05/97 +0000, Antonio Almeida wrote: >The ISR will work like a debounce routine and then outputs the value that >will be read by the UART (i think this is easier them doing that by >software). I'd try to "debounce" the comparator output properly in hardware (right switching point, right hysteresis), then you should be able to go directly into the UART.