This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

same variable for two different

Hi All,

I have a IIC routine file i2c.asm,which has routines to read and write into a IIC device.

Now I am using the i2c.asm for two devices RTC and serial memory which are connected on different pins.

Question:
---------
How to use the same routines (read & write) to send signals on different pins,right now I am trying to use "SDA set p3.1" and changing the addrs of the sda and scl pin each time before accessing different device ,but it doesnt seem to work.

Is there any other way to get around this problem...

Rgds
Raj Shetgar

0