Skip to Main Content Skip to Search
Product Documentation

C280x/C2802x/C2803x/C28x3x/C2834x I2C Transmit - Configure inter-integrated circuit (I2C) module to transmit data to I2C bus

Library

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C2802x

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C2803x

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C280x

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C28x3x

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C2834x

Description

Configure the I2C module to transmit data to the two-wire I2C serial bus.

Dialog Box

Addressing format

The I2C transmit block supports the 7–Bit addressing, 10–Bit addressing, and Free data format. The default setting is 7–Bit addressing.

Slave address source

Select the method for setting the slave address register of the I2C slave. Selecting Specify via dialog displays Slave address register parameter . Selecting Input port enables definition of the address register via the input port. The default setting is Specify via dialog.

Slave address register

When you select Specify via dialog, enter a value for the Slave address register. The default value is 80.

Bit Count

Set the bit count to 1 through 8. The default setting is 8.

Enable stop condition

Selecting this parameter enables the transmitter to accept a STOP condition from the C280x/C2802x/C2803x/C28x3x/C2834x I2C Receive block. The default setting is disabled (not selected).

Enable repeat mode

When you enable repeat mode, the I2C module retransmits the same data until it detects a stop or start condition. If you use this mode, also consider selecting Enable stop condition.

If you disable repeat mode, the I2C module operates in standard mode, sending a specific number of data values once.

The default setting is disabled (not selected).

Output transmitting status

Selecting this parameter creates a status output that indicates when the I2C transmit block is transmitting a message. The default setting is disabled (not selected).

References

For detailed information on the I2C module, see:

See Also

C280x/C2802x/C2803x/C28x3x/C2834x I2C Receive

I2C

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS