very strange issue :(
I have to drive LENZE servo with differential square pulse. I use one PWM channel via D flip-flop to produce two complement channels.
set constant period ( 1 milisec ) with variabile duty. on LENZE servo I took oscilogram of DFSET ( analog value drive produce from my pulse ). it is excellent ! constant horizontal line without any peaks ! conclusion: duty does not matter at all, it is only period that does matter
set variable period ( from 0.3 milisec to 3 milisec ). try few procedures with linear rise and fall. period is updated via ISR routine. took some oscilogram on LENZE servo drive. it looks ok !
same project as 2. - period can be changed in ISR routine, but it does not - ie. write const to UPD register. took some oscilogram at LENZE servo drive. it looks terrible. I get random curve with strong peaks every 20 ms.
I repeat step 1) and 2) and get excellent result. and then again step 3) and get an issue ! and so for hundred times.
I also changed ISR routine, so I did not change UPD register in ISR at all. I did it in main loop. no result.
how can I get constant period ?
any idea ?