2014-07-15 07:18 AM
Dear
I have read Ch14.1 Systicks the definition guide of Cortex M3 2nd. But I still confuse it. If I take the Systicks Reload = 65536, the corresponding time is 65536 * 168 MHz * 1e9 ?Am I correct? Thanks2014-07-15 07:32 AM
Take the reciprocal of the source clock and multiply out the ticks, then multiply by 1e9 for units in nanoseconds.
For 168 MHz, and SysTick at 21 MHz, each tick is roughly 47.62ns2014-07-15 08:49 AM
2014-07-15 09:00 AM
Ok some basic math issues here
nano seconds per tick = (1 / 168,000,000) * 1,000,000,000 or 1000 / 168 1 Billion nano seconds in a second 168 Thousand ticks per second Divide 168 Thousand into 1 Billion to know number of nano seconds per tick If being clocked at HCLK/8 then use the 21 MHz number, or whatever it is for given clock configuration.