Dan84 0 Posted May 24, 2018 Share Posted May 24, 2018 (edited) Hi, i've started to play with timers and delays. In Di Jasio's PIC32 book i've found this code void delay(uint32_t count) { while(--count); } Who is count ? To whom it refers ? SYSCLK ? PBCLK ? Something else ? Edited May 24, 2018 by Dan84 Link to post Share on other sites
jpeyron 660 Posted May 24, 2018 Share Posted May 24, 2018 Hi @Dan84, We do not have this text you are referring to. This function looks to add a delay with count dictating how long. I believe this delay is based on whatever frequency your program is running at. thank you, Jon Link to post Share on other sites
Dan84 0 Posted June 6, 2018 Author Share Posted June 6, 2018 After some test i think this counter is related directly to sysclk. I don't know if i must consider it useful in this form or if it is better work always with opentimer function. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now