please tell me how we can detect a 24c04 from 8052 software which is there in board or not and or is correct or damage before i send data to this device?
A 24C04 is an I2C bus EEPROM. If the chip is not present, then your I2C software will detect a NAK condition after sending the address byte.