start implementation of a rect osci with variable duty cycle