hi PIC fans...... i need serious help....does anyone know the source code (MPASM) for reading a PWM signal as input?..... experienced ASM coders, please reply ASAP...... thanks..... gt1981 |
|
reading PWM input
Started by ●April 11, 2003
Reply by ●April 11, 20032003-04-11
Look at the Microchip app note on using ADXL202 accelerometers. The
ADXL's are PWM out, and the example code includes temperature compensation since the ADXL's are DutyCycle modulated, and the period varies with temperature. For serious help, I charge serious money <G>. Robert contact_gt1981 wrote: > > hi PIC fans...... > > i need serious help....does anyone know the source code (MPASM) for reading a PWM signal as input?..... > > experienced ASM coders, please reply ASAP...... |
Reply by ●April 11, 20032003-04-11
Assuming the voltage varies from 0.0V to +5.0V DC why wouldn't you just put it into the A/D converter of the PIC? Maybe add a little capacitor to ground to help smooth out the integration. It depends greatly on the frequency of the PWM signal as to how you size the capacitor. --- In , "contact_gt1981" <contact_gt1981@y...> wrote: > hi PIC fans...... > > i need serious help....does anyone know the source code (MPASM) for reading a PWM signal as input?..... > > experienced ASM coders, please reply ASAP...... > > thanks..... > gt1981 |
Reply by ●April 12, 20032003-04-12