Page 1 of 1

Error in PWM input IC6 + solution

PostPosted: Wed Jun 13, 2012 3:30 pm
by pielepee
Hi Tom,

I noticed in line 135 in pwm.c, in the _IC6Interrupt() routine, it states the following:
Code: Select all
   if (PORTDbits.RD12 == 0)


which should be:
Code: Select all
   if (PORTDbits.RD13 == 0)

in order to look at port IC6 instead of IC5.

Kind regards,

Peter Tambach

Re: Error in PWM input IC6 + solution

PostPosted: Fri Jun 29, 2012 4:38 pm
by Tom
Talking about an ugly copy and paste error!

Thanks for letting me know!