I am currently working on a project utilizing the i.MX RT1170, and I am interested in implementing a Differential Phase x2 mode using the TMR module. I have noticed in the documentation that the TMR supports Differential Phase x4 mode, as detailed in the "Quadrature-Count Mode" section. This mode can be enabled through the CTRL[CM] configuration.
However, I have been unable to find specific information regarding the configuration settings for Differential Phase x2 mode. Could you please clarify if the i.MX RT1170 supports Differential Phase x2 within its TMR capabilities?
Solved! Go to Solution.
Hi @chaseshen ,
I apologize for the late reply. On this issue, I submitted it to internal colleagues for discussion, and the result of the discussion was: The requirements you are asking for can only be solved using Quadrature Mode, and not as I had previously envisioned. You are correct, I made an error here. And the RT1170 TMR is not capable of x2 mode.
We sincerely apologize for any inconvenience caused.
Best regards,
Gavin
Thank you for your prompt response regarding the quadrature decoder capabilities of the RT1170. I understand from your explanation that the integrated decoder only supports x4 mode and lacks hardware support for x2 mode.
You suggested the possibility of using Signed-Count Mode, dividing the task to separately calculate rising and falling edges, to achieve the x2 functionality. However, based on my understanding of Signed-Count Mode and differential X2, I have reservations about the feasibility of this approach.
My understanding of differential x2, also known as double edge detection, involves counting both the rising and falling edges of a single phase. A typical rotary encoder outputs two channels, A and B, which are 90 degrees out of phase, facilitating direction detection. By counting both edges of one quadrature signal, we effectively double the encoder's resolution. For instance, an encoder with 100 pulses per revolution (PPR) on one channel can achieve 200 detectable events per revolution by utilizing differential x2.
Additionally, as illustrated in the attached diagram, it is necessary to combine both Phase A and Phase B to ascertain directional changes. The implementation of Signed-Count Mode in conjunction with software appears to present significant challenges.
I look forward to your insights or alternative solutions that could accommodate the differential x2 within the constraints of the RT1170's hardware capabilities.
Hi @chaseshen ,
Thanks for your interest in NXP MIMXRT series.
As you can see, the RT1170's Quadrature decoder integrated only supports x4 mode, and does not provide support for x2 mode at the hardware level.
But in your usage scenario, using Signed-Count Mode may be helpful.
Splitting it in two, one to calculate the rising edge and one to calculate the falling edge, should be able to achieve the x2 you describe.
Best regards,
Gavin
Thank you for your prompt response regarding the quadrature decoder capabilities of the RT1170. I understand from your explanation that the integrated decoder only supports x4 mode and lacks hardware support for x2 mode.
You suggested the possibility of using Signed-Count Mode, dividing the task to separately calculate rising and falling edges, to achieve the x2 functionality. However, based on my understanding of Signed-Count Mode and differential X2, I have reservations about the feasibility of this approach.
My understanding of differential x2, also known as double edge detection, involves counting both the rising and falling edges of a single phase. A typical rotary encoder outputs two channels, A and B, which are 90 degrees out of phase, facilitating direction detection. By counting both edges of one quadrature signal, we effectively double the encoder's resolution. For instance, an encoder with 100 pulses per revolution (PPR) on one channel can achieve 200 detectable events per revolution by utilizing differential x2.
Additionally, as illustrated in the attached diagram, it is necessary to combine both Phase A and Phase B to ascertain directional changes. The implementation of Signed-Count Mode in conjunction with software appears to present significant challenges.
I look forward to your insights or alternative solutions that could accommodate the differential x2 within the constraints of the RT1170's hardware capabilities.
Hi @chaseshen ,
I apologize for the late reply. On this issue, I submitted it to internal colleagues for discussion, and the result of the discussion was: The requirements you are asking for can only be solved using Quadrature Mode, and not as I had previously envisioned. You are correct, I made an error here. And the RT1170 TMR is not capable of x2 mode.
We sincerely apologize for any inconvenience caused.
Best regards,
Gavin