Integrated BLDC Code with ADC