We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear All, please provide header file for delay function
I mean I need constant delay even processor frequency changed
Ex;
delay_ms(500);
Currently I am using following delay function which is varying when change the system clock
void Delay(__IO uint32_t nCount) { while(nCount--) { } }
please also advice what is the deferment between flowing veritable types
__IO uint32_t uint32_t
Thanks in advnace
The advice?
Check the chapter about timers in the processor documentation.
Or look for sample code or application notes about how to use the processor timers.
It isn't needed to use interrupts with the timers - it's possible to poll too. The main thing is that the timers ticks their time without caring about what other things happens.