run timer in CTC mode, avoid manually reseting timer to 0. Now sampling frequency looks to be right
run timer2 to generate triangle wave at frequency fsampling/16. this triangle wave is being added to measured signal