KL27Z I2C ACK PROBLEM

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

KL27Z I2C ACK PROBLEM

969 次查看
jricaurtepino
Contributor II

Hi

I'm working on a project and i have to use an EEPROM and a KL27Z256 microcontroller.

The problem is when the slave(the EEPROM) sends the ACK bit. It only goes half way down. I've been searching about this, and i know that i have to put the SDA line in open collector. But in this microcontroller there's no register to do that.

I need information about how to do this.

Thanks

Jose Ricaurte Pino

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

832 次查看
FelipeGarcia
NXP Employee
NXP Employee

Hi Jose,

 

You will need to set the pins as open drain using the internal pull resistor. This can be configured with the PORTx_PCRn register.

 

Please refer to the reference manual in section 11.7.1.

 

Best regards,

Felipe

0 项奖励
回复