Is this the way to let timer1 start counting.
TCNT1=1; //start timer1
Is this the way to let timer1 start counting.
TCNT1=1; //start timer1
No, that just sets the counter to 1. It doesn't start anything.
Thanks!!
Sorry for another question.
Can i use INT0 instead of T1 and How?
heixin:
Can i use INT0 instead of T1 and How?
Not sure I understand the question. INT0 is an external interrupt pin not related to a timer. There is an input capture facility for the Timers where an external pin can act as a clock source, but that’s unrelated to INT0.