<?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: Question about crystals ( hardware) in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-crystals-hardware/m-p/153383#M8549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 32.768 kHz crystal,&amp;nbsp;assuming FEE mode for the MCG module,&amp;nbsp;would be satisfactory for both the RTC and SPI modules.&amp;nbsp; For the RTC module the clock source selected would be MCGERCLK, which would apply the 32.768 kHz frequency to the input of the&amp;nbsp;prescaler.&amp;nbsp; There are a number of different combinations for prescale and modulo settings, that can generate an interrupt at at precisely one second intervals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other requirement is for a relatively high bus frequency for suitable operation of the other peripherals.&amp;nbsp; With FEE mode, bus frequencies of either 16.777 MHz or 19.92 MHz would be available near the upper bus limit.&amp;nbsp; Reduced frequencies are also available by changing the BDIV setting within MCGC2 register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SPI clock rate is usually&amp;nbsp;quite non-critical, providing it is below the upper limit for the slave device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a higher frequency crystal is desired, some possible choices would be 4.000 MHz or 4.9152 MHz.&amp;nbsp; These will provide maximum bus frequencies of 16 MHz and 19.66 MHz respectively.&amp;nbsp; Both frequencies would be suitable for the RTC module.&amp;nbsp; However, if you require SCI usage at relatively high standard baud rates (say 38400 baud), the low frequency crystal will produce more baud rate error than these high frequency crystals.&amp;nbsp; Actually, the 4.9152 MHz&amp;nbsp;crystal will provide exact baud rate values.&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>Thu, 12 Apr 2012 01:35:36 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2012-04-12T01:35:36Z</dc:date>
    <item>
      <title>Question about crystals ( hardware)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-crystals-hardware/m-p/153380#M8546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use a&amp;nbsp;MC9S08DZ128MLL&lt;/P&gt;&lt;P&gt;but i still dont undestand the clock part&lt;/P&gt;&lt;P&gt;let's make this a hardware approach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the internal reference clock can only provide&amp;nbsp;25 kHz to 41.66 kHz&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) but i need a real time clock here, so &amp;nbsp;i need a 32kHz crystal attached... to both XTAL and EXTAL, right?&lt;/P&gt;&lt;P&gt;but what if i want a faster clock sometime?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)lets say i'd want to work at 16MHz someday using the same hardware. is there a way to have both the 32kHz and the 16MHz crystals available to select? or would i have to remove one and place the other manually?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now, this is a software question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) how do i make the micro work at 40MHz?&lt;/P&gt;&lt;P&gt;in hardware i understand i need to attach&amp;nbsp;a square wave input clock en EXTAL, leaving XTAL free&lt;/P&gt;&lt;P&gt;what would be a good choice for the clk?&lt;/P&gt;&lt;P&gt;and how should i configure the micro to work with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;thanks&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 20:55:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-crystals-hardware/m-p/153380#M8546</guid>
      <dc:creator>GMVS</dc:creator>
      <dc:date>2012-04-11T20:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Question about crystals ( hardware)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-crystals-hardware/m-p/153381#M8547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The choice of a 32.768 kHz crystal implies that you would utilize FEE mode as the operating mode for the MCG module.&amp;nbsp; With this arrangement, it is possible to achieve a bus frequency of up to 19.92 MHz, very close to the maximum allowable bus frequency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you wished to use a higher frequency crystal, it may be so as to use PEE mode, which has less jitter than FEE mode.&amp;nbsp; In this case the frequency must be divisible by a power of 2, down to a reference frequency range of 1 to 2 MHz.&amp;nbsp; Again the bus frequency will be a multiple of he reference frequency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would therefore establish a crystal frequency as part of the initial design process for a project.&amp;nbsp; I cannot see that there would be any need to change the reference frequency "on the fly".&amp;nbsp; There is already sufficient flexibility within the MCG module to reduce the bus frequency during the operation of the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that a 32kHz crystal will usually require different component values, compared&amp;nbsp;to&amp;nbsp;higher frequency crystals.&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>Wed, 11 Apr 2012 22:39:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-crystals-hardware/m-p/153381#M8547</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2012-04-11T22:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Question about crystals ( hardware)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-crystals-hardware/m-p/153382#M8548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mmm...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what could be a good crystal option and clock configuration if i want to use a RTC but also an SPI, for example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 23:47:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-crystals-hardware/m-p/153382#M8548</guid>
      <dc:creator>GMVS</dc:creator>
      <dc:date>2012-04-11T23:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Question about crystals ( hardware)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-crystals-hardware/m-p/153383#M8549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 32.768 kHz crystal,&amp;nbsp;assuming FEE mode for the MCG module,&amp;nbsp;would be satisfactory for both the RTC and SPI modules.&amp;nbsp; For the RTC module the clock source selected would be MCGERCLK, which would apply the 32.768 kHz frequency to the input of the&amp;nbsp;prescaler.&amp;nbsp; There are a number of different combinations for prescale and modulo settings, that can generate an interrupt at at precisely one second intervals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other requirement is for a relatively high bus frequency for suitable operation of the other peripherals.&amp;nbsp; With FEE mode, bus frequencies of either 16.777 MHz or 19.92 MHz would be available near the upper bus limit.&amp;nbsp; Reduced frequencies are also available by changing the BDIV setting within MCGC2 register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SPI clock rate is usually&amp;nbsp;quite non-critical, providing it is below the upper limit for the slave device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a higher frequency crystal is desired, some possible choices would be 4.000 MHz or 4.9152 MHz.&amp;nbsp; These will provide maximum bus frequencies of 16 MHz and 19.66 MHz respectively.&amp;nbsp; Both frequencies would be suitable for the RTC module.&amp;nbsp; However, if you require SCI usage at relatively high standard baud rates (say 38400 baud), the low frequency crystal will produce more baud rate error than these high frequency crystals.&amp;nbsp; Actually, the 4.9152 MHz&amp;nbsp;crystal will provide exact baud rate values.&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>Thu, 12 Apr 2012 01:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-crystals-hardware/m-p/153383#M8549</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2012-04-12T01:35:36Z</dc:date>
    </item>
  </channel>
</rss>

