azadfalah
Full Member level 2
yes possible .. like said in previous post in I2c read routine of slave device ignore address , take data. update that data to your variable
I think you do not understand my question
Last edited:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
yes possible .. like said in previous post in I2c read routine of slave device ignore address , take data. update that data to your variable
Ok, I think I understand. You want to update a value at a specified address on a different MCU but using I2C as the communication method.
It is possible but I2C isn't the best protocol because it is primarily intended to be used for input and output rather than linking autonomous systems together. You need to emulate a slave device on the second MCU and then pass it more than one byte. The first byte(s) would carry the address you want to write to on the slave and the next byte(s) would carry the data to be written to it. So you pass the location and the content as a multi-byte I2C transfer.
Brian.
/* the integer variable "a" is stored
in RAM at address 80h */
int a @0x80;
i want make variable with specified address in slave micro
how make it, on Atmel Studio & how make in in windows ?
int8_t __attribute__((section (".mySection"))) array[SIZE];
at first i check CRC Error and than use the input data