Quad Encoder reading

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Salih HORTUM
Flowcode V4 User
Posts: 2
Joined: Fri Oct 15, 2010 11:46 am
Contact:

Quad Encoder reading

Post by Salih HORTUM »

In V6, how is quadrature encoder reading implemented?
Some of Pics /DSPics has hardware encoder input channel?
Does it use its internal registers?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Quad Encoder reading

Post by Benj »

Hello,

The encoder components rely on calling a sample macro to check the state of the two signals from the encoder. We do not rely on internal hardware to drive this as it is fairly simple and will run on every target.

If the sample macro is triggered with a PORT change interrupt or high speed timer interrupt then you should never miss a pulse.

Post Reply