retepsnikrep
Senior Member
I've a simple circuit with a picaxe 28x1 talking to a AT24C512B 512k bit 64k byte eeprom.
I'm happy with the circuit and the setup command.
But addressing the 64kbyte eeprom memory, is it as simple as incrementing the address pointer (0 in the below example) and reading/writing the data.
Code here
I appreciate this takes upto 5ms per write and that multiple writes can be combined in one instruction.
lets assume I have a loop writing data and incrementing my pointer. Can this simply keep incrementing from 0-65335?
Can I then jump in at any time with a read command to access the data in a random fashion (changing pointer)
Thanks
I'm happy with the circuit and the setup command.
But addressing the 64kbyte eeprom memory, is it as simple as incrementing the address pointer (0 in the below example) and reading/writing the data.
Code here
Code:
`Set PICAXE as I2C master and AT24C512B 512k bit 64k byte eeprom as slave
hi2csetup i2cmaster, %10100000, i2cfast_8, i2cword ;Setup I2C Device
` hi2cout 0,(b0) ;write data to I2C Device starting at address 0
` hi2cin 0,(b0) ;read data from I2C Device starting at address 0
lets assume I have a loop writing data and incrementing my pointer. Can this simply keep incrementing from 0-65335?
Can I then jump in at any time with a read command to access the data in a random fashion (changing pointer)
Thanks
Last edited: