[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tue, 12 Nov 2002 16:06:58 -0000
I've been fighting the TWI interface on a mega 128 for a couple of days now
just so I can set a couple of digital pots.
To make it work I've ended up clearing the interrupt myself before exiting
the interrupt service routine. the other thing is that on the datasheet it
states that the TWSTA Start bit is cleared when the start bit is sent and so
I took it to mean that it was cleared by the hardware. I can send a start
fine but I have to clear the bit myself afterwards otherwise I send multiple
starts and my comms fails. Does anyone have any experience of this? It
seems to be working now but it's been a hell of a slog.
avr-gcc-list at http://avr1.org
|[Prev in Thread]
||[Next in Thread]|
- [avr-gcc-list] TWI,
Daniel Williamson <=