I am trying to develop a high-speed driver for the L3G4200D gyro. I have tried using multiple SPI example codes, but none of them work - it is possible my wiring is suspect. Does anyone know of any tried and true spin SPI drivers for this gyro? I2C works, but is too slow. I am also trying to translate the Parallax I2C example code for the driver into PASM, but I think that it will run so fast that the gyro won't be able to keep up.
This will take a few thousand clock cycles, whereas,
PRI stop ' 3 Stack Longs
dira[SCLpin] := false
dira[SDApin] := false
This will only take 8!
and dira, SCL_Inv_Mask
and dira, SDA_Inv_Mask
Will this work regardless, and if not how should I sync this code to handle normal I2C speeds?
I am attaching my current (in progress) I2C code as well.