![](http://datasheet.mmic.net.cn/110000/M30201F6-SP_datasheet_3496102/M30201F6-SP_7.png)
Chapter 2 Peripheral Functions Usage ________________________
2.1 Protect ........................................................................................................................................172
2.1.1 Overview .............................................................................................................................. 172
2.1.2 Protect Operation ................................................................................................................. 172
2.1.3 Precaution for Protect .......................................................................................................... 173
2.2 Timer A ....................................................................................................................................... 174
2.2.1 Overview .............................................................................................................................. 174
2.2.2 Operation of Timer A (timer mode) ...................................................................................... 180
2.2.3 Operation of Timer A (timer mode, gate function selected) ................................................. 182
2.2.4 Operation of Timer A (timer mode, pulse output function selected) .................................... 184
2.2.5 Operation of Timer A (event counter mode, reload type selected) ...................................... 186
2.2.6 Operation of Timer A (event counter mode, free run type selected) .................................... 188
2.2.7 Operation of timer A (2-phase pulse signal process in event counter mod normal mode se-
lected) .................................................................................................................................. 190
2.2.8 Operation of timer A (2-phase pulse signal process in event counter mode,multiply-by-4 mode
selected) .............................................................................................................................. 192
2.2.9 Operation of Timer A (one-shot timer mode) ....................................................................... 194
2.2.10 Operation of Timer A (one-shot timer mode, external trigger selected) ............................. 196
2.2.11 Operation of Timer A (pulse width modulation mode, 16-bit PWM mode selected) .......... 198
2.2.12 Operation of Timer A (pulse width modulation mode, 8-bit PWM mode selected) ............ 200
2.2.13 Precautions for Timer A (timer mode) ................................................................................ 202
2.2.14 Precautions for Timer A (event counter mode) .................................................................. 203
2.2.15 Precautions for Timer A (one-shot timer mode) ................................................................. 204
2.2.16 Precautions for Timer A (pulse width modulation mode) ................................................... 205
2.3 Timer B ....................................................................................................................................... 206
2.3.1 Overview .............................................................................................................................. 206
2.3.2 Operation of Timer B (timer mode) ...................................................................................... 210
2.3.3 Operation of Timer B (event counter mode) ........................................................................ 212
2.3.4 Operation of Timer B (pulse period measurement mode) ................................................... 214
2.3.5 Operation of Timer B (pulse width measurement mode) ..................................................... 216
2.3.6 Precautions for Timer B (timer mode, event counter mode) ................................................ 218
2.3.7 Precautions for Timer B (pulse period/pulse width measurement mode) ........................... 219
2.4 Timer X ....................................................................................................................................... 220
2.4.1 Overview .............................................................................................................................. 220
2.4.2 Operation of Timer X (timer mode) ...................................................................................... 224