John, I got it. This board I am playing with (this one is new to me) isn't wired as I expected. They put jumpers along both sides of the ATMega16. I assumed that the jumpers were for the pins that they were closest to.... I was wrong. They actually routed the traces so that the ports were grouped! The ATMega16 is now talking to the DS1307. Now I'm going to make a Mega8 talk as a slave to the Mega16. Thanks again, John. Cheers. David --- In AVR-Chat@yahoogroups.com, John Samperi <samperi@...> wrote: > > At 02:51 PM 5/01/2009, you wrote: > >I have code running on my ATMega128. The software is TWI/I2C (talking > >to a DS1307). When I compile it for my ATMega16, it gets stuck in > >the following file: > > How are the 2 modules wired up? ie pull-up resistors for the I2C etc. > > Regards > > John Samperi > > ******************************************************** > Ampertronics Pty. Ltd. > 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA > Tel. (02) 9674-6495 Fax (02) 9674-8745 > Website http://www.ampertronics.com.au > *Electronic Design * Custom Products * Contract Assembly > ******************************************************** >
Message
Re: TWI on ATMega16 vs ATMega128
2009-01-06 by englsprogeny
Attachments
- No local attachments were found for this message.