We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
After reading few replies and documents,I feel that I can use the "SET" assembler directive to solve this No, you can't. You can gandle SCL on 2 pins in software (or Two_pins and and !Two_pins instead of sbit) but the data has to be synchronous. Erik