Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/11/08 19:31
Modified:
  05/11/08 19:33

Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#154692 - Timing for I2C...
Responding to: ???'s previous message
If you are using a hardware peripheral on-board the MCU to support the I2C bus as a master then there is a timing control register that controls the bus clocking speed. If a HW interface is being used as a slave responder then the bus speed is primarily set by the other end of the interface.

On the other hand if you are doing the I2C master mode interface as a software managed bit-bang interface then the timing of the bus is determined by the way the code is written and how fast it executes. You can determine the actual speed by counting instruction cycles or using an oscilloscope to measure the timing. (Note that almost always when bit-banged I2C is implemented it is a good idea to validate that the interface is operating at the intended speed using the oscilloscope).

Michael Karas


List of 2 messages in thread
TopicAuthorDate
How to vary the I2C speed from the software?            01/01/70 00:00      
   Timing for I2C...            01/01/70 00:00      

Back to Subject List