- Thu Dec 04, 2008 2:30 pm
#60625
I've been reading the AVR tutorial:http://www.sparkfun.com/commerce/tutori ... als_id=105
My questions are: what does F_CPU = 8000000 means in Makefile? If I want to run my uC at the default 1Mhz and TX/RX at 2400bps, should I change the define to:
#define FOSC 1000000
#define BAUD 2400
and then also change F_CPU = 1000000 ?
In the comments under this tutorial, people say they have to use 16Mhz external crystal to make it work. But I really want to use the 1Mhz default internal oscillator to make the UART work.
Thank you so much!
Baixue
My questions are: what does F_CPU = 8000000 means in Makefile? If I want to run my uC at the default 1Mhz and TX/RX at 2400bps, should I change the define to:
#define FOSC 1000000
#define BAUD 2400
and then also change F_CPU = 1000000 ?
In the comments under this tutorial, people say they have to use 16Mhz external crystal to make it work. But I really want to use the 1Mhz default internal oscillator to make the UART work.
Thank you so much!
Baixue