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.

Quadrature Encoder Iinterface (QEI) od PIC

Status
Not open for further replies.

dmta

Member level 2
Joined
Mar 25, 2013
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Earth
Activity points
1,650
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
 

Hello!

I'm not sure you can do that with a PIC. Well, it depends on your encoder, but for instance
if you use a 16 bits encoder running at 6000 rpm, you will get 6.4 million transitions per second,
and catching interrupts at that speed will be tricky.
What kind of encoder is it?

Dora.

Update: apparently the encoder is not that performant. Just do the calculation to verify if it
can be done. 0.18 degree resolution means 2000 step per turn (therefore 11 bits). But with
4000 rpm, it's still quite a challenge, I guess.
 

Hi Dora, thanks for the reply,

The encoder module that I'm using is a 200 counts per rev and has 3 channels with A,B and INDEX. I havent decided on the crystal frequency.

An application note is available for DSPIC but I was wondering if you guys did this before.

Thank you
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top