18f2431 QEI Help


Closed Thread
Results 1 to 5 of 5
  1. #1
    krism13's Avatar
    krism13 Guest

    Default 18f2431 QEI Help

    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.

  2. #2
    krism13's Avatar
    krism13 Guest


    Did you find this post helpful? Yes | No

    Default Figured it Out

    I have solved the issue regarding velocity feedback.

  3. #3
    Join Date
    May 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by krism13 View Post
    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?
    "Beethoven had his critics too, see if you can name 3 of them"

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RodSTAR View Post
    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.

  5. #5
    Join Date
    Jun 2013
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: 18f2431 QEI Help

    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 !!!!!!!!

Similar Threads

  1. Quadrature encoder and loop count
    By phoenix_1 in forum Code Examples
    Replies: 1
    Last Post: - 8th October 2009, 22:02
  2. pwm 18f2431
    By robertpeach in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st August 2009, 08:55
  3. SSPCON and 18F2431 Problem
    By ralfmayr in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th November 2008, 16:19
  4. using all pins of pwm in pic 18f2431
    By jorgequesada in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 4th May 2007, 21:43
  5. 18F2431 won't program or erase.
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 28th September 2006, 07:55

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts