Updated pwm and adc segments