Dan84 Posted May 24, 2018 Share Posted May 24, 2018 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 ? Link to comment Share on other sites More sharing options...
jpeyron 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 comment Share on other sites More sharing options...
Dan84 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 comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.