<?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>Kinetis MicrocontrollersのトピックRe: MKE02Z ICS_C3 TRIM</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446621#M26385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice, how are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same question as Neil and Ivan, running on the same board, with the same IDE.&lt;/P&gt;&lt;P&gt;I'll try to explain the problem differently, maybe you can help us!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to configure the chip to run at 40Mhz using the internal oscillator only. No external crystal or oscillator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me that all I have to do is to change the ICS Internal Reference Clock from 21.25Khz to 39.0625Khz. Is that correct?&lt;/P&gt;&lt;P&gt;Now the tricky question is: what value must I set to ICS_C3[SCTRIM] to achieve the clock of 39.0625Khz? And how do I calculate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2016 13:11:09 GMT</pubDate>
    <dc:creator>danielhulshof</dc:creator>
    <dc:date>2016-02-03T13:11:09Z</dc:date>
    <item>
      <title>MKE02Z ICS_C3 TRIM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446614#M26378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know how to use and trim the MKE02Z ICS_C3.&amp;nbsp; I was following the example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20.5.1.1&amp;nbsp; FEI mode initialization routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I found this line&amp;nbsp; ICS_C3 = TRIM_VALUE_35.15625kHZ;&amp;nbsp;&amp;nbsp; obviously this must be a define, but what value does it have and how &lt;/P&gt;&lt;P&gt;&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;&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;&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;&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; was it created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using PE, so please use the registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 17:15:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446614#M26378</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-11-27T17:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z ICS_C3 TRIM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446615#M26379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which IDE do you use ?&lt;/P&gt;&lt;P&gt;You can check the header file after you create one project .&lt;/P&gt;&lt;P&gt;For example , in KDS IDE, you can directly use like this ICS_C3&amp;nbsp;&amp;nbsp; , for it have define it in the MKE02Z2.h file :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51975i2C7FFDC7242A2C6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If i misunderstand your meaning , please tell me ,thank !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 03:50:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446615#M26379</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-11-30T03:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z ICS_C3 TRIM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446616#M26380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KDS 3.0 with KSDK 1.3.0&lt;/P&gt;&lt;P&gt;My include "MKE02Z2.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example is in the :&amp;nbsp; KE02 Sub-Family Reference Manual pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example in the manual they have the line &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; ICS_C3 = TRIM_VALUE_35.15625kHZ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; TRIM_VALUE_35.15625kHZ has to be a define, for example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;#define &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; TRIM_VALUE_35.15625kHZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x45&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;My question is, how did they calculated the trim value?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Neil &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 17:17:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446616#M26380</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-11-30T17:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z ICS_C3 TRIM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446617#M26381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the example of RM, in my opinion, the trim value is not calculated , it is provide&lt;/P&gt;&lt;P&gt;by the data sheet , from the ke02 data sheet , we can see that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55969iBD8E992A8DDA853B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And we need not configure the register of ICS_C3, for one chip , the data has trimmed by factory .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 09:06:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446617#M26381</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-12-07T09:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z ICS_C3 TRIM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446618#M26382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did find that reference data sheet and see that the trim is 31.25, but I believe that trim value is from factory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the following example from KE02 Sub Family Reference Value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20.5.1 Initializing FEI mode&lt;/P&gt;&lt;P&gt;The following code segment demonstrates setting ICS to FEI mode.&lt;/P&gt;&lt;P&gt;Example: 20.5.1.1 FEI mode initialization routine&lt;/P&gt;&lt;P&gt;/* the following code segment demonstrates setting ICS to FEI mode generating 36MHz bus*/&lt;/P&gt;&lt;P&gt;ICS_C2 = 0x00; /*BDIV=0, no prescalar&lt;/P&gt;&lt;P&gt;ICS_C1 = 0x04; /* internal reference clock to FLL */&lt;/P&gt;&lt;P&gt;ICS_C3 = TRIM_VALUE_35.15625KHZ; /* FLL output 36MHz */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the formula or how do they calculate the 36MHz bus clock?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 17:17:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446618#M26382</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-12-08T17:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z ICS_C3 TRIM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446619#M26383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This demo is a lite version , so it default the register of SIM_BUSDIV -&amp;gt; BUSDIV is 0,&lt;/P&gt;&lt;P&gt;so the bus&amp;nbsp; clock is&amp;nbsp; the same as ICSOUTCLK , for the BDIV =0, so the ICSOUTCLK is the&lt;/P&gt;&lt;P&gt;same as FLL output 36MHZ.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35718iCC997BA02AB51AD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35779i868A5C1C51454206/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course in you code ,you need configure the register "SIM_BUSDIV" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 07:16:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446619#M26383</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-12-22T07:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z ICS_C3 TRIM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446620#M26384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have the same question as Neil, that seems unanswered.&lt;/P&gt;&lt;P&gt;What is and how to calculate the value of &lt;STRONG style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;TRIM_VALUE_35.15625KHZ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;In other words: how to calculate the trim value that goes into ICS_C3 and ICS_C4?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If anyone has an answer, please give it in a way we can set those values into registers and not by IDE or JTAG brand dependent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Dec 2015 02:41:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446620#M26384</guid>
      <dc:creator>ivanm</dc:creator>
      <dc:date>2015-12-27T02:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z ICS_C3 TRIM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446621#M26385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice, how are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same question as Neil and Ivan, running on the same board, with the same IDE.&lt;/P&gt;&lt;P&gt;I'll try to explain the problem differently, maybe you can help us!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to configure the chip to run at 40Mhz using the internal oscillator only. No external crystal or oscillator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me that all I have to do is to change the ICS Internal Reference Clock from 21.25Khz to 39.0625Khz. Is that correct?&lt;/P&gt;&lt;P&gt;Now the tricky question is: what value must I set to ICS_C3[SCTRIM] to achieve the clock of 39.0625Khz? And how do I calculate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 13:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z-ICS-C3-TRIM/m-p/446621#M26385</guid>
      <dc:creator>danielhulshof</dc:creator>
      <dc:date>2016-02-03T13:11:09Z</dc:date>
    </item>
  </channel>
</rss>

