Resetting the Timers and Enabling Counting: GO and HLD
12-7
Timers
12.3 Resetting the Timers and Enabling Counting: GO and HLD
Table 12–3 shows how the GO and HLD enable basic features of timer operation.
Table 12–3. Timer GO and HLD Field Operation
Operation
GO
HLD
Description
Holding the timer
0
0
Counting is disabled.
Restarting the timer after
hold
0
1
Timer continues from the value before hold. The timer
counter is
not reset.
Reserved
1
0
Undefined
Starting the timer
1
1
Timer counter resets to 0 and starts counting whenever
enabled. Once set, GO self-clears.
Configuring a timer requires three basic steps:
1) If the timer is not currently in the hold state, place the timer in hold (HLD
= 0). Note that after device reset, the timer is already in the hold state.
2) Write the desired value to the timer period register.
3) Start the timer by setting the GO and HLD bits of the timer control register
to 1 and simultaneously writing the desired values to the timer control
register.