Soft I2C Master Read/Write

<< Click to Display Table of Contents >>

Navigation:  Waijung Blockset > Block References > Communication > Soft I2C Master >

Soft I2C Master Read/Write

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

waijung_communication_softi2c_master_readwrite_block

What can be configured?

waijung_communication_softi2c_master_readwrite_mask

Configuration item

Selectable option/ Value

Description

Soft I2C Module

1 | 2 | 3 | ... | 16

Select soft I2C module for apply configuration

Bytes write count

(specify number of bytes to write in I2C transaction)


Bytes read count

(specify number of bytes to read in I2C transaction)


Wait write time (ms), default is 0

(specify number of wait time in mS)

This is time delay between Write and Read, to support special case that need delay time between Write and Read transaction.

Generate STOP before Re-Start for READ

(Checked | Unchecked)

Generate STOP bit after Write before READ.

Sample Time (Sec)

(sampletime)

Specify block sample time

When to use this block?

For application required to interface with external device via I2C, example: reading sensors data. The block is simply generate High and Low signal at GPIO pin, it doesn't use I2C module.

Demo