24LC1025 데이터 Read, Write
int main(void){ I2C_PortInit(); /* 초기 쓰레기값 읽어주기 */ AT24LCXX_Init();for(uint32_t i=0; i 8) & 0xff);I2C_SEND_ACK(0);I2C_WRITE(mem_adr & 0xff);I2C_SEND_ACK(0); I2C_START();// no intermediate stopI2C_WRITE(0xa1 | (dev_adr > 8) & 0xff;dat[2] = (addr & 0xff);UART2_printf("dat[1] %d, dat[2] %d \r\n", dat[1], dat[2]);for(n=3; n