Hello everyone,
I'm trying to use the example on i2c_master.h from line 805 to 827 to use I2C bus in the Xmc4700 Relax kit, I chose pin P0.13 and P3.15 on the DAVE CE (Manual Pins Allocator) and in Advanced Settings the Transmit and Receive mode are by Interrupt.
The only thing that are changed in this code are:
I2C_MASTER_StartTransmitIRQ(&I2C_MASTER_EEPROM,false,SLAVE_ADDRESS,mem_address,1,false);
and that I put the code in a While loop:
while(1)
{
mem_address[0] = 0x00;//memory which need to be read from slave
//Write data to IO EXPANDER
I2C_MASTER_StartTransmitIRQ(&I2C_MASTER_EEPROM,fal se,SLAVE_ADDRESS,mem_address,1,false);
while(I2C_MASTER_IsTxBusy(&I2C_MASTER_EEPROM));
I2C_MASTER_StartTransmitIRQ(&I2C_MASTER_EEPROM,fal se,SLAVE_ADDRESS,tx_buffer,64,true);
while(I2C_MASTER_IsTxBusy(&I2C_MASTER_EEPROM));
}
I;m checking if for signal with a scope and so far there is no signal with pull up resistor or with out pull up resistors.
Thanks in advance for the help
Best regards