Hey, everyone
I have another question. It seems that everything on dsPIC33 is a bit hard to find information on. Right now, I'm trying to use the QEI module, but I do not understand how to even use the peripheral library. I looked in the dsPIC33 family QEI datasheet, the dsPIC33EP32MC204 datasheet, the 93002A Microchip datasheet, and outline, but I can't find any place that explains the various registers. Additionally, I do know how one would determine the direction of either the position or velocity.
The functions are:
3.4 Read32bitQEIxPositionCounter
3.5 Read32bitQEIxCapture
3.6 Read32bitQEIxIndexCounter
3.7 Read32bitQEIxIntervalTimer
3.8 Read32bitQEIxVelocityCounter
3.9 Write32bitQEIxGreaterEqual
3.10 Write32bitQEIxIndexCounter
3.11 Write32bitQEIxInitialization
3.12 Write32bitQEIxIntervalTimer
3.13 Write32bitQEI1LesserEqual
3.14 Write32bitQEIxPositionCounter
1. I am unsure how the position/velocity direction work
2. I do not know what the capture read is supposed to do
3. I do not know if the only way to infer position sign is to use the index counter and whether is overflowed.
4. I think two logical things for the greater or lesser than functions to do are to either set the values at which interrupts will be greater and/or set a maximum/minimum vaue for the position counter.
In general, I just do not understand. I've looked everywhere I could. I also signed up for the microchip forums, but I haven't been admitted. If someone could point me in the right way, that would be lovely. Thank you.