Skip to main content
ranran
Senior
November 1, 2019
Solved

Can we access I2C in 7-bit data ?

  • November 1, 2019
  • 6 replies
  • 1096 views

Hello,

As far as I understand, I2C access with STM32H7 supports only 8-bit data.

But we need 7-bit data. Is that possible ?

Thanks

This topic has been closed for replies.
Best answer by S.Ma

I2C specification states 8 bit data + ACK bit.

If 7 bits then it's no longer called I2C.

6 replies

S.Ma
S.MaBest answer
Principal
November 1, 2019

I2C specification states 8 bit data + ACK bit.

If 7 bits then it's no longer called I2C.

S.Ma
Principal
November 1, 2019

And then the answer is no. Use SW I2C with GPIO to build customized waveforms for the pseudo I2C.

Or maybe there is confusion for the slave address, it's 7 bit + Read/write bit = 8 bits

Tesla DeLorean
Guru
November 1, 2019

Perhaps you can post information about what device you're trying to communicate with, and the "7-bit" mode you're talking about.

The address is 7-bit wide, perhaps you're confusing terms/requirements, but question lacks sufficient context.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ranran
ranranAuthor
Senior
November 1, 2019

Hi,

I was speaking of data width - not address mode.

So, according to previous answers here, it seems that data must be used with 8-bit bytes only.

Thank you

Tesla DeLorean
Guru
November 1, 2019

Ok, but it what context? What device needs/provides such a mode?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ranran
ranranAuthor
Senior
November 1, 2019

It is not for a specific device, but only optional for any for future device requiring 7-bits data.

Thanks