24LC04B 512 byte I2C EEPROM read/write 24LC04B 512 byte I2C EEPROM read/write

24LC04B 512 byte I2C EEPROM read/write

This is how you setup

HiZ>m 1. HiZ 2. 1-WIRE 3. UART 4. I2C 5. SPI 6. 2WIRE 7. 3WIRE 8. LCD x. exit(without change) (1)>4 Set speed: 1. 100KHz 2. 400KHz 3. 1MHz (1)>1 Ready I2C>P Select pull-up source 1. None 2. Vpu pin 3. 3.3V 4. 5V (1)>3 3.3V I2C>W Power supplies ON I2C>

Setup sequence.

I2C>[0xa0 0 0 1 2 3 4 5 6 7 8] I2C START BIT WRITE: 160 ACK WRITE: 0 ACK WRITE: 0 ACK WRITE: 1 ACK WRITE: 2 ACK WRITE: 3 ACK WRITE: 4 ACK WRITE: 5 ACK WRITE: 6 ACK WRITE: 7 ACK WRITE: 8 ACK I2C STOP BIT I2C>

Writing to EEPROM.

I2C>[0xa0 0 [ 0xa1 r:9] I2C START BIT WRITE: 160 ACK WRITE: 0 ACK I2C START BIT WRITE: 161 ACK READ: 0 ACK 1 ACK 2 ACK 3 ACK 4 ACK 5 ACK 6 ACK 7 ACK 8 NACK I2C STOP BIT I2C>

Read back from EEPROM.