eez-open / modular-psu-firmware

Firmware for EEZ Bench Box 3 (BB3)
https://www.envox.eu/eez-bb3/
GNU General Public License v3.0
94 stars 42 forks source link

Adjusting Frequency/Period in function generator corrupts phase output #230

Closed fietser28 closed 3 years ago

fietser28 commented 3 years ago

If you run output 2 channels with a 10Hz sine on the function generator and give them 180degreee offset, it will work nicely: the display of the signal generator and the output on a scope look the same.

If you then change channel 2 to 20Hz, the phase is off (hard to see)

If you then change channel 2 back to 10Hz (still with 180 degree phase shift). the display on the BB3 shows the expected output: 2 sine with 180 degree between them. The real outputs however are NOT correct: the phase shift is wrong. You should be in the same situation as the first step.

This error also happens if you use the period/delay mode: the delay shown doesn't match the real delay after switching.

Setting the phase or delay to a different value corrects the problem.

On FW 1.7-RC1

fietser28 commented 3 years ago

Tested, Fixed.