Hello FC Team,
today I made the follwing observation with my ESP32 and using I2C CAL component.
First of all the I2C CAL is only bringing data in Software mode on the I2C bus. Hardware mode either Ch1 or Ch2 will not bring any data on the bus. Unfortunately the clock rate is wrong in software mode with approx 400Hz.
Please see the follwing scope screen shoot.
The I2C CAL component was set to 100Khz
If I use as a comparision LCD back pack I2C component I`ll get the correct clock rate.
Please see the next picture.
So the question si what is wrong with I2C opperation at ESP32?
May somebody has dicovered a similar behaivior.
BR
Dirk
ESP32 and I2C CAL component Problem/Observation
-
dvcam99
- Posts: 107
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 04, 2020 11:03 am
- Has thanked: 9 times
- Been thanked: 14 times
-
mnfisher
- Valued Contributor
- Posts: 1721
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 147 times
- Been thanked: 803 times
Re: ESP32 and I2C CAL component Problem/Observation
Have used the i2c quite extensively in the past without issue - so unless a recent update has broken something?
Can you post your chart?
Martin
Can you post your chart?
Martin
Re: ESP32 and I2C CAL component Problem/Observation
Hi Martin,
fc file attached. In between I´ll checked I2C master component and I2C CAL component. Same result. Running only in software mode not hardware. Clock frequency approx 500Hz.
BR
Dirk
fc file attached. In between I´ll checked I2C master component and I2C CAL component. Same result. Running only in software mode not hardware. Clock frequency approx 500Hz.
BR
Dirk
Happy FC9, FC-8 and FC-6 professional user 
-
BenR
- Matrix Staff
- Posts: 2015
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 529 times
- Been thanked: 719 times
Re: ESP32 and I2C CAL component Problem/Observation
Hi Dirk,
I2c only works in transaction mode for esp32 hardware channels. Same for arm. I'll have a look at your program and see if I can transfer it to transaction mode for you.
I2c only works in transaction mode for esp32 hardware channels. Same for arm. I'll have a look at your program and see if I can transfer it to transaction mode for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: ESP32 and I2C CAL component Problem/Observation
....transaction OK. Yes a example would be cool too.
In between I´ll checked the transaction hardware. Great it is working with the correct clock frequency.
Picture and FC file below:
BR
Dirk
In between I´ll checked the transaction hardware. Great it is working with the correct clock frequency.
Picture and FC file below:
BR
Dirk
Happy FC9, FC-8 and FC-6 professional user 