<?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のトピックRe: HC908 Oscillator Confusion</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147570#M7487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;Here is the answers to your questions:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1) There are a number of different oscillators for different HC908s, and one should not pick the solution of one MCU and apply it to another.&lt;/DIV&gt;&lt;DIV&gt;However, in the case of the HC908GZ8/16, it is OK by using a crystal with two capacitors.&lt;/DIV&gt;&lt;DIV&gt;See&amp;nbsp; Table 20-1 in MC68HC908GZ16 rev 4.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2) Yes, use a Pierce oscillator. See chapter 4.3.9.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;3) &amp;nbsp;If the oscillator is not a 4 or 8 MHz, the baud rate that is used in the Monitor program will deviate.&lt;/DIV&gt;&lt;DIV&gt;That can be compensated by changing the communication speed, but what cannot be compensated is the speed of the erasure/programming of the Flash EPROM.&lt;/DIV&gt;&lt;DIV&gt;Therefore, if the 4 or 8 MHz oscillator is not usable in your application, use the crystal that will suit your application. When you want to download new programs, connect an 8 MHz oscillator to the OSC1 pin.&lt;/DIV&gt;&lt;DIV&gt;The oscillator will drive the signal much harder than the crystal, so the frequency willl be 8 MHz.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regarding the assembler programming that you talked about, I guess that you would like to see some PLL examples.&lt;/DIV&gt;&lt;DIV&gt;But I looked around, and it seems I have not done any HC908GZ8 PLL programming.&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;FONT face="Helvetica-Bold" size="3"&gt;&lt;/FONT&gt;&lt;/B&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;FONT face="Helvetica-Bold" size="3"&gt;Regards,&lt;/FONT&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;FONT face="Helvetica-Bold" size="3"&gt;Ake&lt;/FONT&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 15:19:03 GMT</pubDate>
    <dc:creator>Ake</dc:creator>
    <dc:date>2007-09-20T15:19:03Z</dc:date>
    <item>
      <title>HC908 Oscillator Confusion</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147569#M7486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've spent a bit of time reading posts on here and looking through the HC08 manuals but I am still a little lost on the no comprimise way to set up the clocks on the HC08, I am using a HC908GZ8.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Seems to me that if you want to use the MONO8 interface there is some restrictions on the crystal freq?. Anyway, I need to come to a decision on the best oscillator type to use and frequency.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My two main requirements are, I want to use the MONO8 interface in the final design and I need to get a baud rate of 8192 on the ESCI.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So I am hoping all the helpful people on here might offer some advice on the best oscillator set up?&lt;/DIV&gt;&lt;DIV&gt;1 - Do I go for a canned ocscillator?&lt;/DIV&gt;&lt;DIV&gt;2&amp;nbsp;- Do I use a Pierce oscillator set up?&lt;/DIV&gt;&lt;DIV&gt;3 - What frequencies am I limited to for MONO8 compatibilty and 8192 baud ESCI?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've recently switched over from AVR's to the HC08. In a previous job I was programming MC68332's in assembler so I'm looking forward to HC08 assembler programming given the nice flexible instruction set the Freescale MCU's have (something I missed on the AVR).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance,&lt;/DIV&gt;&lt;DIV&gt;Ross&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:11:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147569#M7486</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2007-09-19T07:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: HC908 Oscillator Confusion</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147570#M7487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;Here is the answers to your questions:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1) There are a number of different oscillators for different HC908s, and one should not pick the solution of one MCU and apply it to another.&lt;/DIV&gt;&lt;DIV&gt;However, in the case of the HC908GZ8/16, it is OK by using a crystal with two capacitors.&lt;/DIV&gt;&lt;DIV&gt;See&amp;nbsp; Table 20-1 in MC68HC908GZ16 rev 4.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2) Yes, use a Pierce oscillator. See chapter 4.3.9.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;3) &amp;nbsp;If the oscillator is not a 4 or 8 MHz, the baud rate that is used in the Monitor program will deviate.&lt;/DIV&gt;&lt;DIV&gt;That can be compensated by changing the communication speed, but what cannot be compensated is the speed of the erasure/programming of the Flash EPROM.&lt;/DIV&gt;&lt;DIV&gt;Therefore, if the 4 or 8 MHz oscillator is not usable in your application, use the crystal that will suit your application. When you want to download new programs, connect an 8 MHz oscillator to the OSC1 pin.&lt;/DIV&gt;&lt;DIV&gt;The oscillator will drive the signal much harder than the crystal, so the frequency willl be 8 MHz.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regarding the assembler programming that you talked about, I guess that you would like to see some PLL examples.&lt;/DIV&gt;&lt;DIV&gt;But I looked around, and it seems I have not done any HC908GZ8 PLL programming.&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;FONT face="Helvetica-Bold" size="3"&gt;&lt;/FONT&gt;&lt;/B&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;FONT face="Helvetica-Bold" size="3"&gt;Regards,&lt;/FONT&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;FONT face="Helvetica-Bold" size="3"&gt;Ake&lt;/FONT&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 15:19:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147570#M7487</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2007-09-20T15:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: HC908 Oscillator Confusion</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147571#M7488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Åke !&lt;BR /&gt;&lt;BR /&gt;I also have C code.&lt;BR /&gt;Even if it does not give the nicest result, we could post a snippet of the LST file generated from our C code.&lt;BR /&gt;This will give both the C and ASM.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 15:23:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147571#M7488</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-09-20T15:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: HC908 Oscillator Confusion</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147572#M7489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks Ake,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So what you are saying is when in MONO8 Mode the crystal speed is irrelevent because the MONO8 interface will inject&amp;nbsp;an overriding&amp;nbsp;8Mhz frequency? (That's how I read Table 20-1 anyway). I am using the Sotec InDart FYI.&lt;/DIV&gt;&lt;DIV&gt;Also, from what I've figured out on the ESCI module, there is enough prescalers and divisors that you can pretty much get any baud rate from a vary wide variety of OSC frequencies so chosing the crystal frequency is not a compromise to ensure you get the exact baud rate.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As far as the assembler programming goes, no problems there, between Google and some in depth reading of the CPU08 manual I'll get it sorted. The way I view assembler is the concepts are the same for every CPU, it's just a matter of trying to convert your ideas in to unfamiliar commands. I recently had to port some 68332 assembler to PowerPC (MPC561) Now there's a CPU that was never designed for&amp;nbsp;easy assembly programming, at least if you are coming from the 'easy' to program CPU32.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Finally, this is such a newbie question, but, when they are talking in the ESCI baud rate calculation here -&amp;nbsp; &lt;FONT face="Helvetica" size="3"&gt;Frequency of the SCI clock source = f&lt;/FONT&gt;&lt;FONT face="Helvetica" size="1"&gt;Bus&lt;/FONT&gt; &lt;FONT face="Helvetica" size="3"&gt;or CGMXCLK&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The SCI clock clock source if not using the&amp;nbsp;CGMXCLK is the 'exact' crystal frequency or is it to be divided by 2, 4 ??&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;BR /&gt;Ross&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Bloodhound on &lt;SPAN class="date_text"&gt;2007-09-20&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;07:54 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 16:40:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147572#M7489</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2007-09-20T16:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: HC908GZ8 - Oscillator Confusion MON08 vs. USER modes</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147573#M7490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Ross,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Some interfaces do override the XTAL with a stronger canned oscillator frequency.&lt;/DIV&gt;&lt;DIV&gt;But also, you can work from your crystal by adapting the baudrate.&lt;/DIV&gt;&lt;DIV&gt;I mean there is a direct ratio between the baudrate and the crystal clock.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It means that if &lt;FONT face="Helvetica" size="3"&gt;"The external clock is 8 MHz (7200 baud)" then you can &lt;STRONG&gt;debug&lt;/STRONG&gt; with an external clock&amp;nbsp;of&amp;nbsp;4 MHz @ 3600 baud.&lt;/FONT&gt;&lt;P&gt;&lt;FONT face="Helvetica" size="3"&gt;I've done that in the past without any issue.&lt;BR /&gt;For the programming, the clock speed is &lt;STRONG&gt;crucial&lt;/STRONG&gt; (as it is the base for flash timings), therefore I respect the clock speed of the programming algorithm provided by P&amp;amp;E Micro for my MON08 connection.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Helvetica" size="3"&gt;I hope this helps &lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Helvetica" size="3"&gt;Alfred.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Helvetica" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 16:54:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HC908-Oscillator-Confusion/m-p/147573#M7490</guid>
      <dc:creator>Nabla69</dc:creator>
      <dc:date>2007-09-20T16:54:38Z</dc:date>
    </item>
  </channel>
</rss>

