<?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 Re: Mkw21D256 in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Mkw21D256/m-p/411496#M473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Dear John,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The XTAL_TRIM is indirect register 0x01 as stated in &lt;STRONG&gt;chapter &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;STRONG&gt;9.3.2 XTAL 32 MHz Trim (Indirect Modem_XTAL_TRIM)&lt;/STRONG&gt; of Reference manual. The document mentions some sections that seem not to be included indeed. This will be fixed and updated soon. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;If you would like to change the TRIM settings, I would recommend you to load the Connectivity Test application using SMAC codebase included in Beekit installation (C:\Program Files (x86)\Freescale\SMAC\MKW2x\Demo Apps\Connectivity Test). You will be able to modify the TRIM settings from a simple yet useful serial port menu. You could also check how this is done in code in PhyXtalAdjust() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;AngelC&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 19:00:11 GMT</pubDate>
    <dc:creator>AngelC</dc:creator>
    <dc:date>2015-05-11T19:00:11Z</dc:date>
    <item>
      <title>Mkw21D256</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Mkw21D256/m-p/411495#M472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently migrating products from MC13224V to Kinetis Kw21D256 processors, using the TWR as a starting point, no problems there.&lt;/P&gt;&lt;P&gt;Have designed new boards for the actual product and have a problem with the 32MHz modem oscillator.&lt;/P&gt;&lt;P&gt;In document &lt;A href="https://cache.freescale.com/files/rf_if/doc/ref_manual/TWR-KW2XHWRM.pdf?fpsp=1" title="https://cache.freescale.com/files/rf_if/doc/ref_manual/TWR-KW2XHWRM.pdf?fpsp=1"&gt;https://cache.freescale.com/files/rf_if/doc/ref_manual/TWR-KW2XHWRM.pdf?fpsp=1&lt;/A&gt; and in the kw Reference Manual MKW2xDxxxRM.pdf it is mentioned that the MC1324 modem has a feature that allows using trim caps internal to the silicon that allow the 32MHz crystal oscillator to be software trimmed.&lt;/P&gt;&lt;P&gt;For example in the reference manual :&lt;/P&gt;&lt;P&gt;"As described in “Crystal Trim Operation”, the modem crystal oscillator frequency can be&lt;/P&gt;&lt;P&gt;trimmed by programming modem XTAL_TRIM register. The trimming procedure varies&lt;/P&gt;&lt;P&gt;the frequency by a few hertz per step, depending on the type of crystal. As the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XTAL_TRIM register value is increased, the frequency is decreased. This feature is&lt;/P&gt;&lt;P&gt;useful for factory calibration of the crystal frequency to set the accuracy for the radio as&lt;/P&gt;&lt;P&gt;required by the 802.15.4 Standard."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However there is no XTAL_TRIM register mentioned in the modem registers section and no Crystal Trim Operation" section. I've checked all the direct and indirect register docs - nothing there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the Mkw21D256 modem have the crystal trim feature mentioned in the docs?&lt;/P&gt;&lt;P&gt;If so, how is it accessed?&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 02:19:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Mkw21D256/m-p/411495#M472</guid>
      <dc:creator>john5</dc:creator>
      <dc:date>2015-05-08T02:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mkw21D256</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Mkw21D256/m-p/411496#M473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Dear John,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The XTAL_TRIM is indirect register 0x01 as stated in &lt;STRONG&gt;chapter &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;STRONG&gt;9.3.2 XTAL 32 MHz Trim (Indirect Modem_XTAL_TRIM)&lt;/STRONG&gt; of Reference manual. The document mentions some sections that seem not to be included indeed. This will be fixed and updated soon. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;If you would like to change the TRIM settings, I would recommend you to load the Connectivity Test application using SMAC codebase included in Beekit installation (C:\Program Files (x86)\Freescale\SMAC\MKW2x\Demo Apps\Connectivity Test). You will be able to modify the TRIM settings from a simple yet useful serial port menu. You could also check how this is done in code in PhyXtalAdjust() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;AngelC&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 19:00:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Mkw21D256/m-p/411496#M473</guid>
      <dc:creator>AngelC</dc:creator>
      <dc:date>2015-05-11T19:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mkw21D256</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Mkw21D256/m-p/411497#M474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AngelC, its actually John, not Benjamin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that,&amp;nbsp; was using a reference manual that was a tad out of date. Have the latest now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing production tools, so not really practical to use Connectivity Test app. The new manual describes the XTAL_TRIM indirect reg as 8 bits, advising to check EXTAL32M section for details, however there are none,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do the 8 bits of XTAL_TRIM specify the internal capacitance switching that is used to trim the 32M osc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked for &lt;SPAN style="color: #1f497d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;PhyXtalAdjust() in my project built with BeeKit originally, but not in source, must need a later version of BeeKit. Currently using BeeKit 3.0.1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;John&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 02:40:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Mkw21D256/m-p/411497#M474</guid>
      <dc:creator>john5</dc:creator>
      <dc:date>2015-05-12T02:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mkw21D256</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Mkw21D256/m-p/411498#M475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AngelC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just got the latest BeeKit 3.0.2 and built a Kw21D256 HA project, works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, have discovered an error in uart.h relating to using 8 bit data, with parity. The error was discovered in 3.0.1 and is still in projects generated using 3.0,2 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Data bits mask */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define gUART_DATA_BITS_BIT_c&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; (0x8u)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Data bits mask */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define gUART_DATA_BITS_BIT_c&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; (0x10u)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats the UARTX_C1.M bit setting, It currently incorrectly sets the UARTX_C1.WAKE bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 04:19:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Mkw21D256/m-p/411498#M475</guid>
      <dc:creator>john5</dc:creator>
      <dc:date>2015-05-12T04:19:16Z</dc:date>
    </item>
  </channel>
</rss>

