i want a code of visual C++ or C#, for communicating to 12C bus through serial or parallel port. if anyone can help me, please email on saadia_ather@yahoo.com
Visual C is not a Keil product!
There is no standard way to do I2C via a PC's COM or LPT port - you would need specific drivers and/or external hardware. SO there's no point sending you code without knowing exactly how you intend to do this!
eg, see www.ftdichip.com/.../MPSSE.htm apple.clickandbuild.com/.../ftdichip
www.ftdichip.com/.../FTCI2C.htm
http://www.i2cchip.com/
The I2C protocol was invented by Philips and is owned by NXP (Founded by Philips).
Therefore NXP must be the first point of reference for all matters regarding I2C: http://www.nxp.com/i2c
Here you can find the full I2C Specification (ie, the definition of I2C), Application Notes and, of course, datasheets for NXP's I2C products
http://www.keil.com/i2c/
www.i2ctools.com/products.html