Skip to main content
Wleon.1
Associate III
April 3, 2020
Question

interrupt latency with 2 two Identical board

  • April 3, 2020
  • 2 replies
  • 726 views

Hi, I am using two Identical board, both board installed with a STM32F733ZE, and both have the same program loaded.

The program is very simple where if an interrupt from PG0, will reset the PWM counter of TIM8. provided with the same interrupt source, I am seeing a const 5us delay on the counter reset, given everything are the same I don't understand why am I still getting a 5us delay ?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
April 3, 2020

Does TIM8 have a prescaler?​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Wleon.1
Wleon.1Author
Associate III
April 3, 2020

yes but I have set it to 0

TDK
Super User
April 3, 2020

It's possible the systick interrupt is delaying the interrupt you want from firing. But far more likely is something is different between the two boards, especially if the delay is constant. 5us is quite a long time in terms of cpu cycles.

Cache will also affect execution speed to some degree, though it should be consistent if the two chips are truly running the same code.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Tesla DeLorean
Guru
April 3, 2020

Even with crystals the clocks are not identical.

5 us seems like a lot, and not something I can determine specifically.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..