I2C Interrupt after 8th Bit

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C Interrupt after 8th Bit

904 次查看
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 回复数

634 次查看
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 项奖励
回复

620 次查看
_Leo_
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

665 次查看
_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!