
13
5.5 Timer/Event Counter .............................................................................................................140
5.5.1
Configuration of timer/event counter......................................................................................... 140
5.5.2
8-bit timer/event counter mode operation ................................................................................. 150
5.5.3
PWM pulse generator mode (PWM mode) operation............................................................... 162
5.5.4
16-bit timer counter mode operation......................................................................................... 168
5.5.5
Carrier generator mode (CG Mode) operation ......................................................................... 178
5.5.6
Notes on using the timer/event counter .................................................................................... 190
5.6 Serial Interface ......................................................................................................................197
5.6.1
Serial interface function ............................................................................................................ 197
5.6.2
Configuration of serial interface................................................................................................ 198
5.6.3
Register function ...................................................................................................................... 202
5.6.4
Operation stop mode ................................................................................................................ 210
5.6.5
Operation in 3-wire serial I/O mode.......................................................................................... 212
5.6.6
Operation in 2-wire serial I/O mode.......................................................................................... 222
5.6.7
SBI mode operation.................................................................................................................. 229
5.6.8
SCK pin output manipulation .................................................................................................... 262
5.7 LCD Controller/Driver............................................................................................................263
5.7.1
LCD controller/driver configuration ........................................................................................... 263
5.7.2
LCD controller/driver functions ................................................................................................. 265
5.7.3
Display mode register (LCDM) ................................................................................................. 265
5.7.4
Display control register (LCDC)................................................................................................ 267
5.7.5
LCD/Port Selection Register (LPS) .......................................................................................... 269
5.7.6
Display data memory................................................................................................................ 270
5.7.7
Common signal and segment signal ........................................................................................ 272
5.7.8
Supply of LCD drive power VLC0, VLC1, and VLC2 ................................................................ 276
5.7.9
Display mode ............................................................................................................................ 279
5.8 Bit Sequential Buffer ............................................................................................................292
CHAPTER 6 INTERRUPT FUNCTIONS AND TEST FUNCTIONS..................................................295
6.1 Configuration of Interrupt Control Circuit ..........................................................................295
6.2 Types of Interrupt Sources and Vector Tables ...................................................................29
7
6.3 Hardware Controlling Interrupt Functions .........................................................................299
6.4 Interrupt Sequence ...............................................................................................................307
6.5 Nesting processing Control.................................................................................................308
6.6 Vector Address Share Interrupt Processing ......................................................................310
6.7 Machine Cycles until Interrupt Processing ........................................................................312
6.8 Effective Usage of Interrupt .................................................................................................314
6.9 Application of Interrupt ........................................................................................................314
6.10 Test Function ........................................................................................................................32
2
6.10.1
Types of test sources................................................................................................................ 322
6.10.2
Hardware devices controlling the test function ......................................................................... 322
CHAPTER 7 STANDBY FUNCTIONS.................................................................................................327
7.1 Standby Mode Setting and Operation Status.....................................................................329
7.2 Standby Mode Release.........................................................................................................331
7.3 Operation After Releasing the Standby Mode....................................................................333
7.4 Mask Option Selection .........................................................................................................334
7.5 Application of Standby Mode ..............................................................................................334