when i put tword between disable/enable i hear some dirty noise because the clock of the loop() is too slow... that's why i use to separate them. i don't know what to do...
believe that i can't put analogRead in the interrupt function because of the process cost.
[W]hen i put tword between disable/enable i hear some dirty noise because the clock of the loop() is too slow
unsigned long tword_t; // temporary variable for tuning word tword_t = pow(2,32) * dfreq / refclk; cbi (TIMSK2,TOIE2); // disble Timer2 Interrupt tword_m = tword_t; sbi (TIMSK2,TOIE2); // enable Timer2 Interrupt
Serial.println doesn't output anything, the serial monitor is scrolling but nothing appears
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16