About I2C handshake

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

About I2C handshake

2,926件の閲覧回数
dvdsosa
Contributor II

Hi all,

I am developing a library for a device that uses I2C. I am using a logic analyzer to obtain the frames while running an Arduino example (ZOE-M8Q GNSS). 

When sniffing the Arduino example, I see there is a low level of both SDA and SCL after a write command, with a stop signal after 530us low level (see attached image). Thus, the response of the GNSS board when running the Arduino example is different than mine due I poll that board but without the Write and low-level SDA and SCL (using KW41Z under FreeRTOS). 

I hope you get what I mean by the attached picture.

Is it possible to put both SDA and SCL lines at a low level for a determined time?

Regards,

David.

タグ(3)
0 件の賞賛
返信
1 返信

2,921件の閲覧回数
ErichStyger
Specialist I

Yes, you always can use the pins as GPIO pins and do whatever you want.

See for example the McuI2cLib_ReleaseBus() in  https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuI2cLib.c which does this.

I hope this helps,

Erich