<?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 How to Calculate Cycle Counter Value/Mask in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162021#M5127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know, how i can calculate the right cycle counter value and mask for a transmisting frame?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For exemple, in a transmit frame on SLOT 1 I have this two values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;0x11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Transmit cycle counter filter value&amp;nbsp;&amp;nbsp; 0x22,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Transmit cycle counter filter mask&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;When i watch the result in my oscilloscope, I see that my frame is sending just the following cycle :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cycle 0,1,4,5,8,9,12,13,16,17,20,21,24,25,28 and 29.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't find the relation between the counter filter value and mask, and how to calculate them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:07:44 GMT</pubDate>
    <dc:creator>Kartoon67</dc:creator>
    <dc:date>2020-10-29T09:07:44Z</dc:date>
    <item>
      <title>How to Calculate Cycle Counter Value/Mask</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162021#M5127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know, how i can calculate the right cycle counter value and mask for a transmisting frame?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For exemple, in a transmit frame on SLOT 1 I have this two values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;0x11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Transmit cycle counter filter value&amp;nbsp;&amp;nbsp; 0x22,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Transmit cycle counter filter mask&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;When i watch the result in my oscilloscope, I see that my frame is sending just the following cycle :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cycle 0,1,4,5,8,9,12,13,16,17,20,21,24,25,28 and 29.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't find the relation between the counter filter value and mask, and how to calculate them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:07:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162021#M5127</guid>
      <dc:creator>Kartoon67</dc:creator>
      <dc:date>2020-10-29T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Cycle Counter Value/Mask</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162022#M5128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have past my entire afternoon to try to understand that computation between the Cycle Mask and value. I have tried some value into each of them, but i don't find the relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need some helps, it's very important because I need to send Frame into specific Cycle. If I can't do that, I can't continu my project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 23:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162022#M5128</guid>
      <dc:creator>Kartoon67</dc:creator>
      <dc:date>2012-05-11T23:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Cycle Counter Value/Mask</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162023#M5129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the documentation of my MCU, the calculation for the cycle counter is donne like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MBCCFRn[CCFVAL] ^ MBCCFRn[CCFMSK]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CCFVAL = Cycle Counter Value&lt;/P&gt;&lt;P&gt;CCFMSK = Cycle Counter Mask&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I put 0x01 in CCFVAL and 0x02 in CCFMSK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By computation CCFVAL XOR CCFMSK = 0x03&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if I understand, my cycle goes to be from 0 to 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I try this, I see in oscilloscipe other cycle like 8, 44, 24 etC....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i don't see where i have a mistake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:07:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162023#M5129</guid>
      <dc:creator>Kartoon67</dc:creator>
      <dc:date>2020-10-29T09:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Cycle Counter Value/Mask</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162024#M5130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the same problem like you. I'm searching information in datasheet and different forum, but for now i don't find a responses to that subject.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 15:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162024#M5130</guid>
      <dc:creator>R_BenAmor</dc:creator>
      <dc:date>2012-05-14T15:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Cycle Counter Value/Mask</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162025#M5131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, I think the documentation is not well explain about that... And for now i'm blocked into this calculation... I hope somebody could be help me because I have to show at the end of the week the result of my work to my boss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 20:13:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162025#M5131</guid>
      <dc:creator>Kartoon67</dc:creator>
      <dc:date>2012-05-15T20:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Cycle Counter Value/Mask</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162026#M5132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, any response...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do some test, I can now specify just one specific cycle. You have to make the value of mask at 0x3F and in the counter value, you can specify the cycle you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In ma case i did that :&lt;/P&gt;&lt;PRE&gt;3,                           // Transmit cycle counter filter value   0x3F,                           // Transmit cycle counter filter mask&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that configuration, my fram goes to be send in every third cycle that all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you want specify more than one cycle, I don't find the right calculation. It's a freescale mystery...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-Cycle-Counter-Value-Mask/m-p/162026#M5132</guid>
      <dc:creator>Kartoon67</dc:creator>
      <dc:date>2020-10-29T09:07:48Z</dc:date>
    </item>
  </channel>
</rss>

