Dear sir ,
to find the speed of wheel using quadrature pulse generator i am using sir, using driver code of embedded system , enhanced quadrature pulse generator eqepA and eqepB this driver pin i am using for calculation , In this microcontroller iam write some code for calculate timer period to find frequency later RPM , Register i am using is "QCPRD" But value present in this register is not constant value getting , like example iam getting RPM as 100 should should frequency as 50 hz at relation of RPM = frequency *60/PPR , where PPR is 30.Some time its giving correct value ,later wrong value , to much of variation is happening , how to over come .I will attach my code also ,what will be reason , In this file HL_Sysmain .C
thank you
thank youspeed_sensor.zip