ML610Q111/ML610Q112 User’s Manual
Chapter 14 I
2
C bus Interface Slave
FEUL610Q111
14-11
14.3 Description of Operation
14.3.1 Communication Operating Mode
The receive starts enabled after a slave address is specified to I2C1SA register, start and stop condition interrupts are set to
enabled by using I2C1MOD register and set the I21EN bit to “1”.
14.3.1.1
Start Condition
When a start condition data comes to the SDA and SCL pin, the I21BB bit of I2C1STAT register is set to “1” and the LSI
starts the receive operation. It goes to slave address receive mode after the start condition completed. I
2
C bus 1 interface
iterrupt (I2CSINT) occurs if the start condition interrupt is enabled by setting the I21SIE bit of I2C1MOD.
14.3.1.2
Slave Address Receive Mode
In slave address receive mode, the values (slave address and data communication direction) provided to the SDA pin is
received synchronizing at the rising edge of serial clock provided to the SCL pin.
If the received slave address and data set to I2C1SA register matched, the I21SAA bit gets to “1” and latches the data
direction bit to the I21TR bit of I2C1STAT register, then return the acknowledge data (“L” level).
After detecting a falling edge of the SCL pin, it moves to the communication wait mode and makes the I
2
C bus 1 interface
interrupt (I2CSINT).
When the received slave addess and data set to I2C1SA register does not match, the I21AA bit remains “0” and no
operation starts.
14.3.1.3
Communication Wait State
The LSI ties the SCL pin to “L” level and makes the communication waiting status.
In data receive mode after preparation for the next data is completed, it cancel the communication wait state by setting the
I21WT bit of I2C1CON register.
In data transmit mode, after setting the next data to I2C1RD register, the I21WT bit is set to “1” and cancel the
communication wait state.
14.3.1.4
Data Transmit Mode
In data transmit mode, the value of I2C1TD is transmitted in MSB first, and finally, the acknowledgment signal is received
in the I21ACR bit of the I
2
C bus 1 status register (I2C1STAT).
The device go into the communication wait state after detecting a falling edge of clock provided to the SCL pin while
receiving the acknowledge data, and at the same time the I
2
C bus 1 interface interrupt (I2CSINT) occurs.
The value of I2C1TD output from the SDA pin is stored in I2C1RD.
14.3.1.5
Data Receive Mode
In data receive mode, the value input in the SDA pin is received synchronously with the rising edge of the serial clock
output to the SCL pin, and finally, the value of the I21ACT bit of the I2C bus 1 control register (I2C1CON) is output as an
acknowledge signal.
The device go into the communication wait state after detecting a falling edge of clock provided to the SCL pin while
receiving the acknowledge data, and at the same time the I
2
C bus 1 interface interrupt (I2CSINT) occurs.
The received data is stored to I2C1RD register and the acknowledge output is received to the I21ACR bit of the I
2
C bus 1
status register (I2C1STAT).
14.3.1.6
Stop Condition
When the stop condition data is proveided to the SDA and SCL pin, the I21BB bit of the I
2
C bus 1 status register
(I2C1STAT) is get to “0”, and the device stop operation. Also, if the stop condition interrupt is enabled by setting the
I21PIE bit of the I
2
C bus 1 mode register (I2C1MOD), the I
2
C bus interface (slave) interrupt (I2CSINT) occurs.
Содержание ML610Q111
Страница 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Страница 14: ...Chapter 1 Overview ...
Страница 26: ...Chapter 2 CPU and Memory Space ...
Страница 34: ...Chapter 3 Reset Function ...
Страница 38: ...Chapter 4 MCU Control Function ...
Страница 53: ...Chapter 5 Interrupts INTs ...
Страница 81: ...Chapter 6 Clock Generation Circuit ...
Страница 95: ...Chapter 7 Time Base Counter ...
Страница 103: ...Chapter 8 Timers ...
Страница 145: ...Chapter 9 Watchdog Timer ...
Страница 153: ...Chapter 10 PWM ...
Страница 199: ...Chapter 11 Synchronous Serial Port ...
Страница 212: ...Chapter 12 UART ...
Страница 240: ...Chapter 13 I2 C Bus Interface Master ...
Страница 254: ...Chapter 14 I2 C Bus Interface Slave ...
Страница 269: ...Chapter 15 Port A ...
Страница 279: ...Chapter 16 Port B ...
Страница 291: ...Chapter 17 Port C ...
Страница 303: ...Chapter 18 Port D ...
Страница 312: ...Chapter 19 Port AB Interrupts ...
Страница 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Страница 335: ...Chapter 21 Voltage Level Supervisor ...
Страница 342: ...Chapter 22 Analog Comparator ...
Страница 353: ...Chapter 23 Data Flash Memory ...
Страница 373: ...Chapter 24 On chip Debug ...
Страница 375: ...Appendixes ...
Страница 393: ...Appendix E ...
Страница 398: ...Revision History ...