<?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: need trim?</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/need-trim/m-p/292544#M10206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the bus frequency value by measuring the signal on oscilloscope.&lt;/P&gt;&lt;P&gt;There is ECLK pin on S12(X) devices which can provide bus signal (on the S12G128, it is pin 25 (PB0) or connector J8 - pin1). To ensure that, put this code line into main function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ECLKCTL_NECLK=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See ECLKCTL register description in the ref. manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is the same, i would rather recommend setting the bus freq manually. Here is attached the PLL calculator.&lt;/P&gt;&lt;P&gt;Execute the file and select S12P family (the CPMU module is the same as on S12G). Then select Oscillator = 8MHz and desired Bus Freq.&lt;/P&gt;&lt;P&gt;On the right side you'll see register settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way how to initialize the System Clocks is described in the SW example project of the application note AN4455 MC9S12G128 Demonstration Lab Training:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455.pdf?fsrch=1&amp;amp;sr=1" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455.pdf?fsrch=1&amp;amp;sr=1"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455SW.zip?fsrch=1&amp;amp;sr=1" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455SW.zip?fsrch=1&amp;amp;sr=1"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455SW.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2013 13:40:31 GMT</pubDate>
    <dc:creator>iggi</dc:creator>
    <dc:date>2013-06-20T13:40:31Z</dc:date>
    <item>
      <title>need trim?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/need-trim/m-p/292543#M10205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have one TWR-S12G128 board.&lt;/P&gt;&lt;P&gt;with processor expert, I set bus clock as 10M. but in debugger, when i use FLASH command to check the bus frequency, it shows 11M. should i trim the frequceny? if yes how to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 10:49:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/need-trim/m-p/292543#M10205</guid>
      <dc:creator>hotashu</dc:creator>
      <dc:date>2013-06-14T10:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: need trim?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/need-trim/m-p/292544#M10206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the bus frequency value by measuring the signal on oscilloscope.&lt;/P&gt;&lt;P&gt;There is ECLK pin on S12(X) devices which can provide bus signal (on the S12G128, it is pin 25 (PB0) or connector J8 - pin1). To ensure that, put this code line into main function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ECLKCTL_NECLK=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See ECLKCTL register description in the ref. manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is the same, i would rather recommend setting the bus freq manually. Here is attached the PLL calculator.&lt;/P&gt;&lt;P&gt;Execute the file and select S12P family (the CPMU module is the same as on S12G). Then select Oscillator = 8MHz and desired Bus Freq.&lt;/P&gt;&lt;P&gt;On the right side you'll see register settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way how to initialize the System Clocks is described in the SW example project of the application note AN4455 MC9S12G128 Demonstration Lab Training:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455.pdf?fsrch=1&amp;amp;sr=1" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455.pdf?fsrch=1&amp;amp;sr=1"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455SW.zip?fsrch=1&amp;amp;sr=1" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455SW.zip?fsrch=1&amp;amp;sr=1"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455SW.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 13:40:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/need-trim/m-p/292544#M10206</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2013-06-20T13:40:31Z</dc:date>
    </item>
  </channel>
</rss>

