cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32f103c8t6 TIM1, where 1ms is mandatory. I need a Ticker of 0.01ms or 0.001ms, to be able to discount with the time of the routines to increment / show the time in a serial display / 32bits. Bravos

A Bravos
Associate III
 
4 REPLIES 4
T J
Lead

Maybe that was a little to brief....

Please start with the serial display, does that have a chip ? 5450 type?

Do you want to increment/decrement a displayed timer ?

Do you need 1mS and 1uSec timers?

Do you want to diplay time ?

A Bravos
Associate III

Thanks for the answer...

the serial display is an old ucn5833a.

I want to increase or decrease time, I need precise timer.

If I have a 1us timer I easily transcode it into a 1ms timer, I think ...

While working only 0.1s.

To view final time or send by uart, here yes with the precision of 1ms, of type xx.xx.xx.xxx

Thank you one more time

You could look at DWT_CYCCNT it is 32-bit wide, and free runs at 32-bit, at 72 MHz that would wrap in about a minute.

There is also the SYSTICK counter, it is 24-bit and counts down.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
henry.dick
Senior II

"I need a Ticker of 0.01ms or 0.001ms"

if you meant that you wanted to have interrupts at 10us or 1us, you just need ST to make a MCU that runs at 100 or 1000x of their current offerings.

if you meant that you wanted to have a timer with 10us or 1us resolution, plenty of easy solutions.