![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1146AF1-AN1-A_datasheet_99855/UPD78F1146AF1-AN1-A_13.png)
User’s Manual U17854EJ9V0UD
11
CHAPTER 7 REAL-TIME COUNTER .................................................................................................. 261
7.1 Functions of Real-Time Counter............................................................................................... 261
7.2 Configuration of Real-Time Counter ........................................................................................ 261
7.3 Registers Controlling Real-Time Counter ............................................................................... 263
7.4 Real-Time Counter Operation ................................................................................................... 278
7.4.1 Starting operation of real-time counter ............................................................................................278
7.4.2 Shifting to STOP mode after starting operation...............................................................................279
7.4.3 Reading/writing real-time counter ...................................................................................................280
7.4.4 Setting alarm of real-time counter ...................................................................................................282
7.4.5 1 Hz output of real-time counter......................................................................................................283
7.4.6 32.768 kHz output of real-time counter ...........................................................................................283
7.4.7 512 Hz, 16.384 kHz output of real-time counter..............................................................................283
7.4.8 Example of watch error correction of real-time counter...................................................................284
CHAPTER 8 WATCHDOG TIMER ....................................................................................................... 289
8.1 Functions of Watchdog Timer .................................................................................................. 289
8.2 Configuration of Watchdog Timer ............................................................................................ 290
8.3 Register Controlling Watchdog Timer ..................................................................................... 291
8.4 Operation of Watchdog Timer................................................................................................... 292
8.4.1 Controlling operation of watchdog timer..........................................................................................292
8.4.2 Setting overflow time of watchdog timer .........................................................................................293
8.4.3 Setting window open period of watchdog timer...............................................................................294
8.4.4 Setting watchdog timer interval interrupt .........................................................................................295
CHAPTER 9 CLOCK OUTPUT/BUZZER OUTPUT CONTROLLER................................................. 296
9.1 Functions of Clock Output/Buzzer Output Controller ............................................................ 296
9.2 Configuration of Clock Output/Buzzer Output Controller ..................................................... 297
9.3 Registers Controlling Clock Output/Buzzer Output Controller............................................. 297
9.4 Operations of Clock Output/Buzzer Output Controller .......................................................... 299
9.4.1 Operation as output pin...................................................................................................................299
CHAPTER 10 A/D CONVERTER ......................................................................................................... 300
10.1 Function of A/D Converter ...................................................................................................... 300
10.2 Configuration of A/D Converter .............................................................................................. 301
10.3 Registers Used in A/D Converter ........................................................................................... 303
10.4 A/D Converter Operations ....................................................................................................... 313
10.4.1 Basic operations of A/D converter.................................................................................................313
10.4.2 Input voltage and conversion results.............................................................................................315
10.4.3 A/D converter operation mode ......................................................................................................316
10.5 Temperature Sensor Function (Expanded-Specification Products
(
μPD78F114xA) Only) .............................................................................................................. 318
10.5.1 Configuration of temperature sensor.............................................................................................318
10.5.2 Registers used by temperature sensors........................................................................................319
10.5.3 Temperature sensor operation......................................................................................................321
10.5.4 Procedures for using temperature sensors ...................................................................................323
10.6 How to Read A/D Converter Characteristics Table............................................................... 326