From: George Francis <chaostoo@gm...> - 2005-10-08 09:02:06
Does anyone know if its possible to con the pxa I2C bus interface into
pulling both clock and data lines low for ten seconds? (ie sending a
start condition without transfering a byte?)
I'm developing code to transfer hex files (containing PIC
microcontroller programs) into micros which are distributed around a
robot (eg motor controllers), all hanging off the i2c bus. However,
if the code that gets sent to a pic doesnt run its I2C properly (ie a
bug) then the gumstix can no-longer communicate with it. So the
solution is to have the pic check the clock and data lines at reset,
then have the gumstix hold them low long enough for me to cycle the
power to the pics. They all go into program mode, and I can address
the pic in question and send it a new program.
Source code is here:
So, I need to hold SCL and SDA low long enough to press a switch, I
can do it with a couple of transistors and a GPIO line, but I'd prefer
to do it with software if possible.
From: George Francis <chaostoo@gm...> - 2005-12-06 20:34:44
In case anyone's interested, I've sorted the bugs out of my I2C pic program=
Latest version here:
Basically it copies .hex files (produced by Microchip MPLAB) to
PIC18F252's down the I2C bus.
Bye for now,