Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Quadrature Encoder Iinterface (QEI) od PIC

Status
Not open for further replies.

dmta

Member
Hi all,

Does anyone have an application note or a sample code on how to configure and read speed/position from the QEI module in PIC 18FXX31????????

Regards
 
Hi Ian thank you for the reply !!!!!!!

The output from the encoder is 200 counts per rev with phase A, B and an Index pulse.
 
I don't use an Index signal.... Just the quad input.

The small pic is just a state machine to determine motion and direction.

quadrature.PNG
 
Microchip have appnotes for the inbuilt quadrature encoder module. Check the Microchip page for the PIC "PIC 18FXX31" datasheet, down the bottom will be lots of PDFs including special appnotes. :)
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top