#include #include #include #include "uart.h" uint8_t t0_ovf_cnt = 0; uint8_t pb0_thresh = 128; ISR(TIMER0_OVF_vect) { cli(); /*TCNT0 = (1<<7);*/ /* Hack-increase Interrupt trigger freq */ t0_ovf_cnt ++; if ( t0_ovf_cnt >= pb0_thresh ) PORTB &= ~(1<