<?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 CMP interruption in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CMP-interruption/m-p/1168105#M58513</link>
    <description>&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Hello Everyone,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;I'am using the CMP0 on the K64. I used the driver sample code for cmp driver on the latest SDK (2.8).&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;Configuration:&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;INP: DAC 1.65V (VOSEL 32)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;INM : CH5 , the input is a 50hz AC signal centred on 1.65V&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;Interruption : &lt;STRONG&gt;Only rising edge enabled&lt;/STRONG&gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;Expectations:&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;Interruption every 20ms (1/50hz) on rising edge &lt;STRONG&gt;with rising flag only&lt;/STRONG&gt; on the SCR register.&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;Real Results:&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;The first interruption is always erroned (even when i added a delay of 5ms after initilisaion)&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;The rest of the interruptions are called every 20ms on rising edge but with the two flags setted&lt;/FONT&gt;&lt;FONT face="times new roman,times"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="times new roman,times"&gt;(rising and falling ) on the SCR register ! (&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;SCR_CFR = 1 ,&amp;nbsp; SCR_CFF = 1&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Best Regards.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2020 08:33:06 GMT</pubDate>
    <dc:creator>ahmedhrabi</dc:creator>
    <dc:date>2020-10-15T08:33:06Z</dc:date>
    <item>
      <title>CMP interruption</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CMP-interruption/m-p/1168105#M58513</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Hello Everyone,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;I'am using the CMP0 on the K64. I used the driver sample code for cmp driver on the latest SDK (2.8).&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;Configuration:&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;INP: DAC 1.65V (VOSEL 32)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;INM : CH5 , the input is a 50hz AC signal centred on 1.65V&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;Interruption : &lt;STRONG&gt;Only rising edge enabled&lt;/STRONG&gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;Expectations:&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;Interruption every 20ms (1/50hz) on rising edge &lt;STRONG&gt;with rising flag only&lt;/STRONG&gt; on the SCR register.&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;Real Results:&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;The first interruption is always erroned (even when i added a delay of 5ms after initilisaion)&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;The rest of the interruptions are called every 20ms on rising edge but with the two flags setted&lt;/FONT&gt;&lt;FONT face="times new roman,times"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="times new roman,times"&gt;(rising and falling ) on the SCR register ! (&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;SCR_CFR = 1 ,&amp;nbsp; SCR_CFF = 1&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Best Regards.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 08:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CMP-interruption/m-p/1168105#M58513</guid>
      <dc:creator>ahmedhrabi</dc:creator>
      <dc:date>2020-10-15T08:33:06Z</dc:date>
    </item>
  </channel>
</rss>

