Download Chapter 1 - Sacramento

Transcript
47
Data and CLOCK pins are connected to channel 1 and 2 of logic analyzer and
logic analyzer is configured to give waveform output. After getting the waveform, time
between two specific positions of waveform can be measured. From figure 4.20, it can be
seen that time between two rising edges of clock (difference between A and T) is 28
microseconds. This gives us the clock frequency of 36 KHz. This is very less than the
100K ideal data rate of I2C serial communication. Also on data line, length of a wave is
difference between C and D which is 98 microseconds. This time gives us data frequency
of approximately 10 KHz. The reason behind this slower rate can be in the working of
I2C itself. The Master may be generating the clock, but slave have the ability to stretch
the clock if the data is not ready to be delivered. So the slave only sends the data when it
is ready. This means the frequency of the clock in my project is 36 KHz and frequency at
which data is transferred is 10 KHz, in other words bit rate of I2C is 10Kbits/second.