Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] How to use two encorders with PIC 18F2550

Status
Not open for further replies.

wolf12

Advanced Member level 4
Joined
Mar 31, 2011
Messages
109
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
2,102
Hello, I need to use two rotary encorders(better if three encorders are possible) and use interrupts to sense X,Y,Z position. How to do this with only 1 intterupt pin availble in PIC 18F2550?
Thanks
 

Four of the PORTB pins (RB7:RB4) have an interrupt on change feature.
Int0, Int1, Int2 on pins RB0, RB1, RB2.

Thats 7 external interrupts
 
  • Like
Reactions: wolf12

    wolf12

    Points: 2
    Helpful Answer Positive Rating
rotary-encoder.jpg

rotary-encoder-circuit.jpg
 

Attachments

  • !!! Potentiometer Rotary LED Encoder.rar
    2.9 MB · Views: 107
  • Like
Reactions: wolf12

    wolf12

    Points: 2
    Helpful Answer Positive Rating
If you want to use interrupts, you need to change the design layout.
Or you will have to poll the encoder inputs.
 
  • Like
Reactions: wolf12

    wolf12

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top