Encoder interfacing with dsPIC33FJ256MC710
Posted: Thu Nov 20, 2008 6:15 pm
Hi Lubin,
I expose the problem:
I'm working on the Flex (full version) and I have to interface two incremental rotary encoders, both with 2 channels;
the control I've dveloped is formed by the two encoder signals in input (processed by QEI or other; I never thought about yet)
and the torque for the electric motor in output (there are differences using OC or PWMout block?).
I'm asking to myself where I can place it: in the gpio, one in gpio and the other in QEI, or with an external chip (like hctl2032)?
for all this solutions I would also need the simulink blocks. I'm not so expert in this field for create the c functions and than the blocks,
and also for conversions of the type.
Can I have your help?
thanks
Giulio
I expose the problem:
I'm working on the Flex (full version) and I have to interface two incremental rotary encoders, both with 2 channels;
the control I've dveloped is formed by the two encoder signals in input (processed by QEI or other; I never thought about yet)
and the torque for the electric motor in output (there are differences using OC or PWMout block?).
I'm asking to myself where I can place it: in the gpio, one in gpio and the other in QEI, or with an external chip (like hctl2032)?
for all this solutions I would also need the simulink blocks. I'm not so expert in this field for create the c functions and than the blocks,
and also for conversions of the type.
Can I have your help?
thanks
Giulio