AnsweredAssumed Answered

An error on AN4013 OPM Pulse Length Formula

Question asked by Seng Tak Goh on Mar 4, 2018
Latest reply on Mar 6, 2018 by Amel N

Spotted a small error on the Timer application note AN4013r6 (Cross Series Timer Overview), page 15.


Pulse Length of a One Pulse Mode is shown as: Pulse-Length = (ARR - CCRy)/(TIMx_CLK/(PSC + 1))..but by referring to the timing diagram in the Reference Manual (RM0090) of a MCU (STM32F407 for example), with my own experiment to confirm it to boot, that it should be Pulse-Length = (ARR - CCRy-1)/(TIMx_CLK/(PSC + 1)) instead.


I am not sure if there is another way to interpret or apply the equation..but it costs me some minutes to counter-check my config to find out because I started with the application note before digging further into the reference manual.


Please correct me if I am wrong.



IPWM edge-aligned timing diagram