I have put
#define F_CPU 16000000UL // 16 MHz
but when I give
It's not giving me 2.5 seconds,
Any ideas why ?
Thanks for helping
If it is giving you 8 times what you expect, then it is likely you have not set the fuses correctly.
I assume you have a 16MHz crystal attached?
Where have you put the #define? Above or below the #include ?
yes it's 16 Mhz crystal on board,
which fuse bit do you mean ?
is it in writer ? I put CKSEL0 to CKSEL3 into 1 already for external clock....
(It's far better to do it with a -D anyway!)
hohoho I fix it already,thanks guys
If only the user manual had given details of how to do it eh? Oh wait a minute...
And you should pay attention to warnings.
The Board helps those that help themselves.
And you have to love cliff's sarcasam :wink:
© 2020 Microchip Technology Inc.