Monday, 23 November 2015

Are termination resistors needed for UART, I2C and SPI?


I see that termination resistors might be needed for some communication lines. What about UART, I2C and SPI, are they needed ? If yes, how do we choose their values?



Answer



Take 50 MHz clock SPI.


50 MHz has a fundamental wavelength of 6 metres but you could argue that due to the fast rising edges everything up to the 5 th harmonic is potentially capable of disrupting the shape too much if terminations are not applied. So that's a wavelength of 1.2 metres.


On the other hand, on PCBs, the speed of signals is about 60% the speed of light so that fifth harmonic has a wavelength of 0.7 metres.



A sensible rule of thumb suggests reasonably that you need to consider adding a termination if the transmission line is longer that about one-tenth of a wavelength - so if your PCB tracks are more than 7 cm long then you should consider a termination but, you'll probably get away without one for a few more centimetres and, if the edges your chip generates are not that fast maybe you can consider the 3rd harmonic as the benchmark rather than the fifth harmonic.


The same argument applies for UART transmission but it's a little different with I2C because of the pull-up resistors and the inability to drive very fast edges due to the output device being active only in the low state.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...