encoder example for XMC1302 ( XMC1000 motor control application kit)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
User20285
Level 1
Level 1
I know it's been asked for a long time, but there is no example project to demo the usage of encoder interface (A, B, I) for XMC1302. I am using the MCU board with motor's encoder wires connected to the MCU board directly. The inverter board is not connected.

I found one for XMC4000 https://www.infineonforums.com/threads/3540-XMClib-POSIF-as-Quadrature-encoder-example, and I tried to follow the steps to configure POSIF and CCU4, just to test the encoder itself.

The code files are included in the zip file attached. The three files are used in the PMSM_FOC_SL_XMC13 project.

The encoder wires are connected this way: A to P0.13, B to P1.1, Index to P0.15 and of course 5V and GND. However, when the motor is manually rotated, there is no interrupt.

Would anyone please help to take a look what's wrong in the code? Thanks a lot in advance.

Steve
0 Likes
0 Replies