I2C Interrupt after 8th Bit

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

I2C Interrupt after 8th Bit

514件の閲覧回数
Joern
Contributor I

Hi

 

i have to set an address for a I2C slave (MCP 4728) connected to my MK22FN1M0...

Therefore i have change the state of another pin between bit 8 and bit 9.

My idea was to use the TCF interrupt with FACK enabled, because datasheet says:

"48.4.6.1 Byte transfer interrupt
The Transfer Complete Flag (TCF) bit is set at the falling edge of the ninth clock to
indicate the completion of a byte and acknowledgement transfer. When FACK is enabled,
TCF is then set at the falling edge of eighth clock to indicate the completion of byte."

 

I get the Interrupt at the 9th bit, but i cannot move the interrupt to the 8th bit.

Am i missing something?

Is FACK not changing TCF behaviour if not in SMBus receiver mode?

 

The behaviour i need is this:

LDAC Pin is on a separate I2C independent GPIO

MCP4728_set_address.jpg

ラベル(1)
タグ(5)
0 件の賞賛
返信
3 返答(返信)

244件の閲覧回数
Joern
Contributor I

Hi Leo,

 

thanks for the reply!

I will check if i can switch to SMBus mode for that period.

 

Have a nice one!

0 件の賞賛
返信

230件の閲覧回数
_Leo_
NXP TechSupport
NXP TechSupport

You're welcome, any other questions feel free to continue using our technical support service.

0 件の賞賛
返信

275件の閲覧回数
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

You are correct! FACK does not change TCF behavior if not in SMBus mode.

Have a nice day!