<?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>topic Re: qe32 - ics in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189868#M14481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;I forget to set ﻿﻿EREFSTEN = 1. If this option is set, crystal, keeps going on, after mcu enters in stop mode.&lt;/P&gt;&lt;P&gt;Thank you bigmac.&lt;/P&gt;&lt;P&gt;Roberto&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2011 21:39:46 GMT</pubDate>
    <dc:creator>roberto_m</dc:creator>
    <dc:date>2011-12-13T21:39:46Z</dc:date>
    <item>
      <title>qe32 - ics</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189864#M14477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, I'm setting up qe32 clock. It is very difficult.&lt;/P&gt;&lt;P&gt;I have an external crystal wit 32768 kHz.&lt;/P&gt;&lt;P&gt;I need a 39.85 MHz DCOoutput and f_bus about 20 MHz.&lt;/P&gt;&lt;P&gt;I also use rtc =&amp;gt; 2 s. interrupt. (&amp;nbsp;RTCSC&amp;nbsp; = 0x65;&amp;nbsp; RTCMOD = 0x03&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Actually I use this procedure to setup the ICS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; /* ICSC1: CLKS=0,RDIV=0,IREFS=0,IRCLKEN=1,IREFSTEN=1 */&lt;BR /&gt;&amp;nbsp; setReg8(ICSC1, 0x03);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialization of the ICS control register 1 */&lt;BR /&gt;&amp;nbsp; /* ICSC2: BDIV=0,RANGE=0,HGO=0,LP=0,EREFS=1,ERCLKEN=1,EREFSTEN=0 */&lt;BR /&gt;&amp;nbsp; setReg8(ICSC2, 0x06);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialization of the ICS control register 2 */&lt;BR /&gt;&amp;nbsp; while(!ICSSC_OSCINIT) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Wait until the initialization of the external crystal oscillator is completed */&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; /* ICSSC: DRST_DRS=1,DMX32=1 */&lt;BR /&gt;&amp;nbsp; clrSetReg8Bits(ICSSC, 0x80, 0x60);&amp;nbsp;&amp;nbsp; /* Initialization of the ICS status and control */&lt;BR /&gt;&amp;nbsp; while((ICSSC &amp;amp; 0xC0) != 0x40) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Wait until the FLL switches to Mid range DCO mode */&lt;BR /&gt;&amp;nbsp; }&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i am connect with bdm and I go in stopmode3, after resume I have a correct clock. If I disconnect the bdm, clock changes. Why? Where I am wrong?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Roberto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 01:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189864#M14477</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2011-12-13T01:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: qe32 - ics</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189865#M14478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you ascertain that the bus frequency has altered when you remove the Multilink?&amp;nbsp; The bus frequency cannot be determined from the RTC module, since this makes use of the internal reference source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be expected that the internal reference frequency will differ between BDM and normal operating mode.&amp;nbsp; But this would not affect the bus frequency for FEE mode.&amp;nbsp; An excerpt from the Reference manual:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;EM&gt;ICS Trim Register (ICSTRM)&lt;/EM&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;EM&gt;Note: TRIM is loaded during reset from a factory programmed location when not in BDM mode. If in a BDM&lt;/EM&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;EM&gt;mode, a default value of 0x80 is loaded.&lt;/EM&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;Regards,&lt;/P&gt;&lt;P align="left"&gt;Mac&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 09:34:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189865#M14478</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-12-13T09:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: qe32 - ics</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189866#M14479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bigmac.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a TPM module, and tpm overflow to genrate a clock on a pin (bus clock is the clock source for tpm, in my case). I made some calculus and set an appropriate "modulo". When I am in bdm mode the clock works as I expected. If I am not in bdm mode it doesn't work as I expected.&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 15:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189866#M14479</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2011-12-13T15:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: qe32 - ics</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189867#M14480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use an external crystal as reference, why I have to set up the trim?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 17:44:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189867#M14480</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2011-12-13T17:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: qe32 - ics</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189868#M14481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;I forget to set ﻿﻿EREFSTEN = 1. If this option is set, crystal, keeps going on, after mcu enters in stop mode.&lt;/P&gt;&lt;P&gt;Thank you bigmac.&lt;/P&gt;&lt;P&gt;Roberto&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 21:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/qe32-ics/m-p/189868#M14481</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2011-12-13T21:39:46Z</dc:date>
    </item>
  </channel>
</rss>

