<?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のトピックRe: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212328#M18311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is my ka2 template, if the trim is 31.25KHz, PTA0 the output will be 500Hz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not 500Hz, then I think you should replace a debugger and try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I DIY a KA2 standalone programmer,&amp;nbsp; you interested? It can not rely on PC, automatic calibration and download, suitable for use in mass production.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have a P&amp;amp;E Cyclone pro, but it still can not meet my needs.&lt;/P&gt;&lt;P&gt;My demand is to every one of the RTC error value KA2 stored at a certain address, and to avoid sleep problems when the time is not accurate, currently this standalone programmer to solve my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 08:29:59 GMT</pubDate>
    <dc:creator>Mickey</dc:creator>
    <dc:date>2011-06-08T08:29:59Z</dc:date>
    <item>
      <title>MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212321#M18304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;Hello friends, I have a problem to obtain an exact 1 millisecond flag using the MTIM module.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;Here are the details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;USBSPYDER08 programmer ( trimming enabled 20000000 DCO )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;A very simple program in C using CodeWarrior 6.2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;Device initialization wizard screen shows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;CPU:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Internal oscillator frequency = 31.25 KHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Initialize trim values = Yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Trim value address = 3FFA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Fine trim value address = 3FFB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Bus freq. divider = autoselect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Internal bus clock = 8.0 MHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;FLL = Engaged&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;MTIM settings:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Clock source = bus clock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Prescaler = 32&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Modulo register value = 249&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Period = 1ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Overflow interrupt = disabled&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Enable MTIM module = Yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;Main program code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCU_init();&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for( ; ; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; while( MTIMSC_TOF == 0 )&amp;nbsp; /* wait for MTIM counter overflow */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; MTIMSC_TOF = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear counter overflow flag */&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEST_PIN ^= 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* oscilloscope mark 500 Hz square wave */&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; timer_tick();&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /* really small processing here */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;MCU_init()&lt;/SPAN&gt; contains this code that installs trimming values in corresponding registers:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;/*&amp;nbsp; System clock initialization */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp; ICSTRM = *(unsigned char* __paged)CONVERT_TO_PAGED(0x3FFA); /* Initialize ICSTRM register from a non volatile memory */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp; ICSSC = *(unsigned char* __paged)CONVERT_TO_PAGED(0x3FFB); /* Initialize ICSSC register from a non volatile memory */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp; /* ICSC1: CLKS=0,IREFSTEN=0 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp; ICSC1 = 0x00;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialization of the ICS control register 1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp; /* ICSC2: BDIV=0,LP=0 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: 'courier new,courier';"&gt;&amp;nbsp; ICSC2 = 0x00;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;/*---------------------------------------------------------*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;The result is a 800 us ( 0,8 ms ) MTIM overflow instead of 1000 us ( 1 ms ) period.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;I can see that the USBSPYDER writes "Trimming ...&amp;nbsp; " while in FLASH programing.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;I can't understand what I am doing wrong. This has worked for me with any other 9S08 MPU perfectly well.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;Any ideas ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;Thank you in advance.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 22:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212321#M18304</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2011-06-06T22:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212322#M18305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I think it was trimming problem, you can replace the P&amp;amp;E multilink/cyclone pro/ USBDM, download s19 file only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 22:33:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212322#M18305</guid>
      <dc:creator>Mickey</dc:creator>
      <dc:date>2011-06-06T22:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212323#M18306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Mickey thank you fo your return. I really want to know what is going on because I need to put this chip into production.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;The only way I have to program this device right now is the USBSPYDER08. Then, I have a DEMOQE128 board that allows me to&amp;nbsp; program many other chips of this family but not the KA2.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Correct me if I'm wrong but what you mean is that the code ( s19 file ) is correct and the device or something in the programming chain is failing to trim ? So it would be nice to program the chip just with the s19 file. If so, I beleive that too. I will reinstall the PC driver for the USBSPYDER08 to see if I have something wrong there.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;I don't think that the CW tool is failing from the initialization wizard's point of view. I've been using this tool for a long time with many different family chips with no problems. I will also check if the USBSPYDER08 programmer generates a log file with the trimming values used for FLASH programming. I tested some 10 brand new chips and I am getting exactly the same result, so I am starting to think that the FLASHed trimming values are wrong.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Kind regards&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 23:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212323#M18306</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2011-06-06T23:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212324#M18307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello BB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tend to agree with Mickey on the likelihood that&amp;nbsp;the non-volatile trim value at address 0x3FFA is not being programmed.&amp;nbsp; This can easily be&amp;nbsp;directly ascertained during debug.&amp;nbsp; The unprogrammed value of 0xFF will result in a very&amp;nbsp;low oscillator frequency,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trim value cannot be included within your S19 file because it will be subject to unit-to-unit variation to allow for production tolerances.&amp;nbsp; If the Spyder is not capable of calibrating the trim, you may need to use a USB Multilink, which does have this capability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may be worthwhile for your code to provide a "sanity check" so that a specific indication is given (such as continuous&amp;nbsp;flashing LED), should the non-volatile trim register be unprogrammed.&amp;nbsp; If detected during final test, this might prevent a faulty product from reach the field.&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>Tue, 07 Jun 2011 00:47:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212324#M18307</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-06-07T00:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212325#M18308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#333399"&gt;Hello bigmac, I understand what you mean and I agree completely. With one of my friends and colleague we bought 2 units USBSPYDER08 2 years ago from a local Freescale rep here in Buenos Aires, and we have been programming and trimming with no problems. I will check the trimming FLASH cells to see if they have FF. I will report the results. It would be nice to ask somebody at Softec Microsystems ( the SPYDER's manufacturer ) if they have some reference of this problem. I have stock of about 500 pcs of this chips that I bought from Mouser and I believe they should be OK. The mask marked on the chips is ZRWY 0912.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#333399"&gt;I will keep on trying.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#333399"&gt;Thank you.&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 01:09:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212325#M18308</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2011-06-07T01:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212326#M18309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;Okay dear friends, here are some results:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;6 brand new chips from the box, programmed with the same USBSPYDE08 device showed some nice expected results when looking at the FLASH memory map after entering debug memory addresses $3FFA and $3FFB :&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;&lt;STRONG&gt;Chip # 1 = 61 01&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Chip # 2 = 5C 01&lt;/STRONG&gt;&lt;/FONT&gt;﻿&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Chip # 3 = 64 00&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Chip # 4 = 5A 00&lt;/STRONG&gt;&lt;/FONT&gt;﻿&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Chip # 5 = 6C 00&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Chip # 6 = 5D 00&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080"&gt;The same chips have been re-checked without programming (just verifying) and the same exact values are still there in FLASH.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;So the clock is&lt;/STRONG&gt; being correctly trimmed ( hope so ) and&lt;/FONT&gt; ﻿the FLASH memory is being correctly programmed as seen.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;After this I am copying a portion of the wizard's generated code in assembler. Highlighted in green, I can see that the code is initializing the trimming registers. Do you agree that this is the correct code to do this ? I believe yes.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;If this is OK, the only thing that may be causing the failure is that this code is not being excecuted, but I discard this possibility. Many things are working fine in the chip, MTIM, modulo counter value, etc. Besides this I could alter the divisor and I can see the frequency change.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 40:&amp;nbsp; ** ==============================&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 41:&amp;nbsp; **&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp; MCU_init (bean MC9RS08KA2_6)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 43:&amp;nbsp; **&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description :&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 44:&amp;nbsp; **&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Device initialization code for selected peripherals.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 45:&amp;nbsp; ** ==============================&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 46:&amp;nbsp; */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 47:&amp;nbsp; void MCU_init(void)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 48:&amp;nbsp; {&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *** EVALUATION ***&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 49:&amp;nbsp;&amp;nbsp;&amp;nbsp; /* ### MC9RS08KA2_6 "Cpu" init code ... */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 50:&amp;nbsp;&amp;nbsp;&amp;nbsp; /*&amp;nbsp; PE initialization code after reset */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 51:&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Common initialization of the write once registers */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 52:&amp;nbsp;&amp;nbsp;&amp;nbsp; /* SOPT: COPE=0,COPT=1,STOPE=0,BKGDPE=0,RSTPE=0 */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 53:&amp;nbsp;&amp;nbsp;&amp;nbsp; SOPT = 0x40;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 0000 3e001f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #%HIGH_6_13(_SOPT),PAGESEL&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 0003 3e4000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #64,%MAP_ADDR_6(_SOPT)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 54:&amp;nbsp;&amp;nbsp;&amp;nbsp; /* SPMSC1: LVDF=0,LVDACK=0,LVDIE=0,LVDRE=1,LVDSE=1,LVDE=1,BGBE=1 */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 55:&amp;nbsp;&amp;nbsp;&amp;nbsp; SPMSC1 = 0x1D;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 0006 3e1d00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #29,%MAP_ADDR_6(_SPMSC1)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 56:&amp;nbsp;&amp;nbsp;&amp;nbsp; /*&amp;nbsp; System clock initialization */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 57:&amp;nbsp;&amp;nbsp;&amp;nbsp; ICSTRM = *(unsigned char* __paged)CONVERT_TO_PAGED(0x3FFA); /* Initialize ICSTRM register from a non volatile memory */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 0009 3eff1f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #255,PAGESEL&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 000c 4efa00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 250,_ICSTRM&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 58:&amp;nbsp;&amp;nbsp;&amp;nbsp; ICSSC = *(unsigned char* __paged)CONVERT_TO_PAGED(0x3FFB); /* Initialize ICSSC register from a non volatile memory */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 000f 4efb00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 251,_ICSSC&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 59:&amp;nbsp;&amp;nbsp;&amp;nbsp; /* ICSC1: CLKS=0,IREFSTEN=0 */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 60:&amp;nbsp;&amp;nbsp;&amp;nbsp; ICSC1 = 0x00;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialization of the ICS control register 1 */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc, etc, etc, ....&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 0012 80&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; CLR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _ICSC1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 002f be&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; RTS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ﻿&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;/-----------------------------------------------------------/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;Really lost and confused ...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 01:47:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212326#M18309</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2011-06-07T01:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212327#M18310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Friends, please, I need your opinion:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;This portion of code that follows, was taken from AN3471 "Ceiling Fan Speed Control&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Single-Phase Motor Speed Control Using MC9RS08KA2﻿"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Comparing the code generated by CodeWarrior Initialization wizard that I posted before ( assembler highlighted in green ), and this portion of code below, I don't see the loop that "Waits until FLL is engaged﻿﻿" after the clock source is selected.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;My question is: is this OK ? Could this be the reason for the trimmimg failure ?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;I really need to know why my chips are not working. I hope this could be the reason.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Kind regards.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;/**********************************************************/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;;CONFIGURES CLOCK (FEI Operation Mode)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mov #HIGH_6_13(NV_ICSTRM),PAGESEL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda MAP_ADDR_6(NV_ICSTRM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta ICSTRM&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Sets trimming value&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clr ICSC1&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Selects FLL as clock source and disables it&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; in stop mode&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clr ICSC2&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; ICSOUT = DCO output frequency&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;wait_clock:&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; brset CLKST,ICSSC,wait_clock&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Waits until FLL is engaged﻿&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="courier new,courier"&gt;/*********************************************************/&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 07:53:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212327#M18310</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2011-06-08T07:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212328#M18311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is my ka2 template, if the trim is 31.25KHz, PTA0 the output will be 500Hz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not 500Hz, then I think you should replace a debugger and try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I DIY a KA2 standalone programmer,&amp;nbsp; you interested? It can not rely on PC, automatic calibration and download, suitable for use in mass production.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have a P&amp;amp;E Cyclone pro, but it still can not meet my needs.&lt;/P&gt;&lt;P&gt;My demand is to every one of the RTC error value KA2 stored at a certain address, and to avoid sleep problems when the time is not accurate, currently this standalone programmer to solve my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 08:29:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212328#M18311</guid>
      <dc:creator>Mickey</dc:creator>
      <dc:date>2011-06-08T08:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212329#M18312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Mickey, here are the results and some comments about this problem. I programmed a brand new KA2 with your S19 template. You can see the square wave from the attachment. It is 634 Hz and not 500 Hz. That probes that something is still very wrong this end.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;It would be nice to have your source file to see if the FLL wait loop was included or not. Could you please send this initialization code so we can compare it to both the application note's and the CodeWarrior generated one ?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;As a comment, I used 2 different programming tools: the USBSPYDER08 and the DEMOQE board. The results are identical. After programming an testing with each of the programmers, I checked for the FLASH locations containing the trimming values. In both cases the values are identical.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;If we could see your template's software ( which I believe is OK and it works for you at exactly 500 Hz ) we could see what is needed for the chip to work fine ( calibrated ).&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;My next step is to force a constant value into the trimming registers to see if the chip reacts to this change ( square wave frequency ). If it does, my next suspect will be the PC itself or the software driver. If both programming boards reach the same trimming value results, then the chip's internal uncalibrated frequency is being wrongly measured for some reason.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;I am using this same DEMOQE board to program lots of other chips ( QE8, QG8, etc ) with no problems at all.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;So Mickey please provide me this information so we can compare codes.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Kind regards&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 00:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212329#M18312</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2011-06-09T00:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212330#M18313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;More results:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;1. including the wait loop into the initialization code didn't worked. For the current clock needed wizard settings this loop makes the processor hang because this bit never gets set.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;2. I tried manually forcing different values of ICSTRM and I could finally obtain the 1 ms ( 1000 us ) MTIM period using the debugger. This means than the calibration internal registers are working fine. Going up and down with the values returned reasonable consistent period results. This is a fragment of the initializing code with values that work:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;ICSTRM = 0xA6; /* forcing these values produce the correct 1 ms period for MTIM OVF */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;ICSSC =&amp;nbsp; 1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;/* commented original code:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;ICSTRM = *(unsigned char* __paged)CONVERT_TO_PAGED(0x3FFA);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;ICSSC = *(unsigned char* __paged)CONVERT_TO_PAGED(0x3FFB);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080" face="courier new,courier"&gt;*/﻿﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;3. correct me if I'm wrong, but it seems that the calibration values obtained from the USBSPYDER08 and the DEMOQE board for this chip, are wrong. $A6 against $5B. Quite a difference.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;4. I moved the complete programming session to a different machine, installed a fresh version of the compiler and drivers, tested, and the result was the same. Wrong ( same )&amp;nbsp; trimming values in FLASH.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Next step is consulting FREESCALE technical support and Softec Microsystems. Big problem not solved son far.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Cheers&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 03:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212330#M18313</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2011-06-09T03:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212331#M18314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello BB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are a few points for&amp;nbsp;consideration:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The calibration process, and the programming of address 0x3FFA, should be totally independent of any application code programmed to the device.&lt;/LI&gt;&lt;LI&gt;For FEI operation, I would expect&amp;nbsp;the lock wait loop&amp;nbsp;to be unnecessary in most instances (even though Processor Expert device initialisation does include the loop).&amp;nbsp; This is because FEI is the default mode of operation, and FLL&amp;nbsp;lock should occur within 1 ms of the ICSTRM register being updated.&amp;nbsp; The only reason I can see for lock&amp;nbsp;to&amp;nbsp;fail would be if an extreme calibration value (approaching 0x00 or 0xFF)&amp;nbsp;were loaded to ICSTRM, such that the normal DCO frequency range was exceeded.&lt;/LI&gt;&lt;LI&gt;From the datasheet, the trim range for the reference &lt;U&gt;period&lt;/U&gt; of 24us to 40us may be derived.&amp;nbsp; A reference frequency of 31.25kHz corresponds to a period of 32us, the arithmetic mean of the above range.&amp;nbsp; Therefore, nominal calibration value should be 0x80, but subject to a unit-to-unit tolerance.&amp;nbsp; Since variation of the ICSTRM value will result in a linear variation of the period, each increment should result in a change of about 63ns, i.e. a frequency change of 61Hz at 31.25kHz (~0.2%).&lt;/LI&gt;&lt;LI&gt;The&amp;nbsp;range of calibration values 0x5A to 0x6C seems rather low, unless the particular MCU batch you tested had untrimmed reference frequency consistently below the nominal frequency.&amp;nbsp; You can check this by&amp;nbsp;checking the test code&amp;nbsp;output frequency with a trim value of 0x80.&amp;nbsp; For the device with an experimentally derived&amp;nbsp;value of 0xA6, the untrimmed frequency would be above the nominal value.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Do you use CW in conjunction with Spyder?&amp;nbsp; Maybe the reference calibration method associated with CW debugger (P &amp;amp; E compatible) &amp;nbsp;is not compatible with Spyder hardware.&amp;nbsp; This seems the only explanation.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 21:28:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212331#M18314</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-06-09T21:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212332#M18315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Thank you so much dear Mac for your kind reply.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Just to order a little this conversation just in the case some more friends are reading out there:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;1. I've been using my DEMOQE board to program many chips with accurate timing tasks, such as QE128, QE8, QG8, and the like. Never had a problem. The PC, the CodeWarrior IDE, the calibration and programming tasks work perfectly well.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;2. the USBSPYDER08 we bought here was intended just for KA2 chips. The tool programs the FLASH and verifies correctly. It fails to obtain the calibration values needed to be written in FLASH at locations $3FFA and $3FFB.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;3. I am completely aware that the FLASHing process and the calibration process are completely separated issues. In fact, FLASHing is not the problem.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;4. I understand that there may be some "typical" ranged, values for trimming, being $80 right in the middle of the scale, and that is not likely to trim with $00 or $FF. But IMHO $A0 could be a good value for a lot of chips of the same production mask. Writing this value "by hand" forcing a constant into the register, works and places the clock in the desired value. So all chips are working and accept calibration. The calibration tool should find this value correctly, as I do it by hand.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;5. this tool USBSPYDER08 has apparently been discontinued and I couldn't find any support for it, no drivers downloads, no mentions in the manufacturers website Softec Microsystems &lt;A href="http://www.softecmicro.com/" rel="nofollow" target="_blank"&gt;http://www.softecmicro.com/&lt;/A&gt;﻿ which is now SMH Technologies. Not even at the Freescale site&amp;nbsp;&lt;A href="http://www.freescale.com/webapp/search/Serp.jsp?qt=USBSPYDER08&amp;amp;Go=%C2%A0&amp;amp;QueryText=USBSPYDER08&amp;amp;baseUrl=http%3A%2F%2Fwww.freescale.com%2Fwebapp&amp;amp;PART_NUMBER=&amp;amp;SEARCH_OPERATOR=Contains&amp;amp;attempt=-1" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/search/Serp.jsp?qt=USBSPYDER08&amp;amp;Go=%C2%A0&amp;amp;QueryText=USBSPYDER08&amp;amp;baseUrl=http%3A%2F%2Fwww.freescale.com%2Fwebapp&amp;amp;PART_NUMBER=&amp;amp;SEARCH_OPERATOR=Contains&amp;amp;attempt=-1&lt;/A&gt;&lt;/STRONG&gt;&lt;/FONT&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;6. please note this: the same DEMOQE board that I successfully use with the other chips, communicates perfectly with CW IDE and its Hiware software tool. Further more, it recognizes the 9RS08Kxx derivatives. Also fails to calculate de trimming values for the KA2 and throws the same bogus results the USBSPYDER08 finds.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;7. same hardware and software fail to calibrate on different PC's&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;9. Question 1: could Softec Microsystems have released a tool not matching Freescale CodeWarrior's IDE ?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;10. Question 2: what are you guy using to RELIABLY program a KA2 chip ? P&amp;amp;E ? Please enlighten me about this because I am about to buy a 3rd tool to get the job done and avoid making my friend here and myself loose their time &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;I will very much appreciate any idea to solve the problem, specially from Softec Microsystems.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 23:36:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212332#M18315</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2011-06-09T23:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212333#M18316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob,&lt;/P&gt;&lt;P&gt;In theory the&amp;nbsp;&amp;nbsp;DEMOQE board&amp;nbsp;﻿is only designed to work with the QE. Anything else you got is a bonus.&lt;/P&gt;&lt;P&gt;I would ask P&amp;amp;E specifically if the MULTILINK will trim RS08 devices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 02:12:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212333#M18316</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2011-06-10T02:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212334#M18317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;Dear Jim, thank you for your opinion.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;When I bought the five units DEMOQE for my lab about 3 years ago, nobody told me that the 6 pins BDM connector provided on the boards were a bonus. I don't know any document explainig this point I don't see the point in restricting this posibility. In the other hand, clearly the reason is that P&amp;amp;E wants to sell BDM cables, but I find this policy tricky. We have discussed this point some time ago in a different post. I have longly paid this cable by buying 5 units DEMOQE &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;The guys at support@softecmicro.com﻿ ( Softec Microsystems ) are not replying to my request for the USBSPYDER08 device. I will never buy anything from them in the future because in my opinion support is everything after sales. So far, I am not having support of any kind. The device bought from an authorized Freescale dealer has been discontinued and all information related to it, dissapeared.&amp;nbsp; It is noticeable that the corporate mailer rejects all of my support request messages posted at their website (qota exceeded). I can provide the copies of these messages.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;Instead, I received an &lt;U&gt;extremely fast response&lt;/U&gt; from P&amp;amp;E Micro. They explained that the DEMOQE board is not intended for programming any other chip different from a QE128 with the same pin count as the one that comes provided with the board. However, they said that if my instalation and Codewarrior IDE is able to program almost any derivative 9S08 as I'd been doing for the last 3 years, there is a detail to be considered in the case of KA2: the trimming frequency, which is by default ~39 Khz as shown in the Hiwave screen at the moment of programming, should be custom set at 31,25 KHz ( something I didn't imagined or considered ). When I tryied this option, I couldn't FLASH the part because of a software restriction or bug related to the connection between the Codewarrior IDE and the DEMOQE board, specifically for the KAx derivatives. But to my surprise, the log file ( the screen showing all commands ) showed that the calculation of the trimming value &lt;U&gt;was finally correct with $A6&lt;/U&gt;. So, if the DEMOQE board could have FLASHed the part, my problem should had been finally solved.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;The USBSPYDER08 could never calculate the correct value, so it is perfectly normal that the part is incorrectly calibrated.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;Finally, there is no solution for my problem with the elements I have handy. I am now buying a MULTILINK UNIVERSAL BDM device from P&amp;amp;E Micro. I believe that this tool allows programming and calibration of the complete family of derivatives.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;Kind regards&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2011 05:34:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212334#M18317</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2011-06-11T05:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: MC9RS08KA2CPC PROBLEM TRIMMING CLOCK FREQUENCY</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212335#M18318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My experience tells me, USBDM the calibration accuracy better than the P&amp;amp;E.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2011 08:02:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9RS08KA2CPC-PROBLEM-TRIMMING-CLOCK-FREQUENCY/m-p/212335#M18318</guid>
      <dc:creator>Mickey</dc:creator>
      <dc:date>2011-06-11T08:02:46Z</dc:date>
    </item>
  </channel>
</rss>

