11.4.1 Comparator 0 Digital Filter Operation ........................................................................................... 272
11.4.2 Comparator 0 Interrupt Operation ................................................................................................ 272
11.4.3 Comparator 0 Output .................................................................................................................... 272
11.5 Comparator Setting Flowchart ................................................................................................ 272
11.5.1 Enabling Comparator Operation ................................................................................................... 273
11.5.2 Disabling Comparator Operation .................................................................................................. 274
CHAPTER 12 SERIAL ARRAY UNIT .................................................................................................. 275
12.1 Functions of Serial Array Unit ................................................................................................. 276
12.1.1 3-wire serial I/O (CSI00, CSI01) ................................................................................................... 276
12.1.2 UART (UART0) ............................................................................................................................ 277
12.1.3 Simplified I
2
C (IIC00) .................................................................................................................... 278
12.2 Configuration of Serial Array Unit .......................................................................................... 279
12.2.1 Shift register ................................................................................................................................. 281
12.2.2 Serial data register 0nL (SDR0nL) ............................................................................................... 281
12.3 Registers Controlling Serial Array Unit.................................................................................. 282
12.3.1 Peripheral enable register 0 (PER0) ............................................................................................. 283
12.3.2 Serial clock select register 0 (SPS0) ............................................................................................ 284
12.3.3 Serial mode register 0n (SMR0nH, SMR0nL) ............................................................................... 285
12.3.4 Serial communication operation setting register 0n (SCR0nH, SCR0nL) ..................................... 287
12.3.5 Serial data register 0n (SDR0nH, SDR0nL) ................................................................................. 289
12.3.6 Serial flag clear trigger register 0n (SIR0n) .................................................................................. 290
12.3.7 Serial status register 0n (SSR0n) ................................................................................................. 291
12.3.8 Serial channel start register 0 (SS0) ............................................................................................. 293
12.3.9 Serial channel stop register 0 (ST0) ............................................................................................. 294
12.3.10 Serial channel enable status register 0 (SE0) ............................................................................ 295
12.3.11 Serial output enable register 0 (SOE0) ....................................................................................... 296
12.3.12 Serial output register 0 (SO0) ..................................................................................................... 297
12.3.13 Serial clock output register 0 (CKO0) ......................................................................................... 298
12.3.14 Serial output level register 0 (SOL0) .......................................................................................... 299
12.3.15 Noise filter enable register 0 (NFEN0) ........................................................................................ 300
12.3.16 Input switch control register (ISC) .............................................................................................. 301
12.3.17 Registers controlling port functions of serial input/output pins .................................................... 302
12.4 Operation Stop Mode ............................................................................................................... 303
12.4.1 Stopping the operation by units .................................................................................................... 303
12.4.2 Stopping the operation by channels ............................................................................................. 304
12.5 Operation of 3-Wire Serial I/O (CSI00, CSI01) Communication ........................................... 305
12.5.1 Master transmission ..................................................................................................................... 306
12.5.2 Master reception ........................................................................................................................... 316
12.5.3 Master transmission/reception ...................................................................................................... 325
12.5.4 Slave transmission ....................................................................................................................... 335