Remove Text Formatting
Loading...

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2014
    Posts
    10

    Default Can I use an Absolute rotary encoder 12bit resolution with a PIC18F4550 ?

    http://uk.farnell.com/broadcom-limit...rpm/dp/2467468


    As title...

    Has anyone successfully read from a 12bit absolute encoder using a PIC18F or similar?

    I'd love to get this to work as I have two immediate applications and the price of the thing is very reasonable.


    I'm not new to coding but am new to coding on embedded devices.

    Thanks,

    Wilson Logan.

  2. #2
    Join Date
    Sep 2009
    Posts
    609

    Default Re: Can I use an Absolute rotary encoder 12bit resolution with a PIC18F4550 ?

    You can use it with any PIC. Just use shiftin
    Position var word
    ReadSensor:
    pinCS=0
    SHIFTIN DataPin, ClockPin, 6,[Position\12]
    pinCS=1
    RETURN
    Maybe pause is needed, depending on oscillator speed.
    That is it...

  3. #3
    Join Date
    Aug 2014
    Posts
    10

    Default Re: Can I use an Absolute rotary encoder 12bit resolution with a PIC18F4550 ?

    Thanks!,

    That's a lot simpler than I imagined it would be.

    Cheers,

    Wilson.

Similar Threads

  1. Absolute encoder with Petherick code
    By stojakovicv in forum mel PIC BASIC
    Replies: 3
    Last Post: - 1st April 2016, 16:36
  2. Using an incremental rotary encoder?
    By keithv in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2016, 23:23
  3. Paralel switches with a Rotary encoder
    By critix in forum Code Examples
    Replies: 5
    Last Post: - 18th June 2014, 13:12
  4. New approach to Rotary Encoder
    By Ioannis in forum Code Examples
    Replies: 90
    Last Post: - 11th July 2013, 21:05

Members who have read this thread : 23

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