Chapter 2 Peripheral Functions Usage ________________________
2.1 Protect ........................................................................................................................................178
2.1.1 Overview..............................................................................................................................178
2.1.2 Protect Operation.................................................................................................................178
2.2 Timer A .......................................................................................................................................180
2.2.1 Overview..............................................................................................................................180
2.2.2 Operation of Timer A (timer mode) ......................................................................................186
2.2.3 Operation of Timer A (timer mode, gate function selected) .................................................188
2.2.4 Operation of Timer A (timer mode, pulse output function selected) ....................................190
2.2.5 Operation of Timer A (event counter mode, reload type selected) ......................................192
2.2.6 Operation of Timer A (event counter mode, free run type selected)....................................194
2.2.7 Operation of timer A (2-phase pulse signal process in event counter mode, normal mode se-
lected) ..................................................................................................................................196
2.2.8 Operation of timer A (2-phase pulse signal process in event counter mode, multiply-by-4 mode
selected) ..............................................................................................................................198
2.2.9 Operation of Timer A (one-shot timer mode) .......................................................................200
2.2.10 Operation of Timer A (one-shot timer mode, external trigger selected).............................202
2.2.11 Operation of Timer A (pulse width modulation mode, 16-bit PWM mode selected) ..........204
2.2.12 Operation of Timer A (pulse width modulation mode, 8-bit PWM mode selected) ............206
2.2.13 Precautions for Timer A (timer mode)................................................................................208
2.2.14 Precautions for Timer A (event counter mode)..................................................................209
2.2.15 Precautions for Timer A (one-shot timer mode).................................................................210
2.2.16 Precautions for Timer A (pulse width modulation mode) ...................................................211
2.3 Timer B .......................................................................................................................................212
2.3.1 Overview..............................................................................................................................212
2.3.2 Operation of Timer B (timer mode) ......................................................................................216
2.3.3 Operation of Timer B (event counter mode) ........................................................................218
2.3.4 Operation of Timer B (pulse period measurement mode) ...................................................220
2.3.5 Operation of Timer B (pulse width measurement mode) .....................................................222
2.3.6 Precautions for Timer B (timer mode, event counter mode)................................................224
2.3.7 Precautions for Timer B (pulse period/pulse width measurement mode) ...........................225
2.4 Clock-Synchronous Serial I/O.....................................................................................................226
2.4.1 Overview..............................................................................................................................226
2.4.2 Operation of Serial I/O (transmission in clock-synchronous serial I/O mode) .....................232
2.4.3 Operation of the Serial I/O (transmission in clock-synchronous serial I/O mode, transfer clock