In V6, how is quadrature encoder reading implemented?
Some of Pics /DSPics has hardware encoder input channel?
Does it use its internal registers?
Quad Encoder reading
Moderator: Benj
-
Salih HORTUM
- Flowcode V4 User
- Posts: 2
- Joined: Fri Oct 15, 2010 11:46 am
- Contact:
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel