![Maxim Integrated MAX32660 User Manual Download Page 119](http://html1.mh-extra.com/html/maxim-integrated/max32660/max32660_user-manual_1744484119.webp)
MAX32660 User Guide
Maxim Integrated
Page 119 of 195
10.10
Gated Mode (110b)
Gated mode is like continuous mode, except that
only increments when the timer pin is in its active state.
Figure 10-6: Gated Mode Diagram
TMR_CN.TEN
TMR_CNT
0X0000_0000**
0X0000_0001*
TMR_INT.IRQ
TIMER CLOCK
TMR_CMP
* TMR_CNT AUTOMATICALLY RELOADS WITH 0X0000_0001 AT THE END OF THE TIMER PERIOD, BUT SOFTW ARE CAN WRITE ANY INITIAL VALUE TO TMR_CNT
BEFORE THE TIMER IS ENABLE D.
** THE DEFAULT VALUE OF TMR_CNT FOR THE FIRS T PE RIOD AFTER A SY STEM RE SET IS 0X0000_0000 UNLESS CHA NGED BY SOFTWARE .
TMR_CN.TPL = 1
TMR_CN.TPL = 0
TIMER PIN
(INPUT)
0X0000_0002
SOFTWARE CLEARS BIT
10.10.1
Timer Period
The timer peripheral automatically performs the following actions at the end of the timer period:
1.
is reset to 0x0000 0001. The timer remains enabled and continues incrementing.
2.
The timer interrupt bit
.irq
will be set. An interrupt will be generated if enabled.