Skip to main content
Graduate
September 8, 2023
Solved

Can you make the time interval shorter?

  • September 8, 2023
  • 2 replies
  • 1440 views

kust_0-1694172635958.png

i increases by 1.  The delay is 1.

stm cubemonitor 

kust_1-1694172947882.png

kust_0-1694174685697.pngvariables node

 

I received the data as an Excel file.

kust_2-1694173042856.png

x is the time, and y is the value of i.

The time interval of the data is 1 ms(=0.001s).

Can you make the time interval shorter?

If you can shorten the time interval, please tell me how to do it in detail. please.

thank you.

 

    This topic has been closed for replies.
    Best answer by Issamos

    Hello @kust 

    The best way to make shorter interval of time is by using a TIMER in counter mode instead of delay and than you can configure the TIMER to count and Interrupt every ∆T you want (event in microseconds). To do this you can find exemples in all STM32cube firmwares.

    Best regards.

    II

    2 replies

    kustAuthor
    Graduate
    September 8, 2023

     

     

     

    IssamosAnswer
    Graduate II
    September 8, 2023

    Hello @kust 

    The best way to make shorter interval of time is by using a TIMER in counter mode instead of delay and than you can configure the TIMER to count and Interrupt every ∆T you want (event in microseconds). To do this you can find exemples in all STM32cube firmwares.

    Best regards.

    II

    Graduate II
    September 8, 2023

    When your question is answered. Close the topic by choosing a best answer.