Routing Comparator(LPCMP) Output to eMIOS (IPWM Mode) for Frequency Measurement

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Routing Comparator(LPCMP) Output to eMIOS (IPWM Mode) for Frequency Measurement

ソリューションへジャンプ
1,521件の閲覧回数
GaneshBhagwat
Contributor IV

Hi all,

I'm trying to route the output of the comparator to an eMIOS channel configured in IPWM mode, with the goal of measuring the frequency of the comparator's output. I’ve set up the TRGMUX configuration as shown below, but I’m not seeing any response on eMIOS channel 1 as expected.

Could someone please help me identify what might be missing or guide me on how to properly achieve this setup?

Thank you in advance!

GaneshBhagwat_0-1745231672484.png

 

0 件の賞賛
返信
1 解決策
1,465件の閲覧回数
GaneshBhagwat
Contributor IV

Hi,

I've tested the IPWM module separately and successfully generated the CMP output to the LCU. This output was then routed and verified—I've attached the corresponding waveform below.

I also tried configuring IPWM as an interrupt source via TRGMUX, but I didn’t receive any interrupt events. Interestingly, when I connect the signal directly to the pin, IPWM reads the values correctly(so there is no issue in the IPWM).

However, I believe I found a workaround for the TRGMUX issue. By configuring the LCU output again as an eMIOS input pin, I’m able to retrieve the desired signal as required.

That said, I’m facing a problem when trying to measure the period. It works fine when the measurement mode is set to DutyCycle, but when I switch to Period mode (IP → IPWM), I don’t get any values.

Currently, I'm using the Emios_Icu_Ip_GetDutyCycleValues() function, since the GetPulseWidth() function doesn’t return any values. How can I retrieve the period value when the channel is configured in IP mode using eMIOS_ICU?

Would appreciate your help on this.

 

**I’ve attached the comparator output, along with a reference to the `Emios_Icu_Ip_GetPulseWidth()` function. Since this function doesn’t return a value, could you please clarify how it’s intended to be used? Is it updating any internal register or buffer that we should access separately?

GaneshBhagwat_0-1745402522021.pngGaneshBhagwat_1-1745402572591.jpeg

 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,488件の閲覧回数
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

Please try the following steps:

  • Ensure IPWM measurement works with an external signal connected directly to a pin configured as eMIOS.
  • Route the CMP out signal to an external pin (through TRGMUX) to ensure the desired signal, for debugging purposes.

Hope it helps you. Please let me know your results.

Have a nice day!

0 件の賞賛
返信
1,466件の閲覧回数
GaneshBhagwat
Contributor IV

Hi,

I've tested the IPWM module separately and successfully generated the CMP output to the LCU. This output was then routed and verified—I've attached the corresponding waveform below.

I also tried configuring IPWM as an interrupt source via TRGMUX, but I didn’t receive any interrupt events. Interestingly, when I connect the signal directly to the pin, IPWM reads the values correctly(so there is no issue in the IPWM).

However, I believe I found a workaround for the TRGMUX issue. By configuring the LCU output again as an eMIOS input pin, I’m able to retrieve the desired signal as required.

That said, I’m facing a problem when trying to measure the period. It works fine when the measurement mode is set to DutyCycle, but when I switch to Period mode (IP → IPWM), I don’t get any values.

Currently, I'm using the Emios_Icu_Ip_GetDutyCycleValues() function, since the GetPulseWidth() function doesn’t return any values. How can I retrieve the period value when the channel is configured in IP mode using eMIOS_ICU?

Would appreciate your help on this.

 

**I’ve attached the comparator output, along with a reference to the `Emios_Icu_Ip_GetPulseWidth()` function. Since this function doesn’t return a value, could you please clarify how it’s intended to be used? Is it updating any internal register or buffer that we should access separately?

GaneshBhagwat_0-1745402522021.pngGaneshBhagwat_1-1745402572591.jpeg

 

0 件の賞賛
返信
1,362件の閲覧回数
GaneshBhagwat
Contributor IV
I have resolved this issue. can close the same
0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2083829%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%91%A8%E6%B3%A2%E6%95%B0%E6%B8%AC%E5%AE%9A%E7%94%A8%E3%81%AEEMIOS%EF%BC%88IPWM%E3%83%A2%E3%83%BC%E3%83%89%EF%BC%89%E3%81%B8%E3%81%AE%E3%83%AB%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E3%82%B3%E3%83%B3%E3%83%91%E3%83%AC%E3%83%BC%E3%82%BF%EF%BC%88LPCMP%EF%BC%89%E5%87%BA%E5%8A%9B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2083829%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%9A%86%E3%81%95%E3%82%93%E3%80%81%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%3C%2FP%3E%3CP%3E%E3%82%B3%E3%83%B3%E3%83%91%E3%83%AC%E3%83%BC%E3%82%BF%E3%81%AE%E5%87%BA%E5%8A%9B%E3%81%AE%E5%91%A8%E6%B3%A2%E6%95%B0%E3%82%92%E6%B8%AC%E5%AE%9A%E3%81%99%E3%82%8B%E7%9B%AE%E7%9A%84%E3%81%A7%E3%80%81%E3%82%B3%E3%83%B3%E3%83%91%E3%83%AC%E3%83%BC%E3%82%BF%E3%81%AE%E5%87%BA%E5%8A%9B%E3%82%92IPWM%E3%83%A2%E3%83%BC%E3%83%89%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9FeMOS%E3%83%81%E3%83%A3%E3%83%B3%E3%83%8D%E3%83%AB%E3%81%AB%E3%83%AB%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E4%BB%A5%E4%B8%8B%E3%81%AB%E7%A4%BA%E3%81%99%E3%82%88%E3%81%86%E3%81%ABTRGMUX%E6%A7%8B%E6%88%90%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81eMOS%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB1%E3%81%A7%E6%9C%9F%E5%BE%85%E3%81%A9%E3%81%8A%E3%82%8A%E3%81%AB%E5%BF%9C%E7%AD%94%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%3CP%3E%E8%B6%B3%E3%82%8A%E3%81%AA%E3%81%84%E3%82%82%E3%81%AE%E3%82%92%E7%89%B9%E5%AE%9A%E3%81%99%E3%82%8B%E3%81%AE%E3%82%92%E6%89%8B%E4%BC%9D%E3%81%A3%E3%81%A6%E3%82%82%E3%82%89%E3%81%88%E3%81%BE%E3%81%99%E3%81%8B%E3%80%81%E3%81%BE%E3%81%9F%E3%81%AF%E3%81%93%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%82%92%E6%AD%A3%E3%81%97%E3%81%8F%E5%AE%9F%E7%8F%BE%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%82%92%E6%95%99%E3%81%88%E3%81%A6%E3%82%82%E3%82%89%E3%81%88%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%9F%3C%2FP%3E%3CP%3E%E3%81%8A%E6%89%8B%E6%95%B0%E3%81%A7%E3%81%99%E3%81%8C%E3%80%81%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22GaneshBhagwat_0-1745231672484.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22GaneshBhagwat_0-1745231672484.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F334062iF5699A8BA88F338C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22GaneshBhagwat_0-1745231672484.png%22%20alt%3D%22GaneshBhagwat_0-1745231672484.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2089500%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%EF%BC%9A%E5%91%A8%E6%B3%A2%E6%95%B0%E6%B8%AC%E5%AE%9A%E7%94%A8%E3%81%AE%E3%83%AB%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E3%82%B3%E3%83%B3%E3%83%91%E3%83%AC%E3%83%BC%E3%82%BF%EF%BC%88LPCMP%EF%BC%89%E3%81%AEEMIOS%EF%BC%88IPWM%E3%83%A2%E3%83%BC%E3%83%89%EF%BC%89%E3%81%B8%E3%81%AE%E5%87%BA%E5%8A%9B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2089500%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%81%93%E3%81%AE%E5%95%8F%E9%A1%8C%E3%82%92%E8%A7%A3%E6%B1%BA%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E5%90%8C%E3%81%98%E3%82%82%E3%81%AE%E3%82%92%E9%96%89%E3%81%98%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%3C%2FLINGO-BODY%3E