How to use eMIOS in QDEC mode on S32K396

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use eMIOS in QDEC mode on S32K396

Jump to solution
1,403 Views
Henrik-Wires
Contributor IV

I am trying to use the eMIOS QDEC mode to decode an A/B phase signal at fairly high speed (about 100KHz), but not sure how this should be configured in Design Studio. The end goal is to connect it to a model in MBDT.

Does the S32DS I/O Configurator support QDEC mode? The MCAL ICU driver supports SAIC and PWM modes. But it does not seem to support QDEC mode?

If not supported, what is the best approach to manually configure the eMIOS and the A/B inputs to the channel?

Or is there any other viable method to implement a Phase A/B quadrature decoder in S32K396? Looks like quadrature phase decoding is supported via eTPU as well?

0 Kudos
Reply
1 Solution
1,385 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

eMIOS on S32K396 does not have QDEC mode implemented. List of available modes is given in Table 335

PetrS_0-1763615373394.pngPetrS_0-1763615373394.png

The LCU can be configured to decode quadrature signals, see more in chapter 62.6.1.8 Incremental encoder of the RM.

eTPU supports quadrature phase decoding as well, as you wrote.

BR, Petr

View solution in original post

0 Kudos
Reply
2 Replies
1,245 Views
Henrik-Wires
Contributor IV

Thanks. I'll look into using the LCU, or maybe eTPU.

0 Kudos
Reply
1,386 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

eMIOS on S32K396 does not have QDEC mode implemented. List of available modes is given in Table 335

PetrS_0-1763615373394.pngPetrS_0-1763615373394.png

The LCU can be configured to decode quadrature signals, see more in chapter 62.6.1.8 Incremental encoder of the RM.

eTPU supports quadrature phase decoding as well, as you wrote.

BR, Petr

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2208538%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20use%20eMIOS%20in%20QDEC%20mode%20on%20S32K396%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2208538%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20trying%20to%20use%20the%20eMIOS%20QDEC%20mode%20to%20decode%20an%20A%2FB%20phase%20signal%20at%20fairly%20high%20speed%20(about%20100KHz)%2C%20but%20not%20sure%20how%20this%20should%20be%20configured%20in%20Design%20Studio.%20The%20end%20goal%20is%20to%20connect%20it%20to%20a%20model%20in%20MBDT.%3C%2FP%3E%3CP%3EDoes%20the%20S32DS%20I%2FO%20Configurator%20support%20QDEC%20mode%3F%20The%20MCAL%20ICU%20driver%20supports%20SAIC%20and%20PWM%20modes.%20But%20it%20does%20not%20seem%20to%20support%20QDEC%20mode%3F%3C%2FP%3E%3CP%3EIf%20not%20supported%2C%20what%20is%20the%20best%20approach%20to%20manually%20configure%20the%20eMIOS%20and%20the%20A%2FB%20inputs%20to%20the%20channel%3F%3CBR%20%2F%3E%3CBR%20%2F%3EOr%20is%20there%20any%20other%20viable%20method%20to%20implement%20a%20Phase%20A%2FB%20quadrature%20decoder%20in%20S32K396%3F%20Looks%20like%20quadrature%20phase%20decoding%20is%20supported%20via%20eTPU%20as%20well%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2217238%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20use%20eMIOS%20in%20QDEC%20mode%20on%20S32K396%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217238%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EeMIOS%20on%20S32K396%20does%20not%20have%20QDEC%20mode%20implemented.%20List%20of%20available%20modes%20is%20given%20in%20Table%20335%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PetrS_0-1763615373394.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PetrS_0-1763615373394.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PetrS_0-1763615373394.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F366580iC9C1EDD22005A3EB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PetrS_0-1763615373394.png%22%20alt%3D%22PetrS_0-1763615373394.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPetrS_0-1763615373394.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20LCU%20can%20be%20configured%20to%20decode%20quadrature%20signals%2C%20see%20more%20in%20chapter%26nbsp%3B62.6.1.8%20Incremental%20encoder%20of%20the%20RM.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EeTPU%20supports%20quadrature%20phase%20decoding%20as%20well%2C%20as%20you%20wrote.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBR%2C%20Petr%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2255434%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20use%20eMIOS%20in%20QDEC%20mode%20on%20S32K396%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255434%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks.%20I'll%20look%20into%20using%20the%20LCU%2C%20or%20maybe%20eTPU.%3C%2FP%3E%3C%2FLINGO-BODY%3E