I2C Master Setup

<< Click to Display Table of Contents >>

Navigation:  nRF51 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?

nrf51_i2c_setup_block

What can be configured?

nrf51_i2c_setup_mask

Configuration item

Selectable option/ Value

Description

I2C Module

0 | 1

Select I2C module to apply configure.

Clock speed (khz)

100 | 250 |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.

Demo