KL27Z I2C ACK PROBLEM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KL27Z I2C ACK PROBLEM

584 Views
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

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

447 Views
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 Kudos
Reply