How it works
The i2c port is capable of handle 4 registers:
- register 0: Set the instruction memory to read/write
- register 1: It loads the value of the instruction memory setted in register 0
- register 2: the desired value to be loaded to instruction memory setted in register 0
- register 3: Not used, yet read and write to it is possible.
How to test
Connect any controller with an i2c master port and next is how to read, or write the memory:
- To Read:
MASTER: Start + device_addr [0x55] (7-bits) + master ACK + address_to_read + ACK | | STOP
SLAVE: | 8bit_data_from_memory + ACK |