??? 02/10/06 10:10 Read: times |
#109685 - I2C bit banging: yes ! Responding to: ???'s previous message |
I can not understand all these fighting against software I2C.
Software I2C has lots of advantages: - easy to use - portable - flexibility (every port pins can be used) - no hardware bugs - no hanging state - smaller code than using hardware I2C - equal execution time as hardware I2C as long no I2C interrupt handler was used. The only disadvantage: - it supports single master mode only Following my routines including reset the I2C bus from hanging state on noisy environment or hot plugging (simple call SI2CRES preceding every transfer): http://home.tiscali.de/peterd/ap.../index.htm http://home.tiscali.de/peterd/ap.../index.htm Peter |