s32k3 eMIOS IMP Mode

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

s32k3 eMIOS IMP Mode

1,564 Views
jfranklin
Contributor I

Hi, 

 

I'm currently trying to read in an input signal frequency using eMIOS IPM mode on an s32k3 micro. After I wait for the Status register to tell me it's captured a measurement, I read the A register first, then the B register, and perform the period calculation for both cases (Normal case, and overflow case). However, the calculation instead gives me either the "High Time" or the "Low time", not the period of the signal. It appears that the IPM mode is giving me the high/low duty cycle instead of the period. Any thoughts to figure this out? I've confirmed the Control register is using the correct mode.

 

Thanks

0 Kudos
Reply
4 Replies

1,502 Views
jfranklin
Contributor I

Hi, it's our own software. Our goal is to not use the gui that's provided. Basically I'm just trying to read the period of a frequency input. It seems that even though IPM mode should only update on only rising or only falling edges, it seems to be updating on both rising and falling.

0 Kudos
Reply

1,479 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @jfranklin 

If possible could you share your configurations?

0 Kudos
Reply

1,538 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @jfranklin 

Are you using RTD controllers or custom software? Could you provide us with more information about your application?

 

BR, VaneB

0 Kudos
Reply

229 Views
gayancho
Contributor II

@VaneB Hi,
I'm also facing similar problems can you share the configuration like how i can  configure the EMIOS for the measuring the frequency.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1964561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Es32k3%20eMIOS%20IMP%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1964561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI'm%20currently%20trying%20to%20read%20in%20an%20input%20signal%20frequency%20using%20eMIOS%20IPM%20mode%20on%20an%20s32k3%20micro.%20After%20I%20wait%20for%20the%20Status%20register%20to%20tell%20me%20it's%20captured%20a%20measurement%2C%20I%20read%20the%20A%20register%20first%2C%20then%20the%20B%20register%2C%20and%20perform%20the%20period%20calculation%20for%20both%20cases%20(Normal%20case%2C%20and%20overflow%20case).%20However%2C%20the%20calculation%20instead%20gives%20me%20either%20the%20%22High%20Time%22%20or%20the%20%22Low%20time%22%2C%20not%20the%20period%20of%20the%20signal.%20It%20appears%20that%20the%20IPM%20mode%20is%20giving%20me%20the%20high%2Flow%20duty%20cycle%20instead%20of%20the%20period.%20Any%20thoughts%20to%20figure%20this%20out%3F%20I've%20confirmed%20the%20Control%20register%20is%20using%20the%20correct%20mode.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291355%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k3%20eMIOS%20IMP%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291355%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%26nbsp%3BHi%2C%3CBR%20%2F%3EI'm%20also%20facing%20similar%20problems%20can%20you%20share%20the%20configuration%20like%20how%20i%20can%26nbsp%3B%20configure%20the%20EMIOS%20for%20the%20measuring%20the%20frequency.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1965860%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k3%20eMIOS%20IMP%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1965860%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241289%22%20target%3D%22_blank%22%3E%40jfranklin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20possible%20could%20you%20share%20your%20configurations%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1965250%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k3%20eMIOS%20IMP%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1965250%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20it's%20our%20own%20software.%20Our%20goal%20is%20to%20not%20use%20the%20gui%20that's%20provided.%20Basically%20I'm%20just%20trying%20to%20read%20the%20period%20of%20a%20frequency%20input.%20It%20seems%20that%20even%20though%20IPM%20mode%20should%20only%20update%20on%20only%20rising%20or%20only%20falling%20edges%2C%20it%20seems%20to%20be%20updating%20on%20both%20rising%20and%20falling.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1964802%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k3%20eMIOS%20IMP%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1964802%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241289%22%20target%3D%22_blank%22%3E%40jfranklin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAre%20you%20using%20RTD%20controllers%20or%20custom%20software%3F%20Could%20you%20provide%20us%20with%20more%20information%20about%20your%20application%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E