Other Parts Discussed in Thread: TCA9548A,
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Dionisi,
Your limiting factor here is going to be your bus load. As the length of your cable increases your bus load will increase which increases your delay on your clock. This added delay will force you to reduce your clock speed in order to continue to communicate between the device. You will also have to adjust your high time and low time on the SCL bus as you increase your length since your bus capacitance will change.
If you can provide me with your RM, CM, RB, CB, RS, and CS values I can walk you through how to calculate this delay:
Best,
Chris
Hi Dionisi,
Are you not using two P82B96s? Our application in the datasheet requires two P82B96s, one for the controller (formerly known as Master) and one for the target (formerly known as Slave). If you want to use this device for it's intended purpose over very long cables you will need another P82B96 on the target side to redrive the TX and RX of each SDA and SCL line back into just an SCL/SDA line.
Best,
Chris
yes i am using a pair of boards i have set up as i had said i went so far as to remove the cable pullup or Rb on the receiving end (target) as was shown in figure 13 with pullup only at controller
Using the numbers that you have provided I am going to preform the following calculations:
I will assume 1 meter or cable. You will have to adjust this to achieve your desired size. Cb= 46pF VCCM=VCCB=VCCS=5V
A. Effective Delay of SCL at Slave = 353.42 ns
RsCs=RmCm= 44ns RbCb=20.24ns
B. Effective delay of SCL at Master = 328.168
C. Effective Delay of SDA at Master = 323.768
Master low period >=(1300+A-B+C)
Master low period >=1649.02 ns
You can still program the master high to be the minimum of 600ns. This make your total period >= (1649.02+600) = 2249.02 ns or a frequency >= 444 kHz.
The actual bus-clock period including the 328 ns clock stretch effect makes your maximum frequency equal to 388 kHz.
This frequency is going to change and become lower as you increase your cable size. Keep in mind it's not important to just program the master to communicate at these speeds. You have to actually change your low time to be at least the minimum low time above (1649.02 ns).
Hopefully this shed some light on how to tune this device. Let me know if you have any questions.
Best,
Chris