pwm test signal
configuring analog comparator and voltage ref