Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
check you F_CPU settings make sure you've set it up properly for the new oscillator, then don't forget to recompile your code.
Quote from: rgcustodio on January 18, 2008, 12:50:38 PMcheck you F_CPU settings make sure you've set it up properly for the new oscillator, then don't forget to recompile your code.where do i find this
// make sure the following is the CPU frequency in Hertz#define F_CPU 1600000UL
at 4mhz i think
turn on LEDloop 10 times: delay_cycles(65500);turn off LEDloop 10 times: delay_cycles(65500);repeat
while(1){LED_on();delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);LED_off();delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);delay_cycles(65500);}
maybe i didnt do the fuse settings right, how can i do it right
i checked my fuse bits and they are correct * CKDIV8 = 1 * CKOUT = 1 * SUT1 = 1 * SUT0 = 0 * CKSEL3 = 0 * CKSEL2 = 1 * CKSEL1 = 1 * CKSEL0 = 0