[chbot] Small Micros with I2C bus
Andrew Errington
a.errington at lancaster.ac.uk
Sun Apr 24 13:48:39 BST 2011
On Sun, 24 Apr 2011 21:21:00 Paul Davey wrote:
> On Sun, Apr 24, 2011 at 11:56 PM, Andrew Errington
>
> <a.errington at lancaster.ac.uk> wrote:
> > On Fri, 22 Apr 2011 00:08:37 Paul Davey wrote:
> >> I thought it may be a good time to experiment with I2C
> >
> > Could you bit-bang the I2C interface? Then you wouldn't need a built-in
> > peripheral.
> >
> > Andrew
>
> Probably, but where's the fun in that?
The fun is inherent in the exhaustive debugging sessions of course. :)
> also that means the micro cant
> do others things at the same time :P
Really? Surely you can use an interrupt to detect the START condition? Or if
the micro is fast enough just poll it in the main loop.
> Also I do not want to write all the code to bit bang it and I am not
> looking at the range so small that they don't have I2C/TWI
> peripherals.
That's okay. At least you have considered it.
Andrew
More information about the Chchrobotics
mailing list