<?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 Adc triggered with pit timer FRDM-MCUXC242 in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Adc-triggered-with-pit-timer-FRDM-MCUXC242/m-p/2057948#M10307</link>
    <description>&lt;P&gt;Good morning,&lt;BR /&gt;I would like to trigger adc in dma with continuous acquisition with the timer pit set to 1ms. I have set both adc and pit in peripherals.h. The intention is to create a system of acquisition by the adc timed with the pit period, so that every 1ms that the pit gives the trigger to the adc it returns the conversion value to me. I have tried to execute this in the code I will attach below, but I only see it working properly if I activate the pit interrupt, could you tell me how I should make it work without the interrupt and only in trigger mode? Could you give me some feedback?&lt;BR /&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 14:57:02 GMT</pubDate>
    <dc:creator>Transidico</dc:creator>
    <dc:date>2025-03-07T14:57:02Z</dc:date>
    <item>
      <title>Adc triggered with pit timer FRDM-MCUXC242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Adc-triggered-with-pit-timer-FRDM-MCUXC242/m-p/2057948#M10307</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;I would like to trigger adc in dma with continuous acquisition with the timer pit set to 1ms. I have set both adc and pit in peripherals.h. The intention is to create a system of acquisition by the adc timed with the pit period, so that every 1ms that the pit gives the trigger to the adc it returns the conversion value to me. I have tried to execute this in the code I will attach below, but I only see it working properly if I activate the pit interrupt, could you tell me how I should make it work without the interrupt and only in trigger mode? Could you give me some feedback?&lt;BR /&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 14:57:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Adc-triggered-with-pit-timer-FRDM-MCUXC242/m-p/2057948#M10307</guid>
      <dc:creator>Transidico</dc:creator>
      <dc:date>2025-03-07T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adc triggered with pit timer FRDM-MCUXC242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Adc-triggered-with-pit-timer-FRDM-MCUXC242/m-p/2058873#M10308</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240937"&gt;@Transidico&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you disable the PIT interrupt, what are the changes you made on the code?&lt;/P&gt;
&lt;P&gt;What is the behavior when the interrupt is not enable? Does the code stay on a loop?&lt;/P&gt;
&lt;P&gt;The Timer Flag Register (PIT_TFLGn) should still set at the end of timer period even though the interrupt is not enabled, if in the MainLoop instead checking for your flag (pitTriggered) you check for the Timer Interrupt Flag and clear it afterwards do the behavior changes?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 16:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Adc-triggered-with-pit-timer-FRDM-MCUXC242/m-p/2058873#M10308</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2025-03-10T16:00:31Z</dc:date>
    </item>
  </channel>
</rss>

