Reading incremental encoder interupt


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I need to count the pulses, determinate if it is going CW or CCW
    I would use the one HCTL2000 quadrature decoder/counter interface.

    See details on datasheet @ http://www.datasheetcatalog.org/data.../HCTL-2000.pdf

    Al.
    All progress began with an idea

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    What type of frequency are we talking about here? If it's rather low frequency, like a knob used to navigate a user interface etc then perhaps using the 'Change-on-PortB' interrupt and decode and keep count in software. If we're talking higher frequencies, like for motorcontrol etc then you might want to look at the 18F24x1 series PICs as they have a QEI-module on board. In any case - use the USART for comms.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Last edited by Archangel; - 14th July 2009 at 06:56.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Thank you

    maximum frequency will be around 1000 Pulses/sec

    Quote Originally Posted by HenrikOlsson View Post
    What type of frequency are we talking about here? If it's rather low frequency, like a knob used to navigate a user interface etc then perhaps using the 'Change-on-PortB' interrupt and decode and keep count in software. If we're talking higher frequencies, like for motorcontrol etc then you might want to look at the 18F24x1 series PICs as they have a QEI-module on board. In any case - use the USART for comms.

Similar Threads

  1. decoding quadrature encoders
    By ice in forum mel PIC BASIC Pro
    Replies: 93
    Last Post: - 28th February 2017, 09:02
  2. Quadrature encoder and ASM Interrupts. questions..
    By godfodder in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th March 2013, 14:45
  3. Instant Int and encoder (Elect. Gearing)
    By boroko in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 29th November 2009, 02:29
  4. encoder HEDL 5540
    By kutsi in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th June 2007, 14:00
  5. encoder wowes
    By wallaby in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 6th December 2005, 21:56

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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