Renesas rl78 Answering Machine User Manual


  Open as PDF
of 1004
 
12.5.2 Master reception......................................................................................................................... 447
12.5.3 Master transmission/reception.................................................................................................... 457
12.5.4 Slave transmission...................................................................................................................... 467
12.5.5 Slave reception........................................................................................................................... 477
12.5.6 Slave transmission/reception...................................................................................................... 485
12.5.7 SNOOZE mode function ............................................................................................................. 495
12.5.8 Calculating transfer clock frequency........................................................................................... 499
12.5.9 Procedure for processing errors that occurred during 3-wire serial I/O (CSI00, CSI01, CSI10,
CSI11, CSI20, CSI21) communication........................................................................................ 501
12.6 Operation of UART (UART0 to UART2) Communication..................................................... 502
12.6.1 UART transmission..................................................................................................................... 505
12.6.2 UART reception .......................................................................................................................... 515
12.6.3 SNOOZE mode function ............................................................................................................. 522
12.6.4 Calculating baud rate.................................................................................................................. 530
12.6.5 Procedure for processing errors that occurred during UART (UART0 to UART2)
communication............................................................................................................................ 534
12.7 LIN Communication Operation .............................................................................................. 535
12.7.1 LIN transmission ......................................................................................................................... 535
12.7.2 LIN reception .............................................................................................................................. 538
12.8 Operation of Simplified I
2
C (IIC00, IIC01, IIC10, IIC11, IIC20, IIC21) Communication ....... 544
12.8.1 Address field transmission.......................................................................................................... 547
12.8.2 Data transmission ....................................................................................................................... 553
12.8.3 Data reception ............................................................................................................................ 557
12.8.4 Stop condition generation ........................................................................................................... 562
12.8.5 Calculating transfer rate.............................................................................................................. 563
12.8.6 Procedure for processing errors that occurred during simplified I
2
C (IIC00, IIC01, IIC10, IIC11,
IIC20, IIC21) communication ...................................................................................................... 565
CHAPTER 13 SERIAL INTERFACE IICA ........................................................................................... 566
13.1 Functions of Serial Interface IICA.......................................................................................... 566
13.2 Configuration of Serial Interface IICA ................................................................................... 569
13.3 Registers Controlling Serial Interface IICA .......................................................................... 572
13.3.1 Peripheral enable register 0 (PER0) ........................................................................................... 572
13.3.2 IICA control register 00 (IICCTL00) ............................................................................................ 573
13.3.3 IICA status register 0 (IICS0)...................................................................................................... 578
13.3.4 IICA flag register 0 (IICF0).......................................................................................................... 581
13.3.5 IICA control register 01 (IICCTL01) ............................................................................................ 583
13.3.6 IICA low-level width setting register 0 (IICWL0).......................................................................... 585
13.3.7 IICA high-level width setting register 0 (IICWH0)........................................................................ 585
13.3.8 Port mode register 6 (PM6)......................................................................................................... 586
13.4 I
2
C Bus Mode Functions ......................................................................................................... 587
13.4.1 Pin configuration ......................................................................................................................... 587
13.4.2 Setting transfer clock by using IICWL0 and IICWH0 registers.................................................... 588
13.5 I
2
C Bus Definitions and Control Methods ............................................................................. 590
13.5.1 Start conditions........................................................................................................................... 590
13.5.2 Addresses................................................................................................................................... 591
Index-8