Hi,
Today' tried to write an assembly code for I2C master which sends a 2-byte data from an array when button is pressed. I was sure that everything is correct, but it was not working. Then i wrote it in C coding and looked at dis-assembly. I realized that there were "push R15" and "pop R15" at the beginning and the end of the transmit interrupt service routine. I added them in my code and everything is perfect now. However the problem is that i do not use R15 in my code at all and i cannot understand why R15 is so important. Is it used especially as a part of I2C communication?
Regards,
Deniz.