thanks for the idea about saving the value of p2ifg in a variable. it didnt occur to me, that another int would have taken place, changing the value of this vector.
but the 1st problem still holds :-) why am i receiving ints even after dint()?? 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.