After much trial and frustration I found the problem. The clk/8 fuse is programmed by default in 325/645. After reading the documentation in that section multiple times I discovered the odd default. All is well now.
Thanks for the verification. -Marc On Tue, 17 Apr 2007 23:42:41 +0200 (MET DST) [EMAIL PROTECTED] (Joerg Wunsch) wrote: > Marc Moreau <[EMAIL PROTECTED]> wrote: > > > I'd like a verification that this doesn't work with the atmega645. > > Don't have an ATmega645 around but only an ATmega6490, but they should > have the same register structure (minus the LCD controller which the > '645 obviously lacks). As I didn't have a reliable 14.xx MHz clock > source around on my STK504, I used the internal clock of 8 MHz, and > thus had to decrease the baud rate to 38400 Bd in order to maintain a > tolerable baud rate error. > > Given that, everything works as you wrote it though. Well, your test > program lacks the initialization of port B for output to drive the > LEDs (or whatever). > > -- > cheers, J"org .-.-. --... ...-- -.. . DL8DTL > > http://www.sax.de/~joerg/ NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) > > > _______________________________________________ > AVR-chat mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/avr-chat _______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
