I2C Master Setup

<< Click to Display Table of Contents >>

Navigation:  STM32F4 Target > Block References > On-chip Peripherals > I2C >

I2C Master Setup

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

i2c_master_setup_block

What can be configured?

i2c_master_setup_mask

Configuration item

Selectable option/ Value

Description

I2C Module

1 | 2 | 3

Select I2C module to apply configure.

Transfer mode

Blocking | Non-Blocking

Note: Current Waijung version release support only Blocking mode.

Duty cycle in fast mode

TLow/THigh = 16/9 | TLow/THigh = 2

High and Low time for clock (fast mode).

Clock speed (khz)

100 | 400

Specify clock speed of selected I2C module configuration.

Timeout (ms)

25 (or specify)

Specify timeout in ms.

SDA pin

(Available pins depending on MCU packet)

Select pin for I2C SDA.

SCL pin

(Available pins depending on MCU packet)

Select pin for I2C SCL.

Demos

Read sensor L3G4200D

Pressure Sensor MPL3115A2

Humidity and Temperature Sensor HIH6131

Ambient Light Photo Sensor APDS9301