<?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>topic Routing signals to EMIOS channel from Trgmux (S32k3) in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Routing-signals-to-EMIOS-channel-from-Trgmux-S32k3/m-p/1733872#M8574</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to use the ICU peripheral on a S32k312 MCU.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Matlab R2022a, EB Tresos version 29.0.0, NXP MBDToolbox S32k3xx version 1.4.0 and NXP support package S32k3xx version 1.4.0.&lt;/P&gt;&lt;P&gt;I am currently working on an evaluation board (S32k312EVB-Q172) with a slightly modified version of a custom ISR example provided with the Matlab Toolbox (s32k3xx_isr_custom_code_ebt).&lt;/P&gt;&lt;P&gt;My goal is to route signals from pins to trgmux, then to LCU, then back into an Emios channel for measurements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As part of this goal, the first step I managed to do using the example is to use a pin (PTA19) directly as&amp;nbsp;EMIOS_1_EMIOS_1_CH_1_H_IN (Emios 1 channel 1 input) to trigger an interrupt on rising edge event:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexCloutier_0-1696440236990.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243623iF196E45A64D1CE19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexCloutier_0-1696440236990.png" alt="AlexCloutier_0-1696440236990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This part is working for me, as the blue led is flashed when the signals is switching from low to high according to my modified Simulink model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, when I try to route PTA19 through TRGMUX_TRGMUX_IN13_IN into&amp;nbsp;TRGMUX_IP_OUTPUT_EMIOS1_CH1_4_IPP_IND_CH1, the same behavior is not observed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the various attempt and testing I made, it seems like the signal is never actually inputted into Emios 1 channel 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something missing in my configuration to input into an Emios channel from Trgmux?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is my current, not working,&amp;nbsp; Simulink model folder.&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;Alex Cloutier&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 17:40:58 GMT</pubDate>
    <dc:creator>AlexCloutier</dc:creator>
    <dc:date>2023-10-04T17:40:58Z</dc:date>
    <item>
      <title>Routing signals to EMIOS channel from Trgmux (S32k3)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Routing-signals-to-EMIOS-channel-from-Trgmux-S32k3/m-p/1733872#M8574</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to use the ICU peripheral on a S32k312 MCU.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Matlab R2022a, EB Tresos version 29.0.0, NXP MBDToolbox S32k3xx version 1.4.0 and NXP support package S32k3xx version 1.4.0.&lt;/P&gt;&lt;P&gt;I am currently working on an evaluation board (S32k312EVB-Q172) with a slightly modified version of a custom ISR example provided with the Matlab Toolbox (s32k3xx_isr_custom_code_ebt).&lt;/P&gt;&lt;P&gt;My goal is to route signals from pins to trgmux, then to LCU, then back into an Emios channel for measurements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As part of this goal, the first step I managed to do using the example is to use a pin (PTA19) directly as&amp;nbsp;EMIOS_1_EMIOS_1_CH_1_H_IN (Emios 1 channel 1 input) to trigger an interrupt on rising edge event:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexCloutier_0-1696440236990.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243623iF196E45A64D1CE19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexCloutier_0-1696440236990.png" alt="AlexCloutier_0-1696440236990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This part is working for me, as the blue led is flashed when the signals is switching from low to high according to my modified Simulink model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, when I try to route PTA19 through TRGMUX_TRGMUX_IN13_IN into&amp;nbsp;TRGMUX_IP_OUTPUT_EMIOS1_CH1_4_IPP_IND_CH1, the same behavior is not observed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the various attempt and testing I made, it seems like the signal is never actually inputted into Emios 1 channel 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something missing in my configuration to input into an Emios channel from Trgmux?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is my current, not working,&amp;nbsp; Simulink model folder.&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;Alex Cloutier&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 17:40:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Routing-signals-to-EMIOS-channel-from-Trgmux-S32k3/m-p/1733872#M8574</guid>
      <dc:creator>AlexCloutier</dc:creator>
      <dc:date>2023-10-04T17:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Routing signals to EMIOS channel from Trgmux (S32k3)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Routing-signals-to-EMIOS-channel-from-Trgmux-S32k3/m-p/1746050#M8629</link>
      <description>&lt;P&gt;Hello, I am still having this issue. Is there something wrong with my configuration ?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 15:57:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Routing-signals-to-EMIOS-channel-from-Trgmux-S32k3/m-p/1746050#M8629</guid>
      <dc:creator>AlexCloutier</dc:creator>
      <dc:date>2023-10-25T15:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Routing signals to EMIOS channel from Trgmux (S32k3)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Routing-signals-to-EMIOS-channel-from-Trgmux-S32k3/m-p/1750928#M8648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/222228"&gt;@AlexCloutier&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have investigated the described use case together with the attached model and configuration project provided in the thread, and based on this, I would like to provide the following information:&lt;/P&gt;
&lt;P&gt;The EB Tresos configuration is complete, in the sense that all the settings are correctly enabled for ICU, TRGMUX and for the PORT component (PTA19 configuration).&lt;/P&gt;
&lt;P&gt;However, one additional operation must be performed in order to specify that the EMIOS1_CH1 should take its source signal from the output of TRGMUX. This should be done by setting the proper value (in this case 0110) inside the SIUL_IMCR593 register (Input Multiplexed Signal Configuration Register), as it is defined inside the IOMUX file which you could find attached to the &lt;STRONG&gt;S32K3xx MCU Family - Reference Manual&lt;/STRONG&gt;. Please check the screenshot below, taken from the IOMUX file, containing the input muxing of EMIOS1_CH1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_0-1698912808081.png" style="width: 522px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248092iCE3228C1FCE71DE9/image-dimensions/522x67?v=v2" width="522" height="67" role="button" title="Irina_Costachescu_0-1698912808081.png" alt="Irina_Costachescu_0-1698912808081.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This setting is not accessible from EB Tresos, so, to enable this connection inside our model, I would propose the following steps:&lt;/P&gt;
&lt;P&gt;1. Open the Hardware Settings of the model&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_1-1698913034186.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248093iEE100E774A05D8A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_1-1698913034186.png" alt="Irina_Costachescu_1-1698913034186.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Open the Board Initialization sequence - here, all the peripherals, pins and clocks are initialized with the settings made in the configuration project&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_2-1698913062805.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248094iA769BD0B6B5E46E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_2-1698913062805.png" alt="Irina_Costachescu_2-1698913062805.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. After initializing the Port component, add the IMCR register setting for EMIOS1_CH1 as illustrated below, press the Save button from the upper left side of the window and close the Board Initialization GUI.&lt;/P&gt;
&lt;P&gt;Please note that the IMCRs defined in the IOMUX file &lt;STRONG&gt;have an offset of 512&lt;/STRONG&gt; with respect to the IMCR number defined in the SIUL2 memory map, hence the writing operation to register IMCR[81] (593 - 512 = 81).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_3-1698913095444.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248096i1EB8B6F333EEB240/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_3-1698913095444.png" alt="Irina_Costachescu_3-1698913095444.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4. Apply the settings in the Configuration Parameters by clicking the bottom right &lt;STRONG&gt;Apply&lt;/STRONG&gt; button.&lt;/P&gt;
&lt;P&gt;5. Rebuild the model&lt;/P&gt;
&lt;P&gt;Please let us know if this solution works&lt;/P&gt;
&lt;P&gt;Thank you,&lt;BR /&gt;Irina&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 08:25:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Routing-signals-to-EMIOS-channel-from-Trgmux-S32k3/m-p/1750928#M8648</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2023-11-02T08:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Routing signals to EMIOS channel from Trgmux (S32k3)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Routing-signals-to-EMIOS-channel-from-Trgmux-S32k3/m-p/1756457#M8664</link>
      <description>&lt;P&gt;Hello Irina,&lt;/P&gt;&lt;P&gt;Thank you for your response. It was indeed the correct answer.&lt;/P&gt;&lt;P&gt;Do you have any insight as to why this register is not configured automatically when using EB tresos ?&lt;BR /&gt;Is it configurable via S32 configuration tool?&lt;BR /&gt;&lt;BR /&gt;Anything special about this register that makes non configurable via EB tresos?&lt;/P&gt;&lt;P&gt;I'm asking this question to have better insight on how EB tresos configuration works if a similar problem arises in the future when trying to configure other peripherals.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Alex Cloutier&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 18:50:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Routing-signals-to-EMIOS-channel-from-Trgmux-S32k3/m-p/1756457#M8664</guid>
      <dc:creator>AlexCloutier</dc:creator>
      <dc:date>2023-11-13T18:50:33Z</dc:date>
    </item>
  </channel>
</rss>

