<?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: Triggering ADC with PDB in K66 microcontroller  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Triggering-ADC-with-PDB-in-K66-microcontroller/m-p/1066185#M57205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much. This helped with the correct calling of the result registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I think two conversions are still happening when the PDB triggers the ADC the first time in the period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain why I think it is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I am triggering PDB at time &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3e3e3e; direction: ltr; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;FTM3_C4V = ((MOD+1) - Phi)/2; &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;which is equal to (600-200)/2 = 200.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3e3e3e; direction: ltr; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Pretrigger 1 delay&amp;nbsp;&lt;SPAN style="font-size: 11px;"&gt;PDB0_CH0DLY0&amp;nbsp;&lt;SPAN style="font-size: 15px;"&gt;is equal 0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3e3e3e; direction: ltr; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #3d3d3d; white-space: normal; font-weight: 400; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; overflow-wrap: break-word; background-color: #ffffff; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; orphans: 2; text-align: left; "&gt;Pretrigger 2 delay&amp;nbsp;&lt;SPAN style="font-size: 11px;"&gt;PDB0_CH0DLY1 &lt;SPAN style="font-size: 15px;"&gt;is equal &lt;SPAN style="font-size: 11px;"&gt; (MOD+1)/2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; overflow-wrap: break-word; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; overflow-wrap: break-word; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2; -webkit-text-stroke-width: 0px;"&gt;which is equal to 300.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #3e3e3e; white-space: normal; font-weight: 400; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: #ffffff; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; orphans: 2; direction: ltr; text-align: left; "&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; overflow-wrap: break-word; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2; -webkit-text-stroke-width: 0px;"&gt;I probe FTM3 counter register FTM3_CNT at the beginning of adc0_isr.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #3e3e3e; white-space: normal; font-weight: 400; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: #ffffff; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; orphans: 2; direction: ltr; text-align: left; "&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; overflow-wrap: break-word; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2; -webkit-text-stroke-width: 0px;"&gt;If I understand correctly, conversion time plus interrupt latency should equal around 30 counts.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;So FTM3_CNT at adc0_isr should be around 230 and 530 for pretrigger 1 and 2 respectively.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;However, what I get is 260 and 530&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;for pretrigger 1 and 2 respectively&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I think that the extra 30 counts in the first pretrigger is due to both conversions happening, while the second pretrigger value is correct.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hope this explains what I am trying to say.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2020 08:17:24 GMT</pubDate>
    <dc:creator>bert_haj-ali</dc:creator>
    <dc:date>2020-06-08T08:17:24Z</dc:date>
    <item>
      <title>Triggering ADC with PDB in K66 microcontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Triggering-ADC-with-PDB-in-K66-microcontroller/m-p/1066183#M57203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;Hello all,&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; I am trying to trigger ADC0 of the Teensy 3.6 with the PDB. I want 2 measurements per PWM period, so I have used FTM3 as a trigger input to PDB0 with 2 pretriggers. The delay of PDB0_CH0DLY0 is 0 while the delay of PDB0_CH0DLY1 is MOD/2. &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; This is all working correctly. However, I have a weird issue. ADC0 always makes 2 conversions for each trigger, so I get 4 measurements, 2 of which are redundant. To put it simply, ADC0_SC1A and ADC0_SC1B always convert together for each pretrigger.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; I have the code of FTM3, PDB and ADC0 below respectively. [Note: MOD value is equal to 599 while Phi is equal to 200.]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 15px; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; "&gt;FTM3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;void initFTM3(void) {&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; SIM_SCGC3&amp;nbsp; &amp;nbsp; |= 0x02000000;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_SC&amp;nbsp; &amp;nbsp; &amp;nbsp; = 0x00;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_CONF&amp;nbsp; &amp;nbsp; = 0xC0;&amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_FMS&amp;nbsp; &amp;nbsp; = 0x00; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_MODE&amp;nbsp; |= 0x05;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C0SC&amp;nbsp; &amp;nbsp; = 0x28;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C1SC&amp;nbsp; &amp;nbsp; = 0x28;&amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C2SC&amp;nbsp; &amp;nbsp; = 0x28;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C3SC&amp;nbsp; &amp;nbsp; = 0x28;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C4SC&amp;nbsp; &amp;nbsp; = 0x68;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C5SC&amp;nbsp; &amp;nbsp; = 0x28;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_COMBINE&amp;nbsp; = 0x030303;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_COMBINE |= 0x1010;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_COMBINE |= 0x202020;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_DEADTIME = 0x00;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_CNT&amp;nbsp; &amp;nbsp; &amp;nbsp; = 0x00;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_CNTIN&amp;nbsp; &amp;nbsp; = 0x00;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_MOD&amp;nbsp; &amp;nbsp; &amp;nbsp; = MOD;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_SYNC&amp;nbsp; &amp;nbsp; = 0x02;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_SC&amp;nbsp; &amp;nbsp; &amp;nbsp; = 0x28; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PORTD_PCR0&amp;nbsp; &amp;nbsp; = 0x400;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PORTD_PCR1&amp;nbsp; &amp;nbsp; = 0x400;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PORTD_PCR2&amp;nbsp; &amp;nbsp; = 0x400;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PORTD_PCR3&amp;nbsp; &amp;nbsp; = 0x400; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PORTC_PCR8&amp;nbsp; &amp;nbsp; = 0x300;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PORTC_PCR9&amp;nbsp; &amp;nbsp; = 0x300; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C0V&amp;nbsp; &amp;nbsp; &amp;nbsp; = (MOD+1)/2 - Phi;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C1V&amp;nbsp; &amp;nbsp; &amp;nbsp; = (MOD+1)/2;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C2V&amp;nbsp; &amp;nbsp; &amp;nbsp; = 0;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C3V&amp;nbsp; &amp;nbsp; &amp;nbsp; = (MOD+1) - Phi;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C4V&amp;nbsp; &amp;nbsp; &amp;nbsp; = ((MOD+1) - Phi)/2 - 8; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_C5V&amp;nbsp; &amp;nbsp; &amp;nbsp; = (2*(MOD+1) - Phi)/2 - 8;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; FTM3_EXTTRIG |= 0x04; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; asm("nop");&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PDB:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;void initPDB0(void) {&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; SIM_SCGC6&amp;nbsp; &amp;nbsp; |= 0x400000;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PDB0_CNT&amp;nbsp; &amp;nbsp; &amp;nbsp; = 0;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PDB0_MOD&amp;nbsp; &amp;nbsp; &amp;nbsp; = MOD; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PDB0_CH0C1&amp;nbsp; |= 0x303;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PDB0_CH0DLY0&amp;nbsp; = 0;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PDB0_CH0DLY1&amp;nbsp; = (MOD+1)/2; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; PDB0_SC&amp;nbsp; &amp;nbsp; &amp;nbsp; = 0xBA1; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 15px; "&gt;ADC0:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;void initADC0(void) {&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; SIM_SCGC6&amp;nbsp; &amp;nbsp; |= 0x08000000; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; SIM_SOPT7&amp;nbsp; &amp;nbsp; = 0x00;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; ADC0_CFG1&amp;nbsp; &amp;nbsp; = 0x04;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; ADC0_CFG2&amp;nbsp; &amp;nbsp; = 0x04;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; ADC0_SC2&amp;nbsp; &amp;nbsp; &amp;nbsp; = 0x40;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; ADC0_SC3&amp;nbsp; &amp;nbsp; &amp;nbsp; = 0x00;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; ADC0_SC1A&amp;nbsp; &amp;nbsp; = 0x4C;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; ADC0_SC1B&amp;nbsp; &amp;nbsp; = 0x51;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; NVIC_SET_PRIORITY(IRQ_ADC0, 128);&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; NVIC_CLEAR_PENDING(IRQ_ADC0) |= 1&amp;lt;&amp;lt;7;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; NVIC_ISER1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |= 1&amp;lt;&amp;lt;7;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; NVIC_ENABLE_IRQ(IRQ_ADC0);&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; asm("cpsie i");&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="-webkit-text-stroke-width: 0px; color: #3e3e3e; white-space: normal; letter-spacing: normal; text-decoration: none; display: inline !important; font-size: 15px; font-style: normal; float: none; background-color: #ffffff; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; orphans: 2; text-align: left; direction: ltr; "&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;Below is the ISR of ADC0 to read measurements from the results registers ADC0_RA and ADC0_RB.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;void adc0_isr(void) {&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; bool control = true;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; if (ADC0_SC1A &amp;amp; 0xCC) {&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; &amp;nbsp; V_analog[0] = ADC0_RA;&amp;nbsp; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; &amp;nbsp; V_o = VoutScale*V_analog[0];&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; &amp;nbsp; operation();&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; &amp;nbsp; control = !control;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; if (ADC0_SC1B &amp;amp; 0xD1) {&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; &amp;nbsp; V_analog[0] = ADC0_RB; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; &amp;nbsp; V_in = VinScale*V_analog[0];&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; &amp;nbsp; control = !control;&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; asm("nop");&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; direction: ltr; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;The value of the variable control is always TRUE, which means it is toggled twice for each pretrigger which means ADC0_SC1A and ADC0_SC1B convert twice. I want just one conversion per pretrigger.&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; Does anyone know why this happens? Is there something I missed in the initialization or if I have a mistake in the code?&lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;BR style="color: #3e3e3e; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #3e3e3e; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; Thanks in advance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2020 20:44:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Triggering-ADC-with-PDB-in-K66-microcontroller/m-p/1066183#M57203</guid>
      <dc:creator>bert_haj-ali</dc:creator>
      <dc:date>2020-06-06T20:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering ADC with PDB in K66 microcontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Triggering-ADC-with-PDB-in-K66-microcontroller/m-p/1066184#M57204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; font-size: 12pt;"&gt;&lt;SPAN style="color: #3e3e3e; background-color: #ffffff; font-size: 11px;"&gt;if (ADC0_SC1A &amp;amp; 0xCC)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;. This judgement may have some problems. It should be the&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 12pt;"&gt;&lt;SPAN style="color: #3e3e3e; background-color: #ffffff; font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if (ADC0_SC1A &amp;amp; 0x80). Because you should judge the bit COCO of SCx. If you use 0xcc to &amp;amp;, then you will find if the conversion complete flag not being set, the judgement is also true. The judgement of&amp;nbsp;SC1B has the same problem. &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&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;- 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 Jun 2020 01:49:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Triggering-ADC-with-PDB-in-K66-microcontroller/m-p/1066184#M57204</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-06-08T01:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering ADC with PDB in K66 microcontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Triggering-ADC-with-PDB-in-K66-microcontroller/m-p/1066185#M57205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much. This helped with the correct calling of the result registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I think two conversions are still happening when the PDB triggers the ADC the first time in the period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain why I think it is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I am triggering PDB at time &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3e3e3e; direction: ltr; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;FTM3_C4V = ((MOD+1) - Phi)/2; &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;which is equal to (600-200)/2 = 200.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3e3e3e; direction: ltr; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Pretrigger 1 delay&amp;nbsp;&lt;SPAN style="font-size: 11px;"&gt;PDB0_CH0DLY0&amp;nbsp;&lt;SPAN style="font-size: 15px;"&gt;is equal 0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3e3e3e; direction: ltr; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #3d3d3d; white-space: normal; font-weight: 400; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; overflow-wrap: break-word; background-color: #ffffff; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; orphans: 2; text-align: left; "&gt;Pretrigger 2 delay&amp;nbsp;&lt;SPAN style="font-size: 11px;"&gt;PDB0_CH0DLY1 &lt;SPAN style="font-size: 15px;"&gt;is equal &lt;SPAN style="font-size: 11px;"&gt; (MOD+1)/2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; overflow-wrap: break-word; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; overflow-wrap: break-word; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2; -webkit-text-stroke-width: 0px;"&gt;which is equal to 300.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #3e3e3e; white-space: normal; font-weight: 400; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: #ffffff; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; orphans: 2; direction: ltr; text-align: left; "&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; overflow-wrap: break-word; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2; -webkit-text-stroke-width: 0px;"&gt;I probe FTM3 counter register FTM3_CNT at the beginning of adc0_isr.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #3e3e3e; white-space: normal; font-weight: 400; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: #ffffff; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif; orphans: 2; direction: ltr; text-align: left; "&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; overflow-wrap: break-word; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2; -webkit-text-stroke-width: 0px;"&gt;If I understand correctly, conversion time plus interrupt latency should equal around 30 counts.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;So FTM3_CNT at adc0_isr should be around 230 and 530 for pretrigger 1 and 2 respectively.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;However, what I get is 260 and 530&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;for pretrigger 1 and 2 respectively&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I think that the extra 30 counts in the first pretrigger is due to both conversions happening, while the second pretrigger value is correct.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hope this explains what I am trying to say.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 08:17:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Triggering-ADC-with-PDB-in-K66-microcontroller/m-p/1066185#M57205</guid>
      <dc:creator>bert_haj-ali</dc:creator>
      <dc:date>2020-06-08T08:17:24Z</dc:date>
    </item>
  </channel>
</rss>

