Global Sources
EE Times-Asia
Stay in touch with EE Times Asia
?
EE Times-Asia > Interface
?
?
Interface??

Perform non-blocking communication on I2C bus

Posted: 11 Dec 2013 ?? ?Print Version ?Bookmark and Share

Keywords:non-blocking? communication? bus? MCU? CPU?

This application note tackles one of the possible ways to perform the non-blocking communication on the I2C bus. It also provides the example c-code for the I2C master.

The blocking communication means that the MCU stalls until the byte is transferred from the data register. In the code, this is usually implemented as checking of the status bit in the "while" loop. However, this approach might not be applicable for some time-critical applications. Assuming anI2C speed of 100kHz, transmission of 1B will stall the CPU for 9?s. The total time while the CPU is waiting for data transmitting or receiving is much higher because the I2C message consists of at least three bytes.

View the PDF document for more information.

Originally published by Freescale Semiconductor at www.freescale.com as "I2C Non-Blocking Communication".





Article Comments - Perform non-blocking communication o...
Comments:??
*? You can enter [0] more charecters.
*Verify code:
?
?
Webinars

Seminars

Visit Asia Webinars to learn about the latest in technology and get practical design tips.

?
?
Back to Top