<?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 Activating The External Oscillator on QG8 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132060#M2913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am trying to get a 32.768kHz watch crystal to oscillate on a QG8. However despite trying various ICS register options I have had no luck - the chip continues to run on the internal oscillator.&amp;nbsp; I know this as I can trim the oscillator and see a frequency change on a port I am using as a freq-out pin.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is the code I am using.&amp;nbsp; I have tried toggling HGO on and off as well. I am using FFL Engaged External (FEE) mode.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp;lda&amp;nbsp;&amp;nbsp; &amp;nbsp;#%00000110&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;;Set EREFS and ERCLKEN&lt;BR /&gt;&amp;nbsp;&amp;nbsp;sta&amp;nbsp;&amp;nbsp; rICSC2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;lda&amp;nbsp;&amp;nbsp; #%00000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;sta&amp;nbsp;&amp;nbsp; rICSC1&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;With a 32,768Hz crystal this equals a bus clock of 8,388,608 Hz.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Advice appreciated.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Davo&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Apr 2007 18:20:53 GMT</pubDate>
    <dc:creator>Davo</dc:creator>
    <dc:date>2007-04-29T18:20:53Z</dc:date>
    <item>
      <title>Activating The External Oscillator on QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132060#M2913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am trying to get a 32.768kHz watch crystal to oscillate on a QG8. However despite trying various ICS register options I have had no luck - the chip continues to run on the internal oscillator.&amp;nbsp; I know this as I can trim the oscillator and see a frequency change on a port I am using as a freq-out pin.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is the code I am using.&amp;nbsp; I have tried toggling HGO on and off as well. I am using FFL Engaged External (FEE) mode.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp;lda&amp;nbsp;&amp;nbsp; &amp;nbsp;#%00000110&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;;Set EREFS and ERCLKEN&lt;BR /&gt;&amp;nbsp;&amp;nbsp;sta&amp;nbsp;&amp;nbsp; rICSC2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;lda&amp;nbsp;&amp;nbsp; #%00000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;sta&amp;nbsp;&amp;nbsp; rICSC1&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;With a 32,768Hz crystal this equals a bus clock of 8,388,608 Hz.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Advice appreciated.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Davo&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2007 18:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132060#M2913</guid>
      <dc:creator>Davo</dc:creator>
      <dc:date>2007-04-29T18:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Activating The External Oscillator on QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132061#M2914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It could be because you're not waiting for the oscillator to start (BRCLR instruction) that the switch isn't made.&lt;BR /&gt;&lt;BR /&gt;I use this code and it works:&lt;BR /&gt;&lt;BR /&gt;mov&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #%00000110,ICSC2&lt;BR /&gt;brclr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSCINIT.,ICSSC,*&lt;BR /&gt;mov&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #%00000000,ICSC1&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2007 20:14:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132061#M2914</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2007-04-29T20:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Activating The External Oscillator on QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132062#M2915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Tony, thanks for the advice. This works fine.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Should I be in High Gain mode or Low Gain mode for a 32.768kHz crystal ?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 19:47:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132062#M2915</guid>
      <dc:creator>Davo</dc:creator>
      <dc:date>2007-04-30T19:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Activating The External Oscillator on QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132063#M2916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;That depends on what drive level your crystal requires.&amp;nbsp; In my case, it works as it was given to you (with HGO=0) which consumes less power.&amp;nbsp; I wouldn't set it to high-gain if I get a reliable oscillation otherwise.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 20:56:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132063#M2916</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2007-04-30T20:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Activating The External Oscillator on QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132064#M2917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;32kHz crystals tend to oscillate easily and don't need the high gain.&lt;BR /&gt;Above 1MHz the story would differ and I would go for high gain.&lt;BR /&gt;Above 4MHz, I would not even wonder and switch the high gain straight away.&lt;BR /&gt;&lt;BR /&gt;I though the datasheet would mention something like this.&lt;BR /&gt;Anyway, the user should see the stability of his/her oscillator and act accordingly.&lt;BR /&gt;Oscillators are not really part of the microcontroller part, but part of the analog world.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 22:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Activating-The-External-Oscillator-on-QG8/m-p/132064#M2917</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-04-30T22:22:04Z</dc:date>
    </item>
  </channel>
</rss>

