UPD78F0138 NEC, UPD78F0138 Datasheet - Page 12

no-image

UPD78F0138

Manufacturer Part Number
UPD78F0138
Description
(UPD78xxxx) 8-Bit Single-Chip Microcontrollers
Manufacturer
NEC
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F0138M1GK-9ET
Manufacturer:
NEC
Quantity:
115
Part Number:
UPD78F0138M5GB
Manufacturer:
NEC
Quantity:
20 000
CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01......................................................... 144
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51........................................................... 187
CHAPTER 8 8-BIT TIMERS H0 AND H1 .......................................................................................... 205
12
5.5
5.6
5.7
5.8
6.1
6.2
6.3
6.4
6.5
7.1
7.2
7.3
7.4
7.5
8.1
8.2
8.3
8.4
5.4.1
5.4.2
5.4.3
5.4.4
5.4.5
Clock Generator Operation ..................................................................................................... 130
Time Required to Switch Between Ring-OSC Clock and X1 Input Clock........................... 137
Time Required for CPU Clock Switchover............................................................................. 138
Clock Switching Flowchart and Register Setting ................................................................. 139
5.8.1
5.8.2
5.8.3
5.8.4
5.8.5
Functions of 16-Bit Timer/Event Counters 00 and 01........................................................... 144
Configuration of 16-Bit Timer/Event Counters 00 and 01 .................................................... 145
Registers Controlling 16-Bit Timer/Event Counters 00 and 01 ........................................... 150
Operation of 16-Bit Timer/Event Counters 00 and 01........................................................... 160
6.4.1
6.4.2
6.4.3
6.4.4
6.4.5
6.4.6
Cautions for 16-Bit Timer/Event Counters 00 and 01 ........................................................... 184
Functions of 8-Bit Timer/Event Counters 50 and 51............................................................. 187
Configuration of 8-Bit Timer/Event Counters 50 and 51 ...................................................... 189
Registers Controlling 8-Bit Timer/Event Counters 50 and 51 ............................................. 191
Operations of 8-Bit Timer/Event Counters 50 and 51........................................................... 196
7.4.1
7.4.2
7.4.3
7.4.4
Cautions for 8-Bit Timer/Event Counters 50 and 51 ............................................................. 204
Functions of 8-Bit Timers H0 and H1 ..................................................................................... 205
Configuration of 8-Bit Timers H0 and H1............................................................................... 205
Registers Controlling 8-Bit Timers H0 and H1 ...................................................................... 209
Operation of 8-Bit Timers H0 and H1 ..................................................................................... 214
8.4.1
X1 oscillator ..................................................................................................................................126
Subsystem clock oscillator............................................................................................................126
When subsystem clock is not used...............................................................................................129
Ring-OSC oscillator ......................................................................................................................129
Prescaler.......................................................................................................................................129
Switching from Ring-OSC clock to X1 input clock.........................................................................139
Switching from X1 input clock to Ring-OSC clock.........................................................................140
Switching from X1 input clock to subsystem clock........................................................................141
Switching from subsystem clock to X1 input clock........................................................................142
Register settings ...........................................................................................................................143
Interval timer operation .................................................................................................................160
PPG output operations .................................................................................................................163
Pulse width measurement operations ...........................................................................................166
External event counter operation ..................................................................................................174
Square-wave output operation......................................................................................................177
One-shot pulse output operation...................................................................................................179
Operation as interval timer............................................................................................................196
Operation as external event counter .............................................................................................198
Square-wave output operation......................................................................................................199
PWM output operation ..................................................................................................................200
Operation as interval timer/square-wave output ...........................................................................214
User’s Manual U16228EJ2V0UD

Related parts for UPD78F0138