Convert Rotary Encoder Code from 16F628A to 16F1825


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Convert Rotary Encoder Code from 16F628A to 16F1825

    Yay!

    Well, stick with what works for you then.

    Cheers.
    DT

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Convert Rotary Encoder Code from 16F628A to 16F1825

    Thanks Darrel. I would have preferred your approach as its the more elegant solution, but oh well ...

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Convert Rotary Encoder Code from 16F628A to 16F1825

    (One last somewhat general question)

    If I'm using an external 20Mhz oscillator connected to the CLKIN/CLKOUT pins (RA5 & RA4, respectively) should I set their TRISA value to 1? Right now I have this:

    Code:
    TRISA    = %00000011     ' Make PortA pins 0-1 input for rotary encoder
    Should that be:

    Code:
    TRISA    = %00011011     ' Make PortA pins 0-1 input for rotary encoder, 4-5 for external oscillator

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