
12.14.1 Mode 0 (I/O interface mode)......................................................................................................................................255
12.14.1.1 Transmit
12.14.1.2 Receive
12.14.1.3 Transmit and Receive (Full-duplex)
12.14.2 Mode 1 (7-bit UART mode).......................................................................................................................................266
12.14.3 Mode 2 (8-bit UART mode).......................................................................................................................................266
12.14.4 Mode 3 (9-bit UART mode).......................................................................................................................................267
12.14.4.1 Wakeup function
12.14.4.2 Protocol
13. Serial Bus Interface (I2C/SIO)
13.1 Configuration.......................................................................................................................270
13.2 Register................................................................................................................................271
13.2.1 Registers for each channel............................................................................................................................................271
13.3 I2C Bus Mode Data Format................................................................................................272
13.4 Control Registers in the I2C Bus Mode..............................................................................273
13.4.1 SBICR0(Control register 0)..........................................................................................................................................273
13.4.2 SBICR1(Control register 1)..........................................................................................................................................274
13.4.3 SBICR2(Control register 2)..........................................................................................................................................276
13.4.4 SBISR (Status Register)................................................................................................................................................277
13.4.5 SBIBR0(Serial bus interface baud rate register 0).......................................................................................................278
13.4.6 SBIDBR (Serial bus interface data buffer register)......................................................................................................278
13.4.7 SBII2CAR (I2Cbus address register)............................................................................................................................279
13.5 Control in the I2C Bus Mode..............................................................................................280
13.5.1 Serial Clock...................................................................................................................................................................280
13.5.1.1 Clock source
13.5.1.2 Clock Synchronization
13.5.2 Setting the Acknowledgement Mode............................................................................................................................281
13.5.3 Setting the Number of Bits per Transfer......................................................................................................................281
13.5.4 Slave Addressing and Address Recognition Mode......................................................................................................281
13.5.5 Operating mode.............................................................................................................................................................281
13.5.6 Configuring the SBI as a Transmitter or a Receiver....................................................................................................282
13.5.7 Configuring the SBI as a Master or a Slave.................................................................................................................282
13.5.8 Generating Start and Stop Conditions..........................................................................................................................282
13.5.9 Interrupt Service Request and Release.........................................................................................................................283
13.5.10 Arbitration Lost Detection Monitor............................................................................................................................283
13.5.11 Slave Address Match Detection Monitor....................................................................................................................285
13.5.12 General-call Detection Monitor...................................................................................................................................285
13.5.13 Last Received Bit Monitor..........................................................................................................................................285
13.5.14 Data Buffer Register (SBIDBR).................................................................................................................................285
13.5.15 Baud Rate Register (SBIBR0)....................................................................................................................................286
13.5.16 Software Reset.............................................................................................................................................................286
13.6 Data Transfer Procedure in the I2C Bus Mode..................................................................287
13.6.1 Device Initialization......................................................................................................................................................287
13.6.2 Generating the Start Condition and a Slave Address...................................................................................................287
13.6.2.1 Master mode
13.6.2.2 Slave mode
13.6.3 Transferring a Data Word.............................................................................................................................................289
13.6.3.1 Master mode (<MST> = "1")
13.6.3.2 Slave mode (<MST> = "0")
13.6.4 Generating the Stop Condition......................................................................................................................................294
13.6.5 Restart Procedure...........................................................................................................................................................294
13.7 Control register of SIO mode..............................................................................................296
13.7.1 SBICR0(control register 0)...........................................................................................................................................296
13.7.2 SBICR1(Control register 1)..........................................................................................................................................297
13.7.3 SBIDBR (Data buffer register).....................................................................................................................................298
13.7.4 SBICR2(Control register 2)..........................................................................................................................................299
13.7.5 SBISR (Status Register)................................................................................................................................................300
13.7.6 SBIBR0 (Baud rate register 0)......................................................................................................................................301
13.8 Control in SIO mode...........................................................................................................302
13.8.1 Serial Clock...................................................................................................................................................................302
13.8.1.1 Clock source
13.8.1.2 Shift Edge
vii