<?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>8-bit MicrocontrollersのトピックQG8 - Set clock rate to 1MHz / Power usage?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199373#M16213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm coming from V2 Coldfire land where (to me anyway!) setting the CPU frequency was simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm prototyping with a QG8 and I'm not sure how to set the clockrate properly. Processor expert is equally as confusing about what fields mean what.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The biggest issue I'm seeing is that at 3.3V with nothing else hooked up to the part (BDM removed) and it executing code the chip is drawing a little over 2mA, which seems really high. I'm using the internal clock source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The datasheet says that at ~1MHz it should be using somewhere around 0.5mA, but I'm not sure that is possible without using an external clock or crystal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips are much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Spencer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 01:06:47 GMT</pubDate>
    <dc:creator>SpencerRyan</dc:creator>
    <dc:date>2012-01-20T01:06:47Z</dc:date>
    <item>
      <title>QG8 - Set clock rate to 1MHz / Power usage?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199373#M16213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm coming from V2 Coldfire land where (to me anyway!) setting the CPU frequency was simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm prototyping with a QG8 and I'm not sure how to set the clockrate properly. Processor expert is equally as confusing about what fields mean what.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The biggest issue I'm seeing is that at 3.3V with nothing else hooked up to the part (BDM removed) and it executing code the chip is drawing a little over 2mA, which seems really high. I'm using the internal clock source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The datasheet says that at ~1MHz it should be using somewhere around 0.5mA, but I'm not sure that is possible without using an external clock or crystal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips are much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Spencer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 01:06:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199373#M16213</guid>
      <dc:creator>SpencerRyan</dc:creator>
      <dc:date>2012-01-20T01:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: QG8 - Set clock rate to 1MHz / Power usage?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199374#M16214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Spencer, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the current draw of about 2 mA is reasonable for higher bus frequencies,&amp;nbsp;maybe you do not have a 1 MHz bus frequency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For FEI mode, with 1 MHz bus frequency, I would expect the ICS register settings to be -&lt;/P&gt;&lt;P&gt;ICSC1 = 0x04;&lt;/P&gt;&lt;P&gt;ICSC2 = 0xC0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, the ICSC2_BDIV bits are set to divide the DCO output frequency by 8.&amp;nbsp; A further division by 2 provides the bus frequency.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To achieve a bus frequency of exactly 1 MHz, you will need to calibrate the NV trim setting (during the programming process) to give a reference frequency of 31.25kHz, and this setting will need to be loaded to the trim register of the ICS module during the initialisation process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is also possible for the current draw to increase if unused GPIO inputs, including any non-pinned GPIO,&amp;nbsp;remain in a floating state.&amp;nbsp; Your choice is either&amp;nbsp;to enable internal pullups, or to set the GPIO as outputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199374#M16214</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2012-01-20T14:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: QG8 - Set clock rate to 1MHz / Power usage?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199375#M16215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bigmac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m working with the QB8 right now and I have a question about the resulting 1 MHz bus frequency, because I also want to achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the internal reference clock, which is 20 MHz, and set the ICSC2_BDIV to 0x11 = 8, then the ICSOUT signal has a frequency of 20/8 = 2.5 MHz right? The devision by 2 results in a bus frequency of 1.25 MHz or am I missing something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 11:52:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199375#M16215</guid>
      <dc:creator>benthie</dc:creator>
      <dc:date>2013-07-16T11:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: QG8 - Set clock rate to 1MHz / Power usage?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199376#M16216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay - I found my mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The frequency is provided by the DCO with ~31.25kHz and FLL factor (if ICSSC = 0x00) of 512, thus the DCO output frequency is 16 MHz. Divided by 8 and by 2 it results in a 1 MHz bus frequency.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:01:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199376#M16216</guid>
      <dc:creator>benthie</dc:creator>
      <dc:date>2013-07-16T12:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: QG8 - Set clock rate to 1MHz / Power usage?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199377#M16217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Spencer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this additional current points me allways to unused pins state, avoid floating state of inputs there.&lt;/P&gt;&lt;P&gt;Configure all of them as outputs or enable pull ups where applicable.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Pavel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 08:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-Set-clock-rate-to-1MHz-Power-usage/m-p/199377#M16217</guid>
      <dc:creator>pavel_sadek</dc:creator>
      <dc:date>2013-07-19T08:58:03Z</dc:date>
    </item>
  </channel>
</rss>

