<?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: S12ZVL aclk TRIM</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL-aclk-TRIM/m-p/423884#M11302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;Charudatta,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attachment you could find simple example code how to trim ACLK at S12ZVL MCU.&lt;/P&gt;&lt;P&gt;If, you would like trim ACLK clock to different clock than 20kHz, please modify INTERVAL_10MS value inside code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I am afraid that ACLK trimming isn’t enough flexible for that task (ACLK at 10kHz).&lt;/P&gt;&lt;P&gt;I was able set ACLK at my board in range from 16kHz to 26kHz. Therefore I suppose that watchdog period 25ms with ACLK as source clock will be not achievable.&lt;/P&gt;&lt;P&gt;You could achieve watchdog period with ACLK clock source only around 16ms (CPMUCOP = 0x41U; ACLK=16kHz) or around 40ms (CPMUCOP = 0x42U, ACLK=26KHz);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to note that range approximately 16kHz to 26kHz are just measured values on my board. It is possible that this range also could slightly vary between MCUs (therefore we have trimming option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2015 17:55:16 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2015-09-04T17:55:16Z</dc:date>
    <item>
      <title>S12ZVL aclk TRIM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL-aclk-TRIM/m-p/423883#M11301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to trim the aclk clock value Requesting assistance for that&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CPMUPROT = 0x26U;&lt;/P&gt;&lt;P&gt;CPMUCLKS_COPOSCSEL1 = 0x1U; &lt;/P&gt;&lt;P&gt;CPMUCLKS_CSAD = 0x1U;&lt;/P&gt;&lt;P&gt;CPMUPROT = 0x00U;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;CPMUACLKTR = 0x00;&lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;CPMUCOP = 0x41U;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in above code i trim the ACLK to mid as ACLK is default value is 20k CPMUACLKTR = 0x00; will trim ACLK to half i.e 10k&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so watchdog input aclk clock value is 5 k&lt;/P&gt;&lt;P&gt;CPMUCOP = 0x41U; with this i get 25ms watchdog time period&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not getting expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 14:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL-aclk-TRIM/m-p/423883#M11301</guid>
      <dc:creator>charudattaingal</dc:creator>
      <dc:date>2015-09-03T14:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVL aclk TRIM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL-aclk-TRIM/m-p/423884#M11302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;Charudatta,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attachment you could find simple example code how to trim ACLK at S12ZVL MCU.&lt;/P&gt;&lt;P&gt;If, you would like trim ACLK clock to different clock than 20kHz, please modify INTERVAL_10MS value inside code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I am afraid that ACLK trimming isn’t enough flexible for that task (ACLK at 10kHz).&lt;/P&gt;&lt;P&gt;I was able set ACLK at my board in range from 16kHz to 26kHz. Therefore I suppose that watchdog period 25ms with ACLK as source clock will be not achievable.&lt;/P&gt;&lt;P&gt;You could achieve watchdog period with ACLK clock source only around 16ms (CPMUCOP = 0x41U; ACLK=16kHz) or around 40ms (CPMUCOP = 0x42U, ACLK=26KHz);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to note that range approximately 16kHz to 26kHz are just measured values on my board. It is possible that this range also could slightly vary between MCUs (therefore we have trimming option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 17:55:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL-aclk-TRIM/m-p/423884#M11302</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-09-04T17:55:16Z</dc:date>
    </item>
  </channel>
</rss>

