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.
Jose Ricaurte Pino
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.