Renesas rl78 Answering Machine User Manual


  Open as PDF
of 1004
 
6.10.1 Cautions when using timer output............................................................................................... 291
CHAPTER 7 REAL-TIME CLOCK........................................................................................................ 292
7.1 Functions of Real-time Clock................................................................................................. 292
7.2 Configuration of Real-time Clock .......................................................................................... 293
7.3 Registers Controlling Real-time Clock.................................................................................. 295
7.3.1 Peripheral enable register 0 (PER0) ........................................................................................... 296
7.3.2 Subsystem clock supply mode control register (OSMC)............................................................. 297
7.3.3 Real-time clock control register 0 (RTCC0) ................................................................................ 298
7.3.4 Real-time clock control register 1 (RTCC1) ................................................................................ 299
7.3.5 Second count register (SEC) ...................................................................................................... 301
7.3.6 Minute count register (MIN) ........................................................................................................ 301
7.3.7 Hour count register (HOUR) ....................................................................................................... 302
7.3.8 Day count register (DAY)............................................................................................................ 304
7.3.9 Week count register (WEEK)...................................................................................................... 305
7.3.10 Month count register (MONTH)................................................................................................... 306
7.3.11 Year count register (YEAR) ........................................................................................................ 306
7.3.12 Watch error correction register (SUBCUD)................................................................................. 307
7.3.13 Alarm minute register (ALARMWM)............................................................................................ 308
7.3.14 Alarm hour register (ALARMWH)................................................................................................ 308
7.3.15 Alarm week register (ALARMWW).............................................................................................. 308
7.3.16 Port mode register 3 (PM3)......................................................................................................... 309
7.3.17 Port register 3 (P3) ..................................................................................................................... 309
7.4 Real-time Clock Operation ..................................................................................................... 310
7.4.1 Starting operation of real-time clock ........................................................................................... 310
7.4.2 Shifting to HALT/STOP mode after starting operation ................................................................ 311
7.4.3 Reading/writing real-time clock................................................................................................... 312
7.4.4 Setting alarm of real-time clock................................................................................................... 314
7.4.5 1 Hz output of real-time clock ..................................................................................................... 315
7.4.6 Example of watch error correction of real-time clock .................................................................. 316
CHAPTER 8 12-BIT INTERVAL TIMER.............................................................................................. 321
8.1 Functions of 12-bit Interval Timer ......................................................................................... 321
8.2 Configuration of 12-bit Interval Timer................................................................................... 321
8.3 Registers Controlling 12-bit Interval Timer .......................................................................... 322
8.3.1 Peripheral enable register 0 (PER0) ........................................................................................... 322
8.3.2 Subsystem clock supply mode control register (OSMC)............................................................. 323
8.3.3 Interval timer control register (ITMC) .......................................................................................... 324
8.4 12-bit Interval Timer Operation.............................................................................................. 325
8.4.1 12-bit interval timer operation timing........................................................................................... 325
8.4.2 Starting counter operation after returning from HALT or STOP mode and then shifting to
HALT or STOP mode again........................................................................................................ 326
CHAPTER 9 CLOCK OUTPUT/BUZZER OUTPUT CONTROLLER................................................. 327
9.1 Functions of Clock Output/Buzzer Output Controller......................................................... 327
Index-5