<?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 Re: S32K312 BCTU FIFO/loop switch (non AUTOSAR prj) in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K312-BCTU-FIFO-loop-switch-non-AUTOSAR-prj/m-p/2319186#M56871</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179750"&gt;@Drifter22&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I think both modes are fairly common applications, and I see no issue with applying them to your routine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Mode 1, I recommend configuring&amp;nbsp;FIFO + Watermark, as this would enable you to raise an interrupt for a completed "set" of ADC channels. Just keep in mind that notifications are done in a N + 1 logic, meaning that i&lt;SPAN&gt;f you have watermark set to 3, notification is called when there are 4 entries in the FIFO and you can do 4 readings of FIFO.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For Mode 2, I think you have two choices. Either SW-triggered BCTU as you've mentioned or continuous ADC scanning (if you do not need various ADC instances). You can use either&amp;nbsp;Adc_Sar_Ip_GetConvData or&amp;nbsp;Adc_Sar_Ip_GetConvResultsToArray to extract the channel result,&lt;/P&gt;
&lt;P&gt;There are various BCTU + ADC examples in our community, which may prove useful:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/S32M-Knowledge-Base/S32M27x-S32K3-eMIOS-BTCU-ADC-DMA-RTD600/ta-p/2155542" target="_blank"&gt;S32M27x/S32K3 – eMIOS/BTCU/ADC/DMA – [RTD600]&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/RTD400-LLD-K344-Center-Aligned-PWM-Trigger-ADC-BCTU/ta-p/2034211" target="_blank"&gt;[RTD400 LLD]K344 Center Aligned PWM Trigger ADC BCTU&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/S32K3-Motor-control-SW-examples/ta-p/1804577" target="_blank"&gt;S32K3 Motor control SW examples&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-PIT-BTCU-ADC-1-BCTU-ADC-DATA-REG-DMA-DS3-5/ta-p/1787778" target="_blank"&gt;Example S32K312 PIT BTCU ADC-1 BCTU_ADC_DATA_REG DMA DS3.5 RTD300&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
    <pubDate>Tue, 17 Feb 2026 18:18:40 GMT</pubDate>
    <dc:creator>Julián_AragónM</dc:creator>
    <dc:date>2026-02-17T18:18:40Z</dc:date>
    <item>
      <title>S32K312 BCTU FIFO/loop switch (non AUTOSAR prj)</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-BCTU-FIFO-loop-switch-non-AUTOSAR-prj/m-p/2317779#M56800</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've read so many posts regarding BCTU topic and examples too, but I'm a bit confused about best configuration for my purpose.&lt;/P&gt;&lt;P&gt;Into my project I have 2 system statuses:&lt;/P&gt;&lt;P&gt;1- (DC brushed motor PWM active) ADC acquisitions triggered by Emios_1_12 PWM in order to read motor current and other channels synchronized with PWM frequency (and duty)&lt;/P&gt;&lt;P&gt;2- (no actuation) I'd like to acquire same channels from ADC continously without interruptions and then I'll read via SW only the channel that I need for a particular task.&lt;/P&gt;&lt;P&gt;My analysis:&lt;/P&gt;&lt;P&gt;Mode 1: BCTU HW triggered and list with all needed channels&lt;/P&gt;&lt;P&gt;Mode 2: BCTU triggered started once via SW and with loop mode active, in order to let conversions run continously.&lt;/P&gt;&lt;P&gt;I need to switch between these two modes (by disabling HW trigger or stopping loop mode), so I'd like to know which is the best solution and maybe alternatives.&lt;/P&gt;&lt;P&gt;My question is related also to which destination to use for results: for mode 2 I'd use ADC registers and then read with&amp;nbsp;Adc_Sar_Ip_GetConvResultsToArray() API. For mode 1 I haven't found a way to specify an interrupt callback when all acquisistions of the channel list is done (independently from ADC instance) because I noted that it is possible to specify a "List last conversion notification" into "Bctu ADC Notifications" (NXP Configuration tool - MEX file) but I'll have an interrupt for each ADC (2 in my case), instead I'd like to have a single interrupt for all conversions of the list finished: for this reason I'm thinking to use FIFO and watermark.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For internal policy, I can't share my entire project at the moment.&lt;BR /&gt;Channels added into screenshots are both on ADC1 just for testing, but then I'll have to add other channels from ADC0.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 10:27:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-BCTU-FIFO-loop-switch-non-AUTOSAR-prj/m-p/2317779#M56800</guid>
      <dc:creator>Drifter22</dc:creator>
      <dc:date>2026-02-13T10:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 BCTU FIFO/loop switch (non AUTOSAR prj)</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-BCTU-FIFO-loop-switch-non-AUTOSAR-prj/m-p/2319186#M56871</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179750"&gt;@Drifter22&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I think both modes are fairly common applications, and I see no issue with applying them to your routine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Mode 1, I recommend configuring&amp;nbsp;FIFO + Watermark, as this would enable you to raise an interrupt for a completed "set" of ADC channels. Just keep in mind that notifications are done in a N + 1 logic, meaning that i&lt;SPAN&gt;f you have watermark set to 3, notification is called when there are 4 entries in the FIFO and you can do 4 readings of FIFO.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For Mode 2, I think you have two choices. Either SW-triggered BCTU as you've mentioned or continuous ADC scanning (if you do not need various ADC instances). You can use either&amp;nbsp;Adc_Sar_Ip_GetConvData or&amp;nbsp;Adc_Sar_Ip_GetConvResultsToArray to extract the channel result,&lt;/P&gt;
&lt;P&gt;There are various BCTU + ADC examples in our community, which may prove useful:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/S32M-Knowledge-Base/S32M27x-S32K3-eMIOS-BTCU-ADC-DMA-RTD600/ta-p/2155542" target="_blank"&gt;S32M27x/S32K3 – eMIOS/BTCU/ADC/DMA – [RTD600]&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/RTD400-LLD-K344-Center-Aligned-PWM-Trigger-ADC-BCTU/ta-p/2034211" target="_blank"&gt;[RTD400 LLD]K344 Center Aligned PWM Trigger ADC BCTU&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/S32K3-Motor-control-SW-examples/ta-p/1804577" target="_blank"&gt;S32K3 Motor control SW examples&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-PIT-BTCU-ADC-1-BCTU-ADC-DATA-REG-DMA-DS3-5/ta-p/1787778" target="_blank"&gt;Example S32K312 PIT BTCU ADC-1 BCTU_ADC_DATA_REG DMA DS3.5 RTD300&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 18:18:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-BCTU-FIFO-loop-switch-non-AUTOSAR-prj/m-p/2319186#M56871</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2026-02-17T18:18:40Z</dc:date>
    </item>
  </channel>
</rss>

