hi, thanks for ur response.
but this still doesnt solve the problem, that even after disabling all interrupts, why am i still getting ints? is there some behaviour of gpio ints that im not aware of? like, the order in which to execute the instructions: clearing the ifg, enabling io int etc.. thanks, karan On Thu, 2004-10-14 at 01:45, Albert Bartoszko wrote: > Hi Karan > > [...] > > i have been trying to simulate the I2C STOP condn. > > for the slave. > > so upon pressing button2 on the master, > > the clk and the data lines go high. > > this is the webpage im using as i2c reference: > > http://perso.club-internet.fr/mbouget/i2c-faq.html > > specifically: > > http://perso.club-internet.fr/mbouget/i2c-faq.html#IC_017 > > This says: > "The SDA and SCL lines can only be PULLED low. They cannot be DRIVEN high. > To make them high the device just releases the line. " > > In: > inline void clkhigh() > { > P2OUT |= CLKBIT; > writedigit(2, '1'); > } > > try > P2DIR &= ~CLKBIT; > > In releaseDataHigh() similary. > > In slave TimerA interrupt > try save initial value of P2IFG in variable and next test this, not P2IFG > > > Albert > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users CM II Resolution Systems Inc.