![](http://datasheet.mmic.net.cn/380000/-PD784214Y_datasheet_16744924/-PD784214Y_22.png)
22
5-18
5-19
5-20
5-21
Block Diagram of P130 and P131.......................................................................................................... 135
Port Mode Register Format ................................................................................................................... 138
Pull-Up Resistor Option Register Format .............................................................................................. 140
Port Function Control Register Format .................................................................................................. 141
6-1
6-2
6-3
6-4
6-5
Block Diagram of Real-time Output Port................................................................................................ 146
Real-time Output Buffer Register Configuration .................................................................................... 147
Real-time Output Port Mode Register (RTPM) Format.......................................................................... 148
Real-time Output Port Control Register (RTPC) Format........................................................................ 149
Example of the Operation Timing of Real-time Output Port (EXTR = 0, BYTE = 0) .............................. 150
7-1
Timer/Counter Block Diagram................................................................................................................ 154
8-1
8-2
8-3
8-4
8-5
8-6
8-7
8-8
8-9
8-10
Block Diagram of 16-Bit Timer/Counter (TM0)....................................................................................... 158
Format of 16-Bit Timer Mode Control Register (TMC0) ......................................................................... 163
Format of Capture/Compare Control Register 0 (CRC0)....................................................................... 165
Format of 16-Bit Timer Output Control Register (TOC0) ....................................................................... 166
Format of Prescaler Mode Register 0 (PRM0) ...................................................................................... 167
Control Register Settings When Timer 0 Operates as Interval Timer .................................................... 168
Configuration of Interval Timer............................................................................................................... 169
Timing of Interval Timer Operation......................................................................................................... 169
Control Register Settings in PPG Output Operation .............................................................................. 170
Control Register Settings for Pulse Width Measurement with
Free Running Counter and One Capture Register ................................................................................ 171
Configuration for Pulse Width Measurement with Free Running Counter ............................................. 172
Timing of Pulse Width Measurement with Free Running Counter and One Capture Register
(with both edges specified) .................................................................................................................... 172
Control Register Settings for Measurement of Two Pulse Widths with Free Running Counter ............. 173
CR01 Capture Operation with Rising Edge Specified ........................................................................... 174
Timing of Pulse Width Measurement with Free Running Counter (with both edges specified) ............. 174
Control Register Settings for Pulse Width Measurement with Free Running Counter
and Two Capture Registers ................................................................................................................... 175
Timing of Pulse Width Measurement with Free Running Counter and Two Capture Registers
(with rising edge specified) .................................................................................................................... 176
Control Register Settings for Pulse Width Measurement by Restarting ................................................ 177
Timing of Pulse Width Measurement by Restarting (with rising edge specified) ................................... 178
Control Register Settings in External Event Counter Mode ................................................................... 179
Configuration of External Event Counter ............................................................................................... 179
Timing of External Event Counter Operation (with rising edge specified).............................................. 180
Timing of Square Wave Output Operation ............................................................................................. 181
Set Contents of Control Registers in Square Wave Output Mode ......................................................... 181
Control Register Settings for One-Shot Pulse Output with Software Trigger......................................... 183
Timing of One-Shot Pulse Output Operation with Software Trigger ...................................................... 184
8-11
8-12
8-13
8-14
8-15
8-16
8-17
8-18
8-19
8-20
8-21
8-22
8-24
8-23
8-25
8-26
LIST OF FIGURES (2/8)
Figure No.
Title
Page