This post is intended for Don Blake, but we thought others might be able to contribute/benefit from it as well.
I am trying to get my ATtiny45 Slave device using the USI-TWI interface to send data back to an ATmega88 Master device using standard TWI.
I've had plenty of success sending commands to the ATtiny, but getting it to return anything has proven difficult to say the least.
I was using the IAR code from AVR312 in a demo version of IAR, but I found Don's conversion of that code for Atmels GCC and would much rather use that since I'm familiar with AVRstudio and the STK500.
My question is, has anyone had any success getting a slave to return data over the USI-TWI interface and if so, would you care to share that code or at least the experience with a novice experimenter?
Also, for Don, can I use the AVR312 main.c with your converted code?
Thanks, Dan Gates