PDA

View Full Version : 18f2431 QEI Help



krism13
- 30th January 2006, 00:23
Has anyone figured out the Quadrature Encoder Interface on the 18F2431 (or similar 18FXX31 PIC)? I can successfully work with the position data, but I am unable to get the velocity data to work properly. Does anyone know the correct entries to the configuration registers, or does anyone have any sample code? Thanks.

krism13
- 31st January 2006, 05:09
I have solved the issue regarding velocity feedback.

RodSTAR
- 19th June 2008, 06:18
I have solved the issue regarding velocity feedback.

hi krsim, could you share how did you solve qei velocity issue?
i also successfully work with the position data, but i've tried.
i set QEICON.7 = 0 ' velocity mode enabled

VELM VAR QEICON.7
VELM = 0

is there a velocity register, o i must calculate it manually?

skimask
- 19th June 2008, 06:21
hi krsim, could you share how did you solve qei velocity issue?
If you'll notice, that user hasn't been on for 2 1/2 years now and the username isn't registered anymore.

dmta34
- 5th June 2013, 15:26
Hi every one !!!!

I am wrking on pic18F4431 and can't figure out on how to measure velocity or position. If you don't mind it would be really helpful if you could share the code with me.

Thank you !!!!!!!!