CODE Slave nack matched address from master

Table 1. CODE I2C Code example
Slave nack matched address from master. Address 0x23. Polling mode.
LPC_I2C->SLVADR0 = 0x23 << 1; //put address in address 0 register
LPC_I2C->CFG = I2C_CFG_SLVEN;
while(!(LPC_I2C->STAT & I2C_STAT_SLVPENDING));
if((LPC_I2C->STAT & I2C_STAT_SLVSTATE) != I2C_STAT_SLVST_ADDR)abort();
LPC_I2C->SLVCTL = I2C_SLVCTL_SLVNACK; // nack address

-->