
ML610Q421/ML610Q422/ML610421 User’s Manual
Contents
Contents – 6
Chapter 15
15. I2C Bus Interface........................................................................................................................................... 15-1
15.1 Overview................................................................................................................................................... 15-1
15.1.1 Features............................................................................................................................................. 15-1
15.1.2 Configuration....................................................................................................................................15-1
15.1.3 List of Pins........................................................................................................................................15-1
15.2 Description of Registers............................................................................................................................15-2
15.2.1 List of Registers................................................................................................................................15-2
15.2.2 I2C Bus 0 Receive Register (I2C0RD).............................................................................................. 15-3
15.2.3 I2C Bus 0 Slave Address Register (I2C0SA) ....................................................................................15-4
15.2.4 I2C Bus 0 Transmit Data Register (I2C0TD)....................................................................................15-5
15.2.5 I2C Bus 0 Control Register (I2C0CON)............................................................................................15-6
15.2.6 I2C Bus 0 Mode Register (I2C0MOD).............................................................................................. 15-7
15.2.7 I2C Bus 0 Status Register (I2C0STAT) ............................................................................................15-8
15.3 Description of Operation...........................................................................................................................15-9
15.3.1 Communication Operating Mode...................................................................................................... 15-9
15.3.1.1 Start Condition...............................................................................................................................15-9
15.3.1.2 Repeated Start Condition............................................................................................................... 15-9
15.3.1.3 Slave Address Transmit Mode....................................................................................................... 15-9
15.3.1.4 Data Transmit Mode......................................................................................................................15-9
15.3.1.5 Data Receive Mode .......................................................................................................................15-9
15.3.1.6 Control Register Setting Wait State............................................................................................... 15-9
15.3.1.7 Stop Condition............................................................................................................................. 15-10
15.3.2 Communication Operation Timing................................................................................................. 15-11
15.3.3 Operation Waveforms..................................................................................................................... 15-13
15.4 Specifying port registers ......................................................................................................................... 15-14
15.4.1 Functioning P41(SCL) and P40(SDA) as the I2C ..........................................................................15-14
Chapter 16
16. NMI Pin........................................................................................................................................................16-1
16.1 Overview................................................................................................................................................... 16-1
16.1.1 Features............................................................................................................................................. 16-1
16.1.2 Configuration.................................................................................................................................... 16-1
16.1.3 List of Pins........................................................................................................................................16-1
16.2 Description of Registers............................................................................................................................16-2
16.2.1 List of Registers................................................................................................................................ 16-2
16.2.2 NMI Data Register (NMID)..............................................................................................................16-3
16.2.3 NMI Control Register (NMICON)....................................................................................................16-4
16.3 Description of Operation...........................................................................................................................16-5
16.3.1 Interrupt Request............................................................................................................................... 16-5
Chapter 17
17. Port 0............................................................................................................................................................. 17-1
17.1 Overview...................................................................................................................................................17-1
17.1.1 Features............................................................................................................................................. 17-1
17.1.2 Configuration....................................................................................................................................17-1
17.1.3 List of Pins........................................................................................................................................17-1
17.2 Description of Registers............................................................................................................................17-2
17.2.1 List of Registers................................................................................................................................ 17-2
17.2.2 Port 0 Data Register (P0D) ............................................................................................................... 17-3
17.2.3 Port 0 Control Registers 0, 1 (P0CON0, P0CON1).......................................................................... 17-4
17.2.4 External Interrupt Control Registers 0, 1 (EXICON0, EXICON1)...................................................17-5
17.2.5 External Interrupt Control Register 2 (EXICON2)........................................................................... 17-6
17.3 Description of Operation...........................................................................................................................17-7
17.3.1 External Interrupt/Capture Function.................................................................................................17-7
17.3.2 Interrupt Request............................................................................................................................... 17-7