<?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>S12 / MagniV MicrocontrollersのトピックRe: Proper value for ECLKDIV</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Proper-value-for-ECLKDIV/m-p/183964#M6869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You cleared all of my doubts..&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Mar 2010 20:15:00 GMT</pubDate>
    <dc:creator>bizzari</dc:creator>
    <dc:date>2010-03-19T20:15:00Z</dc:date>
    <item>
      <title>Proper value for ECLKDIV</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Proper-value-for-ECLKDIV/m-p/183962#M6867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I'm using an MC9S12DG256 microcontroller; it works with a 16 MHz oscillator ( the oscillator is connected to XTAL pin ) and with a PLL set in order to have a clock of 48 MHz. So, the bus clock is set to 24 MHz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this situation, what is the correct value for the ECLKDIV register?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking in the manual (S12EETS4KV2.pdf) at page 15 there is a schematic for calculate the right value.&lt;/P&gt;&lt;P&gt;As far as I know, the EETS4K module works using the Oscillator clock. However, looking the schematic at page 15 of that manual, I see that I have to use Tbus.&lt;/P&gt;&lt;P&gt;Tbus, looking page 14, is the period of the bus clock; however my bus clock is working at 24 MHz..&lt;/P&gt;&lt;P&gt;So, am I using the correct values for calculating the value to put in the ECLKDIV register?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried, using those parameters, to calculate the value for my ECLKDIV register: the result seems to be 0x4A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I've some doubts if I try to calculate the value in a case the PLL is turned off; in fact, it seems the value is the same.&lt;/P&gt;&lt;P&gt;Is it all correct? If I try to divide the oscillator clock with that value (in order to find the EETS4K frequency), I see this result:&lt;/P&gt;&lt;P&gt;Oscillator clock / (8 * 10) = 16MHz / (8 * 10) = 200kHz (the 8 divisor is due to the PRDIV8 bit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it seems all correct but I have a doubt regarding that Tbus in the diagram at page 15 in the S12EETS4KV2 pdf; Tbus changes in the PLL ON - PLL OFF situation but it seems it's not a problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 16:28:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Proper-value-for-ECLKDIV/m-p/183962#M6867</guid>
      <dc:creator>bizzari</dc:creator>
      <dc:date>2010-03-18T16:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proper value for ECLKDIV</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Proper-value-for-ECLKDIV/m-p/183963#M6868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You calculated it right, ECLKDIV = 0x4A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EEPROM clock is derived from oscilator clock (16MHz). Tbus is bus clock period in microseconds, with PLL selected 1/24MHz&amp;nbsp;~ 0.04us,&amp;nbsp;and with PLL not selected&amp;nbsp; - 1/8MHz = 0.125us&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Number&amp;nbsp;5 in the formula&amp;nbsp;is target EEPROM clock period, 1/200kHz = 5us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5us + 0.04us, or 5us + 0.125us doesn't change resulting ECLKDIV setting. Tbus matters only at slow bus clocks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 17:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Proper-value-for-ECLKDIV/m-p/183963#M6868</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-03-18T17:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proper value for ECLKDIV</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Proper-value-for-ECLKDIV/m-p/183964#M6869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You cleared all of my doubts..&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 20:15:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Proper-value-for-ECLKDIV/m-p/183964#M6869</guid>
      <dc:creator>bizzari</dc:creator>
      <dc:date>2010-03-19T20:15:00Z</dc:date>
    </item>
  </channel>
</rss>

