SN32F100 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 76
Version 1.9
6.5 TIMER OPERATION
The following figure shows a timer configured to reset the count and generate an interrupt on match. The
register is set to 6. At the end of the timer cycle where the
match occurs, the timer count is reset. The interrupt indicating that a match occurred is generated after the timer
reached the match value.
PCLK
CT16Bn_PC
CT16Bn_TC
TC Reset
Interrupt
2
0
1
2
0
1
2
0
4
5
6
0
The following figure shows a timer configured to stop and generate an interrupt on match.
register is
set to 2, and the
register is set to 6. After the timer reaches the match value, the CEN bit in
register is cleared, and the interrupt indicating that a match occurred is generated.
PCLK
CT16Bn_PC
CT16Bn_TC
CEN bit
Interrupt
2
0
1
2
0
4
5
6
1
0