can you please explain this code
prescalar = (uint16_t)((SystemCoreClock/2)/13107)-1;
is systemcoreclock is 168MHz / 84 MHz / 8 MHz ?
we divided 65535 into 5 to get 13107, how 13107 is 1 sec? i couldn't understood that part
very confusing for me, can you please elaborate.
if SystemCoreClock = 168 MHZ i am getting prescalar as 6407.7891.
are there any furthur calculation using prescalr value to get accuare 1 sec.