Reading incremental encoder interupt


Results 1 to 9 of 9

Threaded View

  1. #7
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default

    Hi ,
    i wrote a picbasic program to read an optical incremental encoder : it used in my DDS frequency generator ( not finished at the moment ) But the encoder piece of program works very well .
    Please note that I am not a software engineer and so the program is not optimized at all.
    Comments are in italian but it is easy to find out the encoder piece that you need.
    Pls: let me know ...
    Ambrogio
    IW2FVO
    North Italy



    Quote Originally Posted by RFsolution View Post
    Hi

    I would like to make a small project to read an incremental encoder
    with differencial A/B outputs and send its position on request via RS232

    I need to count the pulses, determinate if it is going CW or CCW
    on a serial request I need to send the number of counted pulses via RS232

    Which way shall I go:

    Use I/O ports for the A & B pulses and use a Hardware UART to handle the incoming request of the encoder (the request command is only 2 bytes)

    Or count the pulses of the encoder with an interupt based routine ?

    Any idea's are welcome
    Attached Files Attached Files

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