garylee123
Posts: 7
Joined: Fri Aug 09, 2019 6:24 am

Using I2C interface with python with High speed mode

Mon Aug 19, 2019 3:33 am

Hi Guys
I am now working on an ADC module (ADS7823) with raspberry pi 3B+. The coding is in python3 and I imported the SMBUS. Till now it works very well.
There are three kinds of working mode for ADS7823 which are Standard mode(100Khz),Fast mode(400Khz) and High speed mode(3.4MHz).The speed here is thr speed of SCL. However, I found that the SMBUS only support 10kHz to 400kHz, it can not support 3.4Mhz, so could anyone tell me are there any python libraries which can support I2C high speed mode???

Best Wish
Gary


garylee123
Posts: 7
Joined: Fri Aug 09, 2019 6:24 am

Re: Using I2C interface with python with High speed mode

Tue Aug 20, 2019 3:53 am

I have checked the websites you posted, but I am considering are there any relationships between bit-banging and baudrate?
The max baudrate from the big-banging is just 50kHz. Anyway, thks for your help.

User avatar
joan
Posts: 14180
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Using I2C interface with python with High speed mode

Tue Aug 20, 2019 12:12 pm

Have you tried setting the bus speed? I don't see how the Python module would know or care about the underlying speed.

Alternatively have a look at the bcm2835 C library which (I think) has its own I2C driver and may support high speeds.

E.g. https://www.airspayce.com/mikem/bcm2835 ... 72601687bb

Return to “Python”