29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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<br />

RM0008<br />

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

Low-density devices are <strong>STM32F101xx</strong>, <strong>STM32F102xx</strong> <strong>and</strong> <strong>STM32F103xx</strong><br />

microcontrollers where the Flash memory density ranges between 16 <strong>and</strong> 32 Kbytes.<br />

Medium-density devices are <strong>STM32F101xx</strong>, <strong>STM32F102xx</strong> <strong>and</strong> <strong>STM32F103xx</strong><br />

microcontrollers where the Flash memory density ranges between 64 <strong>and</strong> 128 Kbytes.<br />

High-density devices are <strong>STM32F101xx</strong> <strong>and</strong> <strong>STM32F103xx</strong> microcontrollers where the<br />

Flash memory density ranges between 256 <strong>and</strong> 512 Kbytes.<br />

Connectivity line devices are <strong>STM32F105xx</strong> <strong>and</strong> STM32F107xx microcontrollers.<br />

This section applies to the whole STM32F10xxx family, unless otherwise specified.<br />

24.1 I 2 C introduction<br />

I 2 C (inter-integrated circuit) bus Interface serves as an interface between the microcontroller<br />

<strong>and</strong> the serial I 2 C bus. It provides multimaster capability, <strong>and</strong> controls all I 2 C bus-specific<br />

sequencing, protocol, arbitration <strong>and</strong> timing. It supports st<strong>and</strong>ard <strong>and</strong> fast speed modes. It is<br />

also SMBus 2.0 compatible.<br />

It may be used for a variety of purposes, including CRC generation <strong>and</strong> verification, SMBus<br />

(system management bus) <strong>and</strong> PMBus (power management bus).<br />

Depending on specific device implementation DMA capability can be available for reduced<br />

CPU overload.<br />

24.2 I 2 C main features<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

Parallel-bus/I 2 C protocol converter<br />

Multimaster capability: the same interface can act as Master or Slave<br />

I 2 C Master features:<br />

– Clock generation<br />

– Start <strong>and</strong> Stop generation<br />

I 2 C Slave features:<br />

– Programmable I 2 C Address detection<br />

– Dual Addressing Capability to acknowledge 2 slave addresses<br />

– Stop bit detection<br />

Generation <strong>and</strong> detection of 7-bit/10-bit addressing <strong>and</strong> General Call<br />

Supports different communication speeds:<br />

– St<strong>and</strong>ard Speed (up to 100 kHz),<br />

– Fast Speed (up to 400 kHz)<br />

Status flags:<br />

– Transmitter/Receiver mode flag<br />

– End-of-Byte transmission flag<br />

– I 2 C busy flag<br />

624/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!