mxlemming
100 kW
- Joined
- Jul 17, 2020
- Messages
- 1,198
If you write a new value to the timer, it will only update the duty at the next update event - top or bottom. So if you write it in the "top" interrupt, it will get applied at "bottom".hy,
happy new year!
can you explain a bit why it is needed to have injection at bottom pwm and at top pwm, what does it differ if you inject at top or at bottom, for inductance measurement.
i'm having a hard time getting useable current values it i inject at top for inductance measurement.
If you are reading every "bottom" of timer, you then get the injection you want... it you are reading at top of timer... you get on average nothing.
If your interrupt takes too long, you get complete garbage.