<?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のトピックFlash Clock</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Clock/m-p/164435#M10256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have an interesting problem with the FlashClock.&lt;/P&gt;&lt;P&gt;I am using the FLASHERASE1 and FLASHPROG1 in order to write to FLASH.&amp;nbsp; I have used these routines successfully before on an MC9S08QG8, but now I am using it on an MC9S08AW16 and am having issues.&amp;nbsp; It seems to work intermittently.&amp;nbsp; If I use it to store one byte it seems to work well, if I use it to write 3 consecutive bytes, it only writes the first byte.&amp;nbsp; Also I have noticed that often my P&amp;amp;E USB Multilink programmer has become intermittent and often hangs up a page or 2 into programming flash.&amp;nbsp; I am suspicious the two issues are linked. My main suspicion is that somehow I am not getting the FCLK right.&amp;nbsp; I am using an external 8Mhz oscillator on EXTAL in FBE mode with the RFD bits in ICGC2 =&amp;nbsp;000 for division factor = 1.&amp;nbsp; Therefore my ICGOUT should = 8Mhz and my Fbus should be 4Mhz.&amp;nbsp; The data sheet recommends FCDIV = $19 in order to place Fclk around 200Khz (my calculation makes it $13 to $20 and I have tried both).&amp;nbsp; It may not be an FCLK issue, but I can't think what else might be intermittent.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Sep 2011 03:26:52 GMT</pubDate>
    <dc:creator>Dougq5x</dc:creator>
    <dc:date>2011-09-03T03:26:52Z</dc:date>
    <item>
      <title>Flash Clock</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Clock/m-p/164435#M10256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have an interesting problem with the FlashClock.&lt;/P&gt;&lt;P&gt;I am using the FLASHERASE1 and FLASHPROG1 in order to write to FLASH.&amp;nbsp; I have used these routines successfully before on an MC9S08QG8, but now I am using it on an MC9S08AW16 and am having issues.&amp;nbsp; It seems to work intermittently.&amp;nbsp; If I use it to store one byte it seems to work well, if I use it to write 3 consecutive bytes, it only writes the first byte.&amp;nbsp; Also I have noticed that often my P&amp;amp;E USB Multilink programmer has become intermittent and often hangs up a page or 2 into programming flash.&amp;nbsp; I am suspicious the two issues are linked. My main suspicion is that somehow I am not getting the FCLK right.&amp;nbsp; I am using an external 8Mhz oscillator on EXTAL in FBE mode with the RFD bits in ICGC2 =&amp;nbsp;000 for division factor = 1.&amp;nbsp; Therefore my ICGOUT should = 8Mhz and my Fbus should be 4Mhz.&amp;nbsp; The data sheet recommends FCDIV = $19 in order to place Fclk around 200Khz (my calculation makes it $13 to $20 and I have tried both).&amp;nbsp; It may not be an FCLK issue, but I can't think what else might be intermittent.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Sep 2011 03:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Clock/m-p/164435#M10256</guid>
      <dc:creator>Dougq5x</dc:creator>
      <dc:date>2011-09-03T03:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Clock</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Clock/m-p/164436#M10257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Doug,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your clock frequency is 4 MHz, the division required&amp;nbsp;to achive a 200 kHz flash clock&amp;nbsp;frequency will be 20.&amp;nbsp; This would mean that the FCDIV register should have a value of 19 decimal (or $13&amp;nbsp;hexadecimal).&amp;nbsp; For the lower limit of 150 kHz, the value would be 26 decimal.&amp;nbsp; Any value between these limits should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you should check that you&amp;nbsp;have&amp;nbsp;correctly switched to FBE mode when the flash operations take place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, if you are having USB Multilink programming problems, you may have a faulty device.&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>Sun, 04 Sep 2011 03:19:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Clock/m-p/164436#M10257</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-09-04T03:19:44Z</dc:date>
    </item>
  </channel>
</rss>

