Eric Tanner

How to setup ADC to high part of PWM duty cycle on a HCS08

Discussion created by Eric Tanner on Jan 27, 2011
Latest reply on Jan 27, 2011 by bigmac

I have my ADC reading a few different things using the ADC conversion complete interrupt.


What I need is to measure at Voltage to the Motor.  A PWM from the MCU is driving a motor control circuit.  How do I ensure I am reading the High part of the PWM duty cycle, While still, periodically read the other analog values on separate analog input channels?