32bit input capture (AN2592) inaccuracy
Apnote "Achieving 32-bit timer resolution with software expansion" (AN2592) mentions that it is possibleto create 32bit input capture with only one 16bit timer. Combine interrupt from update event to count timer overflows and regular 16bit input capture to 32bit value.
Appnote does not deal with race condition between read out capture value and update event. In case that capture event takes place few cycles before or after update event, program detects that both flags are raised and must find out what happened first.
I recommend add procedure how to manage mentioned race condition because suggested solution is useless without it.
Section 3.2 Interrupt processing sounds wrong. Says that if both IRQs (Capture and update event) are called simultaneously then program should always service update event first. That leads to wrong results in cases when capture takes place short time before update event...
