While debugging my code, the debugger enters if clause when the condition is matched, but enters also to the else clause.
It happens only when the line "TACCR2 = TAR + bit_time;" appears in the if clause.
WhenI change it to "TACCR2 = TAR;" the error is gone.
What is the problem? Is it only a debugger error? Or I am doing something wrong?
Please sign in to leave a comment.