u08 read_message(void){#ifdef UART_TX_ASYNC cbi(UCSRB, UDRIE); // disable UDR Empty Interrupt#endif cbi(TIMSK, TOIE1); // disable timer1 interrupt u08 i, Id[3], T = 0, Parity_Message; timer0_source(CK8); //was CK64 timer0_start(); while (INPUT_IS_SET) { T = inp(TCNT0); if (T >= 200) //was 50 { PRINT("timer200exit"); goto err_exit; // 200us max wait time } } if (T<100) // was 25 { PRINT("timer<100exit"); // <------ Crashed here every cycle goto err_exit; }
TinyPortal v1.0.5 beta 1© Bloc