2021-07-21 07:54 AM
According to AN4013 on using timers as time base generators, one could use a 16-bit timer to generate an update event from a nanosecond to a few minutes.
Well, take for example the STM32F429 clocked @ 180 MHz. If one cycle takes 5.56 ns, which is the fastest clock available for APB2 Timers, how to go beyond that to generate a 1 nanosecond intervals?
I know that 1 nanosecond = 32403240 CPU Ticks
Could it be done by measuring/calculating CPU Ticks?
Why I would need a timing base in the nanosecond range is beyond the scope of this question!
AN4013 for reference:
Zaher
2021-07-21 09:33 AM
Thank you Clive. Well, nanosecond delays in multiple of 10s will do fine for most applications, but there are some other applications where a more tight timing is required. The text draw my attention in the AN "a nanosecond" so I wanted to confirm if there's a way to do it.