We are developing an application that uses a position sensor with a quadrature encoder output. Our goal is to configure the Quadrature Decoder peripheral of the S32K142 microcontroller, specifically the PTC7 (Phase A) and PTC6 (Phase B) pins of the FMT1 module, to accurately sense the position of a motor shaft.
We have been searching through forums and online resources for information on how to configure Processor Expert and use the HAL functions from NXP to access the values calculated by the microcontroller. However, we haven’t found clear documentation or specific examples for this peripheral.
Could someone provide us with a concrete example of how to configure the Quadrature Decoder on the S32K142 using Processor Expert? We also need guidance on how to properly configure Processor Expert for this application.
Any help in the form of examples, reference projects, or guides would be greatly appreciated.
Thank you in advance for your support!
Best regards,
Hi,
Thank you so much for your interest in our products and for using our community.
For FTM in Quadrature Decoder Mode using S32K14x derivatives you can refer to the PMSM demos of the Development Kit Application Software for MCSXTE2BK142 and MCSPTE1AK144, which are documented in the AN12235.
I recommend to follow the Getting Started User Guides, but first install the Development Kit Application Software and check the Release Notes files to see specific SW requirements.
Additionally, AN5303: Features and Operation Modes of FlexTimer Module on S32K – Application Note also perform the Quadrature Decoder Mode in AN5303SW. For this demo please use the same SW requirements as the MCSPTE1AK144.
Hope it helps you.
Have a nice day!