I have referred to the sampling scheme of AN13767, but we have low-speed applications and want to use the M/T method to measure the motor position and speed. If the T method is used, should the measurement mode be ICU_MODE_SIGNAL_EDGE_DETECT or ICU_MODE_SIGNAL_MEASUREMENT? I find that the ICU_MODE_SIGNAL_EDGE_DETECT mode cannot detect overflow.
In addition, at high speed, these two modes will frequently enter interrupts. Is there a way to read the sampling period without triggering an interrupt?
Hi,
Thank you so much for your interest in our products and for using our community.
In AN13767, ICU_MODE_EDGE_COUNTER mode is used for shaft position measurement. And also in this example the interrupt is generated when the ADC conversion completed to perform FOC Calculation every 2 PWM periods in order to provide more CPU time for customer application use.
Hope it helps you.
Have a nice day!
I saw this application in the chip manual, but the LCU unit cannot read the output level directly, and it would waste more time to use an external interrupt. AN13767 also did not find a routine to calculate the direction of motion, I would like to ask what kind of treatment is better here.