Mosaic
Well-Known Member
Is it reasonable to say that in a 16F886 when the TMR2 interrupt hits (PR2=255) the PWM cycle also starts?
Thus in order to ADC sample a PWM switched peak current pulse the minimum PWM DC must exceed the time for the ADC to be completed in the interrupt code?
So if the ADC sample needs 48 TMR2 ticks to complete, the minimum PWM is 48 (out of 1024).
All good?
Thus in order to ADC sample a PWM switched peak current pulse the minimum PWM DC must exceed the time for the ADC to be completed in the interrupt code?
So if the ADC sample needs 48 TMR2 ticks to complete, the minimum PWM is 48 (out of 1024).
All good?