<?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 Design Studio中的主题 Re: Using KDS generated SetClockConfiguration()</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341217#M952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The setting of all clock configurations, you have defined above, is possible but I have following comments and recomendation:&lt;/P&gt;&lt;P&gt;- If you suppose to use the WAIT, SLEEP or STOP mode as the third power mode (Low power suspend) the third configuration is not necessary. You can use the second clock configuration (Low Power Run) for entering the WAIT, SLEEP or STOP mode. See the document &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-102163"&gt;https://community.freescale.com/docs/DOC-102163&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When the WAIT, SLEEP or STOP mode is entered the CPU is stopped and interrupt/ reset (depend on the selected mode) wake up the CPU. So you can use the SetOperationMode() method to enter any of these mode.&lt;/P&gt;&lt;P&gt;- The second power mode (Low Power Run) can be used for entering Very Low Power Run mode too (set the property Very low power mode to Enabled and the property VLP mode entry to User. So you would be able switch between the RUn mode and Very Low Power Mode by using VLPModeEnable() and VLPModeDisable() methods.&lt;/P&gt;&lt;P&gt;- the Serial_LDD component allows you to select one baudrate that will remain the same for all clock configurations where the component is enabled. Select the &lt;EM&gt;Advance&lt;/EM&gt; view in the Component Inspector window of the Serial_LDD and open the &lt;EM&gt;CPU clokc/configuration selection&lt;/EM&gt; group of properties, see the screenshot below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Serial_LDD_clockconfigurations.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47828i8634A9B85C74A364/image-size/large?v=v2&amp;amp;px=999" role="button" title="Serial_LDD_clockconfigurations.png" alt="Serial_LDD_clockconfigurations.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have also created a simple application with the CPU (I have put all three clock configuration into the project) and Serial_LDD, see the attached file (it runs on the FRDM-K20D50M target board).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2014 14:13:14 GMT</pubDate>
    <dc:creator>marek_neuzil</dc:creator>
    <dc:date>2014-12-04T14:13:14Z</dc:date>
    <item>
      <title>Using KDS generated SetClockConfiguration()</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341216#M951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to be able to use KDS 1.1 to generate ClockConfigurations and change then using SetClockConfiguration() on a Kinetis K20D &lt;/P&gt;&lt;P&gt; KDS Component Inspector-CPU is very powerful - however I'm having trouble stitching it all together and getting the processor to run afterwards, so any comments on methods of using KDS appreciated&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The objective is to have 3 power modes (clock configurations)&lt;/P&gt;&lt;P&gt;1) 48MHz clock for USB Otg - Run modem&lt;/P&gt;&lt;P&gt;2) Low Power Run for a simple ADC and data logging to SPI/Flash&lt;/P&gt;&lt;P&gt;3) Low power suspend - timer expire or USB cable plugged in to wake up, or reset - CPU exists in this state 99% of time&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the FRDM-K20D50 to prototype, which has an 8Mhz Xtal and 32KHz RTC Xtal&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in KDS Component Inspector - CPU - its best to increment the "Clock Configuration" first as it offers to create a "Clock Source" settings&lt;/P&gt;&lt;P&gt;CCS0 Clock Config/Settings 0/0 for 48Mhz &lt;/P&gt;&lt;P&gt;CCS1 Clock Config/Settings 1/1 for low power run - can use&amp;nbsp; RTC/IRC Clock &lt;/P&gt;&lt;P&gt;CCS2 Clock Config/Settings 2/2 for lowest power state while being able to periodically wake - disable 8MHz xtal&lt;/P&gt;&lt;P&gt;I have RTC 32Khz Oscillator Enabled &lt;/P&gt;&lt;P&gt;I have System Oscillator 0 - Enabled with External crystal - 8MHz&lt;/P&gt;&lt;P&gt;For CCS0&amp;nbsp; MCG=PEE from System Oscillator 0, Clock Monitor Enabled&amp;nbsp; &lt;/P&gt;&lt;P&gt;For CCS1&amp;nbsp; MCG=BLPI from IRC-fast/divider 4 - VLP disabled&lt;/P&gt;&lt;P&gt;For CCS2 MCG=BLPI from IRC-fast/divider 128 - VLP enabled, entry=Auto, sysClock prescalers can be adjusted for runtime cycles v power used&lt;/P&gt;&lt;P&gt;Generally the transitions are going to be PwrUp/Reset--&amp;gt; CCS1 &amp;lt;--&amp;gt;CCS2&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; CCS1&amp;lt;--&amp;gt;CCS0&lt;/P&gt;&lt;P&gt; I would like to be able to have the UART and internal timer tick adjust automatically between CCS1 and CCS0 - but haven't investigated this yet.&lt;/P&gt;&lt;P&gt;thanks for any comments as to if you think this is a viable way to try KDS 1.1 or anything to watchout for when using the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 18:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341216#M951</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2014-10-21T18:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using KDS generated SetClockConfiguration()</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341217#M952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The setting of all clock configurations, you have defined above, is possible but I have following comments and recomendation:&lt;/P&gt;&lt;P&gt;- If you suppose to use the WAIT, SLEEP or STOP mode as the third power mode (Low power suspend) the third configuration is not necessary. You can use the second clock configuration (Low Power Run) for entering the WAIT, SLEEP or STOP mode. See the document &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-102163"&gt;https://community.freescale.com/docs/DOC-102163&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When the WAIT, SLEEP or STOP mode is entered the CPU is stopped and interrupt/ reset (depend on the selected mode) wake up the CPU. So you can use the SetOperationMode() method to enter any of these mode.&lt;/P&gt;&lt;P&gt;- The second power mode (Low Power Run) can be used for entering Very Low Power Run mode too (set the property Very low power mode to Enabled and the property VLP mode entry to User. So you would be able switch between the RUn mode and Very Low Power Mode by using VLPModeEnable() and VLPModeDisable() methods.&lt;/P&gt;&lt;P&gt;- the Serial_LDD component allows you to select one baudrate that will remain the same for all clock configurations where the component is enabled. Select the &lt;EM&gt;Advance&lt;/EM&gt; view in the Component Inspector window of the Serial_LDD and open the &lt;EM&gt;CPU clokc/configuration selection&lt;/EM&gt; group of properties, see the screenshot below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Serial_LDD_clockconfigurations.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47828i8634A9B85C74A364/image-size/large?v=v2&amp;amp;px=999" role="button" title="Serial_LDD_clockconfigurations.png" alt="Serial_LDD_clockconfigurations.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have also created a simple application with the CPU (I have put all three clock configuration into the project) and Serial_LDD, see the attached file (it runs on the FRDM-K20D50M target board).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 14:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341217#M952</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2014-12-04T14:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using KDS generated SetClockConfiguration()</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341218#M953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marek&lt;/P&gt;&lt;P&gt;Excellent thankyou - I will try it.&lt;/P&gt;&lt;P&gt;I have been able to Import-&amp;gt;"existing projects into Workspace" and compile it - so this is great. &lt;/P&gt;&lt;P&gt;Good comment/input - I have had the feeling that it could be done - just putting together the right matrix has been tricky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 17:06:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341218#M953</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2014-12-04T17:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using KDS generated SetClockConfiguration()</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341219#M954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marek.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I tried your examples on a FRDM-K20D50 - and I&amp;nbsp; modified the FRDM-K20D board for low power - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; and put in some sleep logic, however&amp;nbsp; when running the specified clocking scenario it is taking a couple of mA - so something isn't as isolated and I'm not trying to debug it unless I can find a clear application example for the FRDM-K20D&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I did the following&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;J4&amp;nbsp; added jumper a&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;nd removed 0R and 10R resistors for power mesurement&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;then fed the board with 3.3V through P3V3_K20D50M (J4pin2)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I DID use your example/suggestion to re-architect the clocks on my custom board I've designed - and that appears to reduce the current to about 120uA in STOP mode, and I now have the capability to switch between high speed and low power STOP mode. Thankyou Thankyou&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;I can live with 120uA quiescent - but if there are any other suggestions for trying to figure out what is consuming the rest of the power, I'd be happy to try them.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 23:06:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341219#M954</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2014-12-15T23:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using KDS generated SetClockConfiguration()</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341220#M955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;Other things to try are disabling GPIO and/or setting them to a state that doesn't draw power.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 14:21:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-KDS-generated-SetClockConfiguration/m-p/341220#M955</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-12-16T14:21:19Z</dc:date>
    </item>
  </channel>
</rss>

