Part Number: TMS570LS1227
Other Parts Discussed in Thread: HALCOGEN
I have the eQEP running in quadrature-clock mode for a motor controller application. The Position Counter and Direction Decoder are working well, but I am having difficulty getting sensible values from the QUPRD register for speed calculation purposes.
I am polling the capture overflow flag (COEF) and I can see overflows occurring which I think is causing the problem, so I am fairly sure that it is due to how I've initialized the capture registers but I'm not sure why.
In HALCoGen, there is an example called "example_eqepEdgeCapture", is there also an example of what the register setup should be?
My current setup is:
- VCLK4 is set at 90MHz.
- The typical frequency of the encoder is 50Hz.
TIA