![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD70F3714GC-8BS-A_datasheet_99849/UPD70F3714GC-8BS-A_11.png)
User’s Manual U17716EJ2V0UD
9
4.7.2
Cautions on bit manipulation instruction for port n register (Pn) ................................................. 120
CHAPTER 5 CLOCK GENERATOR .....................................................................................................121
5.1
Overview ..................................................................................................................................121
5.2
Configuration ..........................................................................................................................122
5.3
Control Registers....................................................................................................................124
5.4
PLL Function ...........................................................................................................................130
5.4.1
Overview..................................................................................................................................... 130
5.4.2
PLL mode ................................................................................................................................... 130
5.4.3
Clock-through mode ................................................................................................................... 130
5.5
Operation .................................................................................................................................131
5.5.1
Operation of each clock .............................................................................................................. 131
5.5.2
Operation timing ......................................................................................................................... 132
5.6
Clock Monitor ..........................................................................................................................135
CHAPTER 6 16-BIT TIMER/EVENT COUNTER P (TMP) .................................................................137
6.1
Overview ..................................................................................................................................137
6.2
Functions .................................................................................................................................137
6.3
Configuration ..........................................................................................................................138
6.4
Registers..................................................................................................................................143
6.5
Timer Output Operations .......................................................................................................156
6.6
Operation .................................................................................................................................157
6.6.1
Interval timer mode (TPnMD2 to TPnMD0 bits = 000)................................................................ 165
6.6.2
External event count mode (TPkMD2 to TPkMD0 bits = 001) .................................................... 177
6.6.3
External trigger pulse output mode (TPmMD2 to TPmMD0 bits = 010)...................................... 186
6.6.4
One-shot pulse output mode (TPmMD2 to TPmMD0 bits = 011) ............................................... 199
6.6.5
PWM output mode (TPmMD2 to TPmMD0 bits = 100)............................................................... 206
6.6.6
Free-running timer mode (TPnMD2 to TPnMD0 bits = 101) ....................................................... 215
6.6.7
Pulse width measurement mode (TPkMD2 to TPkMD0 bits = 110)............................................ 232
CHAPTER 7 16-BIT TIMER/EVENT COUNTER Q (TMQ) ................................................................238
7.1
Overview ..................................................................................................................................238
7.2
Functions .................................................................................................................................239
7.3
Configuration ..........................................................................................................................239
7.4
Registers..................................................................................................................................244
7.5
Timer Output Operations .......................................................................................................260
7.6
Operation .................................................................................................................................261
7.6.1
Interval timer mode (TQnMD2 to TQnMD0 bits = 000) ............................................................... 269
7.6.2
External event count mode (TQ0MD2 to TQ0MD0 bits = 001) ................................................... 281
7.6.3
External trigger pulse output mode (TQ0MD2 to TQ0MD0 bits = 010) ....................................... 291
7.6.4
One-shot pulse output mode (TQ0MD2 to TQ0MD0 bits = 011)................................................. 305
7.6.5
PWM output mode (TQ0MD2 to TQ0MD0 bits = 100) ................................................................ 314
7.6.6
Free-running timer mode (TQnMD2 to TQnMD0 bits = 101) ...................................................... 325
7.6.7
Pulse width measurement mode (TQ0MD2 to TQ0MD0 bits = 110)........................................... 345
CHAPTER 8 16-BIT INTERVAL TIMER M (TMM).............................................................................351
8.1
Overview ..................................................................................................................................351