<?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 OSCTRIM = Optional on QY4A in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/OSCTRIM-Optional-on-QY4A/m-p/131513#M2784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Codewarrior 3.1 and the Cyclone to program a QY4A micro.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've "problem" setting the OSCTRIM. With the QY2 (and QY4)&amp;nbsp; trimming the oscillator with OSCTRIM = Optional (wich copy the value stored in the address 0xFFC0 in the OSCTRIM register) works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the QY4A there is an error (well maybe is done correctly, and it's me that has misunderstanded) in the mc68hc908qy4a.c and mc68hc908qy4a.h files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the qy4a.h there is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;extern const volatile OptionalSTR _Optional @0x0000FFC0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define Optional&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; _Optional.Byte&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in the qy4.h there is&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;extern volatile OptionalSTR _Optional @0x0000FFC0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define Optional _Optional.Byte&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and in the qy4a.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the line declaring OptionalSTR _Optional is commented, and when I compile of course the linker can't find Optional.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's this right? or I can eliminate the const and uncomment the line in the .c like for the QY4?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Bye Jack&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2007 19:03:51 GMT</pubDate>
    <dc:creator>jag</dc:creator>
    <dc:date>2007-04-23T19:03:51Z</dc:date>
    <item>
      <title>OSCTRIM = Optional on QY4A</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/OSCTRIM-Optional-on-QY4A/m-p/131513#M2784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Codewarrior 3.1 and the Cyclone to program a QY4A micro.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've "problem" setting the OSCTRIM. With the QY2 (and QY4)&amp;nbsp; trimming the oscillator with OSCTRIM = Optional (wich copy the value stored in the address 0xFFC0 in the OSCTRIM register) works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the QY4A there is an error (well maybe is done correctly, and it's me that has misunderstanded) in the mc68hc908qy4a.c and mc68hc908qy4a.h files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the qy4a.h there is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;extern const volatile OptionalSTR _Optional @0x0000FFC0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define Optional&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; _Optional.Byte&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in the qy4.h there is&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;extern volatile OptionalSTR _Optional @0x0000FFC0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define Optional _Optional.Byte&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and in the qy4a.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the line declaring OptionalSTR _Optional is commented, and when I compile of course the linker can't find Optional.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's this right? or I can eliminate the const and uncomment the line in the .c like for the QY4?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Bye Jack&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 19:03:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/OSCTRIM-Optional-on-QY4A/m-p/131513#M2784</guid>
      <dc:creator>jag</dc:creator>
      <dc:date>2007-04-23T19:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: OSCTRIM = Optional on QY4A</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/OSCTRIM-Optional-on-QY4A/m-p/131514#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok, I did some tests.&lt;BR /&gt;&lt;BR /&gt;Modifying the qy4a.h and qy4a.c to match the qy4.c/.h all seem to work flawlessy. This means eliminating the const in the .h and uncommenting the lines in the .c.&lt;BR /&gt;&lt;BR /&gt;The cyclone now calcultate the trim value and store it in 0xFFC0 like it's supposed to do.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye Jack&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 21:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/OSCTRIM-Optional-on-QY4A/m-p/131514#M2785</guid>
      <dc:creator>jag</dc:creator>
      <dc:date>2007-04-24T21:33:13Z</dc:date>
    </item>
  </channel>
</rss>

