Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] I2C Bus Speed Requirements

Status
Not open for further replies.

VirusX2

Member level 4
Joined
Nov 18, 2014
Messages
74
Helped
1
Reputation
2
Reaction score
0
Trophy points
6
Activity points
544
Hello everyone, i'm old reader but new member in this forum..!!

I'm currently working on a Real-time measurement system to measure voltage, current, frequency and some other electrical signals. The heart of my system is a PIC18F4553 and as communication protocol i must use I2C cause for every measurement there will be a subsystem on separate PCB. My problem is what bus speed i really need..? 400 KHz or i must go to 3.4 MHz. I want basically to communicate with A/D converters. The fastest i found produces 189 kSPS (Samples/Second) so can take sample every 5.2 μS. It's supports all I2C speeds. How can i calculate what bus speed i really need?
 

There aren't much I2C devices that support 3.4 MHz "Hs" mode. PIC processors e.g. don't.
 

How can i calculate what bus speed i really need?
Your PIC has an SPI peripheral that can go faster then I2C - why not use it instead?
 

There aren't much I2C devices that support 3.4 MHz "Hs" mode. PIC processors e.g. don't.
Are you sure..? I am programming my PIC with 3.4 MHz speed at I2C parameters and no error occurs.

Your PIC has an SPI peripheral that can go faster then I2C - why not use it instead?
Cause i need the hot-plug and the build-in acknowledgment functions of I2C bus..
 

I am programming my PIC with 3.4 MHz speed at I2C parameters and no error occurs.
Maybe it works by chance, but not according to PIC specification. Hs-mode uses special push-pull drivers which are not provided by PIC hardware.
 

Your PIC has an SPI peripheral that can go faster then I2C - why not use it instead?

What type of cable is suitable for SPI communication (at 2.5 - 5 MHz), max length about 30-40 cm? I am thinking about UTP CAT5. I want this to connect the main pcb with the sub-pcb where the ADC is located.
 

I really wanna take a look on PCB that have I2c working on 3MHz. Too much bus capacity.
 

For 5Mhz it is no difference. It will work fine.
Try to trace signal wires same lenght as possible.
 
For 5Mhz it is no difference. It will work fine.
Try to trace signal wires same lenght as possible.

Is it possible to have instability cause of twisted pairs of the UTP cable..?
 

Sure. Twisted pairs designed for differencial pairs. In your case beter use flex cable.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top