Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
impossible ...
I have searched on internet about the _delay_us and everything seems to confirm that if the Fcpu is not multiple of 1000000, the delay is proportionaly to relation between Fcpu and 1000000 ... in my case 3.2 ...
ok, maybe I begin to understand:
the delay introduced of the function _delay_us IS NOT 1 uSec * N, but 1/Fcpu * N .... ( in my case, Fcpu is 3,2 Mc and the delay is 0,3125 uSec * N)
I am not sure, but some experiments changing N leads me to think that it is so ...
There are some people that...
Hi to all !
I read the tread https://www.edaboard.com/threads/309426/ and I have tried the code 2 but in my test the freq. was not 50Hz but 37.5Hz.
For this, I have re arranged the code as:
//#########################################################################//
#define F_CPU 3200000UL...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.