NEC PD78214 User Manual
Page 22

- xi -
Contents
7-62
Timing of Pulse Width Measurement .........................................................................................156
7-63
Setting of Control Registers for Pulse Width Measurement ...................................................157
7-64
Setting Procedure for Pulse Width Measurement ....................................................................158
7-65
Interrupt Request Handling for Pulse Width Calculation .........................................................158
7-66
Block Diagram of 8-Bit Timer/Counter 2 ....................................................................................162
7-67
Format of Timer Control Register 1 (TMC1) ..............................................................................163
7-68
Format of Prescaler Mode Register 1 (PRM1) ...........................................................................164
7-69
Format of Capture/Compare Control Register 2 (CRC2) ..........................................................165
7-70
Format of Timer Output Control Register (TOC) .......................................................................166
7-71
Basic Operation of 8-Bit Timer 2 (TM2) ......................................................................................167
7-72
TM2 Cleared by a Coincidence with Compare Register (CR21) .............................................. 168
7-73
TM2 Cleared After Capture Operation ........................................................................................168
7-74
Clear Operation When the CE2 Bit Is Reset to 0 .......................................................................169
7-75
External Event Count Timing of 8-Bit Timer/Counter 2 ...........................................................171
7-76
Interrupt Request Generation Using External Event Counter .................................................172
7-77
Example Where Input of No Valid Edge Cannot Be Distinguished from Input of
Only One Valid Edge with External Event Counter .................................................................173
7-78
How to Distinguish Input of No Valid Edge from Input of Only One Valid Edge
with External Event Counter ........................................................................................................173
7-79
One-Shot Timer Operation ...........................................................................................................175
7-80
Compare Operation .......................................................................................................................176
7-81
TM2 Cleared After a Coincidence Is Detected ...........................................................................177
7-82
Capture Operation .........................................................................................................................178
7-83
TM2 Cleared After Capture Operation ........................................................................................179
7-84
Toggle Output Operation .............................................................................................................181
7-85
PWM Pulse Output ........................................................................................................................182
7-86
Example of PWM Output Using TM2 .........................................................................................183
7-87
PWM Output When CR20 = FFH ..................................................................................................184
7-88
Example of Rewriting a Compare Register ................................................................................184
7-89
Example of PWM Output Signal with a 100% Duty Factor ......................................................185
7-90
Example of PPG Output Using TM2 ...........................................................................................186
7-91
PPG Output When CR20 = CR21 ..................................................................................................187
7-92
PPG Output When CR20 = 00H ....................................................................................................187
7-93
Example of Rewriting Compare Register CR20 .........................................................................188
7-94
Example of PPG Output Signal with a 100% Duty Factor ........................................................188
7-95
Example of PPG Output Period Made Longer ...........................................................................189
7-96
Timing of Interval Timer Operation (1) ......................................................................................190
7-97
Setting of Control Registers for Interval Timer Operation (1) ................................................ 191
7-98
Setting Procedure for Interval Timer Operation (1) ..................................................................191
7-99
Interrupt Request Handling for Interval Timer Operation (1) .................................................. 192
7-100
Timing of Interval Timer Operation (2) ......................................................................................192
7-101
Setting of Control Registers for Interval Timer Operation (2) ................................................ 193
7-102
Setting Procedure for Interval Timer Operation (2) ..................................................................194
7-103
Timing of Pulse Width Measurement .........................................................................................195
7-104
Setting of Control Registers for Pulse Width Measurement ...................................................195
7-105
Setting Procedure for Pulse Width Measurement ....................................................................196
Fig. No.
Title, Page