hi if i want to set the frequency 40KHz at NVIC_ST_RELOAD_R, how can i do that
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi if i want to set the frequency 40KHz at NVIC_ST_RELOAD_R, how can i do that
Hello Nabila,
if the Clock Source for the Systick is PIOSC/4 then you have to have a reload value of 99.
Regards
Amit
hi let me add other details.. it 80mhz internal clock and 440hz square wave in both +ive -ive side.. so in total the period=80*10^(6)*62.5*10^(-9)=5ms ..now what value should i set in order to achieve this.. one of my friend suggested 90909..but i don't know know how?
Hello Nabila
I am not sure what the equation is for. Do you want to generate a 440Hz Square wave using the SYSTICK?
Regards
Amit