On Mon, Mar 9, 2009 at 7:19 PM, John Samperi <samperi@ampertronics.com.au> wrote: > At 09:05 AM 10/03/2009, you wrote: >>The problem is that the equation I quoted IS giving me the right baud. >>I don't know why.. > > You always get the gremlins, may have to move country!! :) I have the atmel guy coming in with Arrow on friday. > Have a look at the uart.c file in the example folder > (C:\WinAVR-20081205\doc\avr-libc\examples\stdiodemo) > > The only thing I can think of of is that the clock is not > correct (which you have verified) OR the compiler THINKS is > something else. My T0 int is firing exactly where I expect, 1mS. Xtal verified by scope on Xtal pins. Fuses set to external osc. > Maybe the lack of UL in your #define F_CPU 4000000UL?? It's generated by Studio..
Message
Re: [AVR-Chat] Xtal and Baud Rate
2009-03-10 by David VanHorn
Attachments
- No local attachments were found for this message.