|
Re: quick question: TIMERS
Quote:
|
Originally Posted by Astronouth7303
Initialize_Timer_X, And you have to modify the line that reads: TxCONbits.TMRxON = 0; to TxCONbits.TMRxON = 1;, else the timer won't go.
|
this is what im talking about. just set TxCONbits.TMRxON = 1 when you want it to start, and TxCONbits.TMRxON = 0 when you want it to stop. if you put this line outside of the while(auton) loop (before and after respectivly), it will work perfectly
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
|