cancel
Showing results for 
Search instead for 
Did you mean: 

Can you make the time interval shorter?

kust
Associate II

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Issamos
Lead II

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

View solution in original post

4 REPLIES 4
kust
Associate II

 

 

 

Issamos
Lead II

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

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

thank you