Alright guys/gals, here is a challange for all of you CoDeSys Guru's out there. Write an I2C Bus Protocol Driver using CoDeSys in ST using standard I/O's of a PLC. For example, you can tag the SCL signal to one of the PLC outputs and the SDL to one of the PLC inputs/outputs (share the same signal). All you have to do is write one byte of data to the I2C EEPROM and read one byte of data out of the EEPROM. I have attached a PDF file that contains the specs on this module and the pinouts for clarification. I just bumped into this interesting protocol. I haven't written anything for it yet. Let me know what your thoughts are. I will start writing hopfully later on this evening.
Have fun and let me know what you come up with!
PS: Just remember, there is a Read or Write Initialization byte that has to be transmitted before the actual data byte is written or read.