10
μPD780948, μPD78F0948, μPD780949, μPD78F0949
5.3
5.4
Port Function Control Registers ........................................................................................
Port Function Operations ...................................................................................................
5.4.1
Writing to input/output port....................................................................................
5.4.2
Reading to input/output port..................................................................................
102
107
107
107
Chapter 6 Clock Generator .............................................................................................................
109
6.1
6.2
6.3
6.4
Clock Generator Functions.................................................................................................
Clock Generator Configuration ..........................................................................................
Clock Generator Control Register......................................................................................
System Clock Oscillator......................................................................................................
6.4.1
Main system clock oscillator ..................................................................................
6.4.2
Subsystem clock oscillator ....................................................................................
6.4.3
When no subsystem clocks are used ....................................................................
Clock Generator Operations...............................................................................................
6.5.1
Main system clock operations................................................................................
6.5.2
Subsystem clock operations ..................................................................................
Changing System Clock and CPU Clock Settings ............................................................
6.6.1
Time required for switchover between system clock and CPU clock..................
6.6.2
System clock and CPU clock switching procedure ..............................................
109
110
111
112
112
113
115
116
117
118
119
119
120
6.5
6.6
Chapter 7 16-Bit Timer/Event Counter ...........................................................................................
122
7.1
7.2
7.3
7.4
16-Bit Timer/Event Counter Function ................................................................................
16-Bit Timer/Event Counter Configuration ........................................................................
16-Bit Timer/Event Counter Control Register....................................................................
16-Bit Timer/Event Counter Operations.............................................................................
7.4.1
Operation as interval timer (16 bits) ......................................................................
7.4.2
PPG output operation .............................................................................................
7.4.3
Pulse width measurement ......................................................................................
7.4.4
Operation as external event counter .....................................................................
7.4.5
Operation to output square wave ..........................................................................
7.4.6
Operation to output one-shot pulse ......................................................................
16-Bit Timer/Event Counter Operating Precautions .........................................................
122
123
127
134
134
136
137
144
146
148
153
7.5
Chapter 8 16-Bit Timer 2 TM2 .........................................................................................................
157
8.1
8.2
8.3
8.4
16-Bit Timer 2 Functions.....................................................................................................
16-Bit Timer 2 Configuration ..............................................................................................
16-Bit Timer 2 Control Registers ........................................................................................
16-Bit Timer 2 Operations ................................................................................................... 162
8.4.1
Pulse width measurement operations ...................................................................
16-Bit Timer 2 Precautions .................................................................................................
157
158
159
162
165
8.5