09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Inter-integrated circuit (I 2 C) interface <strong>RM0090</strong><br />

SDA<br />

SCL<br />

SMBA<br />

Noise<br />

filter<br />

Noise<br />

filter<br />

1. SMBA is an optional signal in SMBus mode. This signal is not applicable if SMBus is disabled.<br />

25.3.2 I 2 C slave mode<br />

Data<br />

control<br />

Clock<br />

control<br />

Clock control<br />

Register (CCR)<br />

Control registers<br />

(CR1&CR2)<br />

Status registers<br />

(SR1&SR2)<br />

By default the I 2 C interface operates in Slave mode. To switch from default Slave mode to<br />

Master mode a Start condition generation is needed.<br />

The peripheral input clock must be programmed in the I2C_CR2 register in order to<br />

generate correct timings. The peripheral input clock frequency must be at least:<br />

● 2 MHz in Standard mode<br />

● 4 MHz in Fast mode<br />

As soon as a start condition is detected, the address is received from the SDA line and sent<br />

to the shift register. Then it is compared with the address of the interface (OAR1) and with<br />

OAR2 (if ENDUAL=1) or the General Call address (if ENGC = 1).<br />

Note: In 10-bit addressing mode, the comparison includes the header sequence (11110xx0),<br />

where xx denotes the two most significant bits of the address.<br />

707/1416 Doc ID 018909 Rev 3<br />

Data register<br />

Data shift register<br />

Comparator<br />

Own address register<br />

Dual address register<br />

Interrupts<br />

PEC register<br />

Control<br />

logic<br />

PEC calculation<br />

DMA requests & ACK<br />

MS30035V1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!