by i-Bot » Mon Sep 24, 2007 11:23 am
by i-Bot
Mon Sep 24, 2007 11:23 am
Although my code works OK on the SP03 output and with PCF8574. I had some problems with reading some Devantech devices. Also if pullups were not put on the PWM pins I use for I2c, then the processor would reset on the watchdog timer after an I2c transaction.
The problem is in the clock pulling. The code I used does have clock pulling, but in the wrong place for the devantech devices. It was also the clock pulling making the resets without the pullups.
I have fixed the problems, but will continue to test with more I2c devices (compass, accelerometer, sonar)
If anyone has an urgent need, let me know and I will post code earlier.
Although my code works OK on the SP03 output and with PCF8574. I had some problems with reading some Devantech devices. Also if pullups were not put on the PWM pins I use for I2c, then the processor would reset on the watchdog timer after an I2c transaction.
The problem is in the clock pulling. The code I used does have clock pulling, but in the wrong place for the devantech devices. It was also the clock pulling making the resets without the pullups.
I have fixed the problems, but will continue to test with more I2c devices (compass, accelerometer, sonar)
If anyone has an urgent need, let me know and I will post code earlier.