<?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: Flexio multiple timers in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883447#M2541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brett,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I will communicate your question with my colleagues, whether there have some good way to realize your function, please give me more time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Any updated information, will let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2019 10:28:54 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2019-04-09T10:28:54Z</dc:date>
    <item>
      <title>Flexio multiple timers</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883444#M2538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple question on setting up 2 Flexio timers, with each one driving the other. &amp;nbsp;We are trying this on a IMXRT1060 eval board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are having trouble setting up a 16 bit count down timer such that after it is enabled and counts down, that it disables on the compare and triggers a second 16 bit count down timer and then it disables on the compare and enables the first timer again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically time 1 active, timer 2 active, time 1 active, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are having trouble configuring this simple example and any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 18:10:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883444#M2538</guid>
      <dc:creator>bbergquist</dc:creator>
      <dc:date>2019-04-05T18:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Flexio multiple timers</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883445#M2539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-content-finding="Community" data-userid="337951" data-username="bbergquist@idevicesinc.com" href="https://community.nxp.com/people/bbergquist@idevicesinc.com"&gt;Brett Bergquist&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your interest in NXP MIMXRT product, I would like to provide service for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maybe you try this method, configure flexio timer1, and timer 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Enable the timer 1 and timer 2 interrupt in register TIMIEN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then disable the timer 2, start the timer1, when the 16 bit timer counter equals zeros the interrupt will happens, in the interrupt code, you can disable the timer 1, and enable timer2.&lt;/P&gt;&lt;P&gt;&amp;nbsp; In the timer 2 interrupt code, you can disable the timer 2, and enable timer1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This method will realize you function: time 1 active, timer 2 active, time 1 active, etc.&lt;/P&gt;&lt;P&gt;You can try it on your side, you can control the register directly in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have questions after you try it, please let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 10:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883445#M2539</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-08T10:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Flexio multiple timers</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883446#M2540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So we are trying to do this without an interrupt as the CPU is really busy already. &amp;nbsp;I should have put more into the question :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a need to write/read an I/O pin in this manner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;(0) repeat forever&lt;UL&gt;&lt;LI&gt;(1) drive N pin high for 100 usec&lt;/LI&gt;&lt;LI&gt;repeat 28 times&lt;UL&gt;&lt;LI&gt;(2) drive pin N low for 1 usec&lt;/LI&gt;&lt;LI&gt;(3) drive pin N high for 1 usec&lt;/LI&gt;&lt;LI&gt;(4) set pin N output disabled for 5 usec&lt;/LI&gt;&lt;LI&gt;(5) read pin N into shifter configured for 28 bit word&lt;BR /&gt;this will transfer the 28bit word via DMA&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So I have been&amp;nbsp;able to simulate a timer chain for 2 -&amp;gt; 3 -&amp;gt; 4&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;timer 2 as a 16 bit counter with "trigger on timer 4 active low, decrement on Flexio clock, disable on timer compare and trigger low, always enabled"&lt;/LI&gt;&lt;LI&gt;timer 3 as 16 bit counter with "trigger on timer 2 both edge, decrement on Flexio clock, disable on timer compare and trigger low, enable on trigger both edge"&lt;/LI&gt;&lt;LI&gt;timer 4 as 16 bit counter with "trigger on timer 3 both edge, decrement on Flexio clock, disable on timer compare and trigger low, enable on trigger both edge"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I can have the bit counter/timer 5 be inserted into the chain the same way with changing timer to "trigger on timer 5 active low" and timer 5 to be "trigger on timer 4 both edge, decrement on trigger (?), disable on timer compare, enable on trigger both edge"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with getting this back to state 0 (the repeat forever).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this explains better what I am trying to do with just FlexIO and not involving the CPU except though a DMA transfer of the 28 bit work received into the shift buffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 10:50:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883446#M2540</guid>
      <dc:creator>bbergquist</dc:creator>
      <dc:date>2019-04-08T10:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Flexio multiple timers</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883447#M2541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brett,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I will communicate your question with my colleagues, whether there have some good way to realize your function, please give me more time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Any updated information, will let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 10:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883447#M2541</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-09T10:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Flexio multiple timers</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883448#M2542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks. &amp;nbsp;One more thing. &amp;nbsp;We are still having trouble with just a delay timer outputting a pin and then disabling and triggering the next timer. &amp;nbsp; For example, I have the code below which does in fact trigger the timers in order but the delay times are not correct and I think that is related to the "kFLEXIO_TimerDisableOnTimerCompareTriggerLow" and the "kFLEXIO_TimerEnableOnTriggerBothEdge" settings but without these then the next timer in the chain is not triggered. &amp;nbsp;I can see and measure this on a oscilloscope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simplest thing to have a timer output on a pin for a period of time and then disable and trigger the next timer is something that seems should be simple but I cannot get to work correctly. &amp;nbsp;Some guidance on just this simple requirement would be very useful. &amp;nbsp;None of the samples have anything like this. &amp;nbsp; Unfortunately the device that we are trying to communicate with is a one-wire device and the timings required are not regular (ie. output high for 100 usec, and repeat "output low for 1 usec, output high for 1 usec, change to input and wait 5 usec, read 1 bit" for 28 bits total and then repeat the whole thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt; flexio_timer0_config(&lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #005032;"&gt;flexio_timer_config_t&lt;/SPAN&gt; fxioTimerConfig;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;SPAN style="color: #0000c0;"&gt;triggerSelect&lt;/SPAN&gt; = FLEXIO_TIMER_TRIGGER_SEL_TIMn(DEMO_FLEXIO_TIMER2_CH);&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;triggerSource&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerTriggerSourceInternal&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;triggerPolarity&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerTriggerPolarityActiveLow&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;pinConfig&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_PinConfigOutput&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;pinPolarity&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_PinActiveHigh&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;SPAN style="color: #0000c0;"&gt;pinSelect&lt;/SPAN&gt; = DEMO_FLEXIO_OUTPUTPIN1;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerMode&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerModeDisabled&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerOutput&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerOutputOneNotAffectedByReset&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerDecrement&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerDecSrcOnFlexIOClockShiftTimerOutput&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerDisable&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerDisableOnTimerCompareTriggerLow&lt;SPAN style="color: #000000;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerEnable&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerEnabledAlways&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerReset&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerResetNever&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerStart&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerStartBitDisabled&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerStop&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerStopBitDisabled&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;SPAN style="color: #0000c0;"&gt;timerCompare&lt;/SPAN&gt; = 15000;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;FLEXIO_SetTimerConfig(DEMO_FLEXIO_BASEADDR, DEMO_FLEXIO_TIMER0_CH, &amp;amp;fxioTimerConfig);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;}&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt; flexio_timer1_config(&lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #005032;"&gt;flexio_timer_config_t&lt;/SPAN&gt; fxioTimerConfig;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;SPAN style="color: #0000c0;"&gt;triggerSelect&lt;/SPAN&gt; = FLEXIO_TIMER_TRIGGER_SEL_TIMn(DEMO_FLEXIO_TIMER0_CH);&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;triggerSource&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerTriggerSourceInternal&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;triggerPolarity&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerTriggerPolarityActiveLow&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;pinConfig&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_PinConfigOutput&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;pinPolarity&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_PinActiveHigh&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;SPAN style="color: #0000c0;"&gt;pinSelect&lt;/SPAN&gt; = DEMO_FLEXIO_OUTPUTPIN2;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerMode&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerModeDisabled&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerOutput&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerOutputOneNotAffectedByReset&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerDecrement&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerDecSrcOnFlexIOClockShiftTimerOutput&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerDisable&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerDisableOnTimerCompareTriggerLow&lt;SPAN style="color: #000000;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerEnable&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerEnableOnTriggerBothEdge&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerReset&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerResetNever&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerStart&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerStartBitDisabled&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerStop&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerStopBitDisabled&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;SPAN style="color: #0000c0;"&gt;timerCompare&lt;/SPAN&gt; = 750;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;FLEXIO_SetTimerConfig(DEMO_FLEXIO_BASEADDR, DEMO_FLEXIO_TIMER1_CH, &amp;amp;fxioTimerConfig);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;}&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt; flexio_timer2_config(&lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #005032;"&gt;flexio_timer_config_t&lt;/SPAN&gt; fxioTimerConfig;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;SPAN style="color: #0000c0;"&gt;triggerSelect&lt;/SPAN&gt; = FLEXIO_TIMER_TRIGGER_SEL_TIMn(DEMO_FLEXIO_TIMER1_CH);&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;triggerSource&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerTriggerSourceInternal&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;triggerPolarity&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerTriggerPolarityActiveLow&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;pinConfig&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_PinConfigOutput&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;pinPolarity&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_PinActiveHigh&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;SPAN style="color: #0000c0;"&gt;pinSelect&lt;/SPAN&gt; = DEMO_FLEXIO_OUTPUTPIN3;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerMode&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerModeDisabled&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerOutput&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerOutputOneNotAffectedByReset&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerDecrement&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerDecSrcOnFlexIOClockShiftTimerOutput&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerDisable&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerDisableOnTimerCompareTriggerLow&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerEnable&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerEnableOnTriggerBothEdge&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerReset&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerResetNever&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerStart&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerStartBitDisabled&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #0000c0; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;/SPAN&gt;timerStop&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;kFLEXIO_TimerStopBitDisabled&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;fxioTimerConfig.&lt;SPAN style="color: #0000c0;"&gt;timerCompare&lt;/SPAN&gt; = 960;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;FLEXIO_SetTimerConfig(DEMO_FLEXIO_BASEADDR, DEMO_FLEXIO_TIMER2_CH, &amp;amp;fxioTimerConfig);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;}&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt; flexio_timer0_start(&lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;{&lt;/P&gt;&lt;P style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;/* Set Timer mode to kFLEXIO_TimerModeDual8BitPWM to start timer */&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;DEMO_FLEXIO_BASEADDR-&amp;gt;&lt;SPAN style="color: #0000c0;"&gt;TIMCTL&lt;/SPAN&gt;[DEMO_FLEXIO_TIMER0_CH] |= FLEXIO_TIMCTL_TIMOD(&lt;SPAN style="color: #0000c0;"&gt;kFLEXIO_TimerModeSingle16Bit&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;}&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt; flexio_timer1_start(&lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;{&lt;/P&gt;&lt;P style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;/* Set Timer mode to kFLEXIO_TimerModeDual8BitPWM to start timer */&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;DEMO_FLEXIO_BASEADDR-&amp;gt;&lt;SPAN style="color: #0000c0;"&gt;TIMCTL&lt;/SPAN&gt;[DEMO_FLEXIO_TIMER1_CH] |= FLEXIO_TIMCTL_TIMOD(&lt;SPAN style="color: #0000c0;"&gt;kFLEXIO_TimerModeSingle16Bit&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;}&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt; flexio_timer2_start(&lt;SPAN style="color: #7f0055;"&gt;void&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;{&lt;/P&gt;&lt;P style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;/* Set Timer mode to kFLEXIO_TimerModeDual8BitPWM to start timer */&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;DEMO_FLEXIO_BASEADDR-&amp;gt;&lt;SPAN style="color: #0000c0;"&gt;TIMCTL&lt;/SPAN&gt;[DEMO_FLEXIO_TIMER2_CH] |= FLEXIO_TIMCTL_TIMOD(&lt;SPAN style="color: #0000c0;"&gt;kFLEXIO_TimerModeSingle16Bit&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;}&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;...&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;flexio_timer0_config();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;flexio_timer1_config();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;flexio_timer2_config();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;flexio_timer2_start();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;flexio_timer1_start();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;flexio_timer0_start();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;while&lt;/SPAN&gt; (1)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;{&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;__NOP();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 11:58:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883448#M2542</guid>
      <dc:creator>bbergquist</dc:creator>
      <dc:date>2019-04-09T11:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Flexio multiple timers</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883449#M2543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brett,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You said, your code the delay times are not correct, could you also give me the test result in the oscilloscope, and can you share the whole test project to me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you can draw the wave you want to realize, it will be better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When I have time, I will&amp;nbsp; help you to debug your code, and check the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 07:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883449#M2543</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-12T07:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flexio multiple timers</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883450#M2544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue that I see is with the "&lt;SPAN style="color: #000000; border: 0px;"&gt;fxioTimerConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; background-color: #ffffff;"&gt;timerDisable&lt;/SPAN&gt;&lt;SPAN style="color: #000000; border: 0px;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; background-color: #ffffff;"&gt;kFLEXIO_TimerDisableOnTimerCompareTriggerLow&lt;/SPAN&gt;&lt;SPAN style="color: #000000; border: 0px;"&gt; ;". &amp;nbsp;This causes the timer0 to run through 2 iterations causing the delay to be incorrect. &amp;nbsp;Ideally I would like "fxioTimerConfig.&lt;SPAN style="color: #0000c0; background-color: #ffffff;"&gt;timerDisable&lt;/SPAN&gt;&lt;SPAN style="color: #000000; border: 0px;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; background-color: #ffffff;"&gt;kFLEXIO_TimerDisableOnTimerCompare"&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;but when configured like that the next timer is not triggered correctly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;I guess the simplest thing that could be done would be to first figure out how to have 3 timers configured such that&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;timer0 is configured to drive a pin high for x time and stops on compare&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;timer1 is configured to be triggered by timer0 stopping on timer compare. &amp;nbsp;It is configured to drive a pin high for y time and stops on compare&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;timer2 is configured to be triggered on timer1 stopping on timer compare. &amp;nbsp;It is configured to drive a pin high for z timer and stops on compare&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;Starting timer0 should show that state transition of timer0 running, stopping, and triggering timer1 which should run, stop, and trigger timer 2 which should run and stop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;Proving that out would be the first step of using the Flexio timers as delay timers driving a pin for a certain amount of timer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;The next step would be to configure time0 such that it can be triggered to start again when timer2 stops. &amp;nbsp;To observe this it is likely that it would have have the pin output toggled so that the scope could see it, but this would need to be done carefully as it makes it had to distinguish this case from the case where the original timer kept running through multiple transitions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;A couple&amp;nbsp;other things would be very useful would be to understand the logic behind when a timer is evaluated to be started/enabled. &amp;nbsp;Take the scenario where you configure a timer as&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;enabled always&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;disabled on compare&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;triggered by timer N&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="caret-color: #000000; background-color: #ffffff; color: #000000; "&gt;Mode disabled&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="caret-color: #000000; background-color: #ffffff; color: #000000; "&gt;So in this case from my thinking that when I start the timer by setting the mode to 16 bit countdown timer, the timer will run until it counts down to 0 and will become disabled. &amp;nbsp;Then at some later time, it&amp;nbsp;might be triggered again by timer N. &amp;nbsp; That is my thinking by I can find no documentation that identifies when the conditions of a timer are evaluated. &amp;nbsp;It is just a guess on my part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #000000; "&gt;A second thing that would be useful to understand is that if you have a timer&amp;nbsp;configured as&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="caret-color: #000000; background-color: #ffffff; color: #000000; "&gt;enabled always&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="caret-color: #000000; background-color: #ffffff; color: #000000; "&gt;disabled on compare&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="caret-color: #000000; background-color: #ffffff; color: #000000; "&gt;output logical one&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="caret-color: #000000; background-color: #ffffff; color: #000000; "&gt;and a second timer&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="caret-color: #000000; background-color: #ffffff; color: #000000; "&gt;triggered by first time on timer low&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="caret-color: #000000; background-color: #ffffff;"&gt;When the first timer runs and compares to 0 and disabled, does its state change to output&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="caret-color: #000000;"&gt;logical zero and trigger the second timer?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 15:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flexio-multiple-timers/m-p/883450#M2544</guid>
      <dc:creator>bbergquist</dc:creator>
      <dc:date>2019-04-26T15:11:57Z</dc:date>
    </item>
  </channel>
</rss>

