<?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 PIT_TFLG2, PIT for Injection conversion trigger for ADC, can't be cleared on MAC57D54MB in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/PIT-TFLG2-PIT-for-Injection-conversion-trigger-for-ADC-can-t-be/m-p/1575882#M16206</link>
    <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MAC57D54MB with MQX4.2 RTOS. By default, PIT_4 is running which is the&amp;nbsp;DMA1_Trigger #1. This runs well with the flags being cleared.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am having problems on&amp;nbsp;PIT_2 which is the&amp;nbsp;Injection conversion trigger for ADC. Its flag PIT_TFLG2 cannot be cleared when writing 1 to it(as suggested by reference manual). This is using a shared isr and PIT_4 still works well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is using the A5 core btw and even other PIT are run, same behavior occurs(its corresponding flag cannot be cleared).&lt;/P&gt;&lt;P&gt;Would appreciate if anyone suggest for me to try.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below code is the initialization of the PIT_2:&lt;/P&gt;&lt;P&gt;result = hwtimer_init(&amp;amp;PIT02, &amp;amp;BSP_SYSTIMER_DEV, PIT_ID_02, BSP_SYSTIMER_ISR_PRIOR);&lt;BR /&gt;if (MQX_OK != result) {&lt;BR /&gt;printf("\nhwtimer_init error");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;result = hwtimer_set_freq(&amp;amp;PIT02, 1000000, 10);&lt;BR /&gt;if (MQX_OK != result) {&lt;BR /&gt;printf("\nhwtimer_set_freq error");&lt;BR /&gt;hwtimer_deinit(&amp;amp;PIT02);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;result = hwtimer_callback_reg(&amp;amp;PIT02,(HWTIMER_CALLBACK_FPTR)_pit_isr_02, NULL);&lt;BR /&gt;if (MQX_OK != result) {&lt;BR /&gt;printf("\nhwtimer_callback_reg error");&lt;BR /&gt;hwtimer_deinit(&amp;amp;PIT02);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;result = hwtimer_start(&amp;amp;PIT02);&lt;BR /&gt;if (MQX_OK != result) {&lt;BR /&gt;printf("\nhwtimer_start error");&lt;BR /&gt;hwtimer_deinit(&amp;amp;PIT02);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 31 Dec 2022 07:41:18 GMT</pubDate>
    <dc:creator>johnkevintoral</dc:creator>
    <dc:date>2022-12-31T07:41:18Z</dc:date>
    <item>
      <title>PIT_TFLG2, PIT for Injection conversion trigger for ADC, can't be cleared on MAC57D54MB</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/PIT-TFLG2-PIT-for-Injection-conversion-trigger-for-ADC-can-t-be/m-p/1575882#M16206</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MAC57D54MB with MQX4.2 RTOS. By default, PIT_4 is running which is the&amp;nbsp;DMA1_Trigger #1. This runs well with the flags being cleared.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am having problems on&amp;nbsp;PIT_2 which is the&amp;nbsp;Injection conversion trigger for ADC. Its flag PIT_TFLG2 cannot be cleared when writing 1 to it(as suggested by reference manual). This is using a shared isr and PIT_4 still works well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is using the A5 core btw and even other PIT are run, same behavior occurs(its corresponding flag cannot be cleared).&lt;/P&gt;&lt;P&gt;Would appreciate if anyone suggest for me to try.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below code is the initialization of the PIT_2:&lt;/P&gt;&lt;P&gt;result = hwtimer_init(&amp;amp;PIT02, &amp;amp;BSP_SYSTIMER_DEV, PIT_ID_02, BSP_SYSTIMER_ISR_PRIOR);&lt;BR /&gt;if (MQX_OK != result) {&lt;BR /&gt;printf("\nhwtimer_init error");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;result = hwtimer_set_freq(&amp;amp;PIT02, 1000000, 10);&lt;BR /&gt;if (MQX_OK != result) {&lt;BR /&gt;printf("\nhwtimer_set_freq error");&lt;BR /&gt;hwtimer_deinit(&amp;amp;PIT02);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;result = hwtimer_callback_reg(&amp;amp;PIT02,(HWTIMER_CALLBACK_FPTR)_pit_isr_02, NULL);&lt;BR /&gt;if (MQX_OK != result) {&lt;BR /&gt;printf("\nhwtimer_callback_reg error");&lt;BR /&gt;hwtimer_deinit(&amp;amp;PIT02);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;result = hwtimer_start(&amp;amp;PIT02);&lt;BR /&gt;if (MQX_OK != result) {&lt;BR /&gt;printf("\nhwtimer_start error");&lt;BR /&gt;hwtimer_deinit(&amp;amp;PIT02);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 07:41:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/PIT-TFLG2-PIT-for-Injection-conversion-trigger-for-ADC-can-t-be/m-p/1575882#M16206</guid>
      <dc:creator>johnkevintoral</dc:creator>
      <dc:date>2022-12-31T07:41:18Z</dc:date>
    </item>
  </channel>
</rss>

