Astman wrote: > > I wonder whether some1 can help me and supply me a source code for > visual c++ which initialize and recieve and transmit bits for pic 16 > using I2C protocol, i hope some1 can deliver the whole fully source .. > thanks in advance. I have written a utility for LPT-->I2C, to help develop the product I am working on. The source is Visual C++ v5.0, and compiles to the "Console" application model. That is, I don't have to learn Windows to write it. I hope to recycle code where possible, so a vanilla C is essential for ease of porting to microcontrollers which don't have C++ or Windows. It's been very useful so far. I've had it sending messages to a PIC on a front panel to get it to change the pattern on a group of LEDs, read the keyboard pattern, and send bytes to a 2x20char VFD. This checks that the protocol is okay, without having to program and debug another micro. A handy feature is reading the 256byte EEPROM and highlighting the changes from the last time it was read. This lets me confirm what the PIC thinks it is reading from the EEPROM, and spot where someone else's micro is writing to the wrong location. Thus I can backup my claims when bugs lie in the other guy's micro and avoid disputes. The LPT-I2C adapter board is at the end of a standard 2m printer cable, so it is not limited to a few inches round the back of the PC. I strongly recommend opto-isolators. I presume you'll be talking to experimental circuits, as I am. A covered ass gathers no dick, an isolated port gathers no nasty voltages, and the employee gathers no P45. My work PC is very expensive and inconvenient to replace. I've used two HP2630. These are reasonably fast. Common photo-transistor isolator chips take several microseconds to operate, and the I2C bus signals change over similar timescales. What is your background and application?