<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MPC5xxx中的主题 Re: MPC5775B eMIOS Input Capture – Captured Value Always 0</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5775B-eMIOS-Input-Capture-Captured-Value-Always-0/m-p/2323740#M28341</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;check if IGF module is properly initialized as well. IGF is placed between MCU pads and eMIOS/eTPU module inputs and it is disabled by default. You need to enable respective IGF channel and bypass it at least.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Within debugger you can check eMIOS channel Status register to know if flag is set or at least UCIN value is changed and so external signal is fed to eMIOS channel input.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Feb 2026 12:51:44 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2026-02-26T12:51:44Z</dc:date>
    <item>
      <title>MPC5775B eMIOS Input Capture – Captured Value Always 0</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5775B-eMIOS-Input-Capture-Captured-Value-Always-0/m-p/2323622#M28340</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to read a PWM signal using &lt;STRONG&gt;eMIOS Input Capture&lt;/STRONG&gt; on the &lt;STRONG&gt;MPC5775B&lt;/STRONG&gt;, but the captured value is always 0 even though the input signal is present.&lt;/P&gt;&lt;HR /&gt;&lt;H2&gt;&lt;LI-EMOJI id="lia_small-blue-diamond" title=":small_blue_diamond:"&gt;&lt;/LI-EMOJI&gt; Hardware Setup&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;PWM is generated from an &lt;STRONG&gt;Arduino&lt;/STRONG&gt; at &lt;STRONG&gt;10 kHz&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Arduino PWM output is connected to &lt;STRONG&gt;MPC5775B eMIOS Channel 1&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Grounds of both boards are connected together&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The GPIO pin connected to the eMIOS channel is toggling correctly (verified using an oscilloscope)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H2&gt;&lt;LI-EMOJI id="lia_small-blue-diamond" title=":small_blue_diamond:"&gt;&lt;/LI-EMOJI&gt; Software Configuration (S32 Design Studio)&lt;/H2&gt;&lt;H3&gt;Global Initialization&lt;/H3&gt;&lt;PRE&gt;EMIOS_DRV_InitGlobal(INST_EMIOS_MC1, &amp;amp;eMIOS_Mc1_InitConfig0);
EMIOS_DRV_MC_CounterStart(INST_EMIOS_MC1, 23);
EMIOS_DRV_EnableGlobalEmios(INST_EMIOS_MC1);

EMIOS_DRV_IC_InitInputCaptureMode(INST_EMIOS_MC1, 1, &amp;amp;eMIOS_Ic1_ICChnConfig0);&lt;/PRE&gt;&lt;HR /&gt;&lt;H3&gt;Input Capture Read (Polling Mode)&lt;/H3&gt;&lt;PRE&gt;uint32_t value;
status_t status;

while (1)
{
    status = EMIOS_DRV_IC_GetLastMeasurement(INST_EMIOS_MC1, 1, &amp;amp;value);

    if (status == STATUS_SUCCESS)
    {
        printf("Captured value: %lu\r\n", value);
    }
}&lt;/PRE&gt;&lt;P&gt;No interrupts are being used (polling only).&lt;/P&gt;&lt;HR /&gt;&lt;H2&gt;&lt;LI-EMOJI id="lia_small-blue-diamond" title=":small_blue_diamond:"&gt;&lt;/LI-EMOJI&gt; Configuration Structures&lt;/H2&gt;&lt;H3&gt;Global Configuration&lt;/H3&gt;&lt;PRE&gt;const emios_common_param_t eMIOS_Mc1_InitConfig0 =
{
    .allowDebugMode = false,
    .lowPowerMode = false,
    .clkDivVal = 1U,
    .enableGlobalPrescaler = false,
    .enableGlobalTimeBase = false,
    .enableExternalTimeBase = false,
    .serverTimeSlot = 0U
};&lt;/PRE&gt;&lt;HR /&gt;&lt;H3&gt;Counter Channel Configuration (Channel 23)&lt;/H3&gt;&lt;PRE&gt;const emios_mc_mode_param_t eMIOS_Mc1_CntChnConfig0 =
{
    .mode = EMIOS_MODE_MC_UP_CNT_CLR_START_INT_CLK,
    .period = 10000UL,
    .internalPrescaler = EMIOS_CLOCK_DIVID_BY_1,
    .internalPrescalerEn = true,
    .filterInput = EMIOS_INPUT_FILTER_BYPASS,
    .filterEn = false,
    .triggerMode = EMIOS_TRIGGER_EDGE_FALLING
};&lt;/PRE&gt;&lt;HR /&gt;&lt;H3&gt;Input Capture Configuration (Channel 1)&lt;/H3&gt;&lt;PRE&gt;const emios_input_capture_param_t eMIOS_Ic1_ICChnConfig0 =
{
    .mode = EMIOS_MODE_IC,
    .timebase = EMIOS_BUS_SEL_A,
    .filterInput = EMIOS_INPUT_FILTER_BYPASS,
    .filterEn = false,
    .inputCaptureMode = EMIOS_FALLING_EDGE_PERIOD_MEASUREMENT
};&lt;/PRE&gt;&lt;HR /&gt;&lt;H2&gt;&lt;LI-EMOJI id="lia_small-blue-diamond" title=":small_blue_diamond:"&gt;&lt;/LI-EMOJI&gt; Observations&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;STATUS_SUCCESS is always returned&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Captured value is always &lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The global bus counter is incrementing&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The GPIO input pin is toggling correctly&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Polling mode is used (no interrupts)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H2&gt;&lt;LI-EMOJI id="lia_small-blue-diamond" title=":small_blue_diamond:"&gt;&lt;/LI-EMOJI&gt; Questions&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Why is the captured value always 0 even though the signal is present?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there any flag that must be cleared manually before reading the measurement?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is additional configuration required for proper edge detection?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any guidance on what might be missing in the configuration would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 11:34:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5775B-eMIOS-Input-Capture-Captured-Value-Always-0/m-p/2323622#M28340</guid>
      <dc:creator>bharathn3402</dc:creator>
      <dc:date>2026-02-26T11:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5775B eMIOS Input Capture – Captured Value Always 0</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5775B-eMIOS-Input-Capture-Captured-Value-Always-0/m-p/2323740#M28341</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;check if IGF module is properly initialized as well. IGF is placed between MCU pads and eMIOS/eTPU module inputs and it is disabled by default. You need to enable respective IGF channel and bypass it at least.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Within debugger you can check eMIOS channel Status register to know if flag is set or at least UCIN value is changed and so external signal is fed to eMIOS channel input.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 12:51:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5775B-eMIOS-Input-Capture-Captured-Value-Always-0/m-p/2323740#M28341</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2026-02-26T12:51:44Z</dc:date>
    </item>
  </channel>
</rss>

