Nov 24, 2015
04:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 24, 2015
04:47 AM
I am using the POSIF in the Quadrature Decoder mode.
My problem is that the first movement is sometimes decoded in the wrong direction.
After initialization the QCSV and QPSV bits in the PDBG register reflect the state of the PhaseA and PhaseB inputs. These seem to be correct for all states except when both are high. In this case both bits are low. After moving the sensor 4 positions both phases are high again and the bits are then correctly set to 1.
This error seems to cause the direction bit to be initialized incorrectly, which has the effect that this first movement is detected in the incorrect direction when the sensor starts with both phases high.
Is this a know error? Am I doing something wrong during the initialization? Is there a work-around?
My problem is that the first movement is sometimes decoded in the wrong direction.
After initialization the QCSV and QPSV bits in the PDBG register reflect the state of the PhaseA and PhaseB inputs. These seem to be correct for all states except when both are high. In this case both bits are low. After moving the sensor 4 positions both phases are high again and the bits are then correctly set to 1.
This error seems to cause the direction bit to be initialized incorrectly, which has the effect that this first movement is detected in the incorrect direction when the sensor starts with both phases high.
Is this a know error? Am I doing something wrong during the initialization? Is there a work-around?
- Tags:
- IFX
2 Replies
May 27, 2019
02:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 27, 2019
02:56 AM
Is there any workaround? What have we do wrong?
Jun 06, 2019
04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 06, 2019
04:18 AM
Hello, amanning.
This issue is interesting for me too. I want to use quadrature encoder for calculation position by connect POSIF to CCU8, however for POSIF is no APP or example source code.
How you integrity POSIF in your project, DAVE CE PROJECT with LIB APPs or using only XMCLib?
This issue is interesting for me too. I want to use quadrature encoder for calculation position by connect POSIF to CCU8, however for POSIF is no APP or example source code.
How you integrity POSIF in your project, DAVE CE PROJECT with LIB APPs or using only XMCLib?