<?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: RS232 via SCI on DEMO9S08QG8 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129606#M2017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Guys, this talk about the trim value being marginal in some microcontrollers has me worried. What do you do if it is? My goal is obviously to prevent any final assemblies from shipping with a marginal or non-compatible baud. That would defeat the whole point of doing the NRE for incorporating SCI (in my application). If these boards ever come back, this SCI app will be my &lt;B&gt;only&lt;/B&gt; tool for troubleshooting its history.&lt;BR /&gt;&lt;BR /&gt;Why wouldn't the BDM programmer put an accurate value into the trim register? I'm not understanding why this value would ever be marginal, provided I use that "sanity check" code Peg highlighted.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 00:00:33 GMT</pubDate>
    <dc:creator>irob</dc:creator>
    <dc:date>2007-04-17T00:00:33Z</dc:date>
    <item>
      <title>RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129592#M2003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Back in October 2005, Freescale had their rollout tour of the S08. I attended a seminar and got a Demo board. During one of the labs, they gave us a sample Codewarrior project which exercised the hardware SPI port, using the RS232 link to a PC. With a terminal app on the PC, you could work with the various features of the board, like PWM, the A/D, etc. Very nifty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I finally got around to playing with this Codewarrior app for its SPI guts. I observed something strange. If I attempt to run this program from the board alone, I get nothing but garbage out the RS232 port, almost as if the parameters were slightly off (baud rate, parity, something). In the source code, it appears to come up natively in 4800 baud.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I run the app from the CW debugger, I get recognizable output on my terminal (using the excellent &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Frealterm.sourceforge.net" rel="nofollow" target="_blank"&gt;RealTerm&lt;/A&gt;&lt;SPAN&gt;, btw). Apparently, this is the only way to control the comm settings. I still don’t understand why it can’t be run from the board alone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I’m guessing it’s because the crystal on the board (P/N FS12.00) isn’t a nice denomination of 4800. And apparently the debugger locks that in precisely? Is this correct?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 22:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129592#M2003</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2007-04-04T22:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129593#M2004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello iRob,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Perhaps you might supply us with the contents of this sample project.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The 12 MHz crystal is associated with the processor for the BDM interface section - I don't think it is accessible&amp;nbsp;by the target device.&amp;nbsp; It would be reasonable to assume that the internal clock of the target would be utilised, and this would need to be calibrated.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;On my QG8 demo board, there seems to be provision for an external crystal (32 kHz), but these components are not fitted.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 11:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129593#M2004</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-04-05T11:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129594#M2005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Rob,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In your message and subject you keep talking about the SPI and then talk about RS-232 and baudrates, do you actually mean SCI and not SPI?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The QG8 demo board runs on internal oscillator unless you have fitted the crystal oscillator components into the empty positions on the board (and configured it to use the xtal). This internal oscillator needs to be trimmed for things that need a precise clock (like the SCI) unless you are very lucky and have a device that comes up close enough at the default midway setting.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Although I fail to see how having the BDM connected and active would assist in this.&lt;/DIV&gt;&lt;DIV&gt;The only explanation I can give is that you are failing to properly trim the internal osc and it is running at a frequency which is on the edge of being acceptable for SCI operation. Connecting the BDM somehow influences the frequency very slightly but enough to make it acceptable.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 15:46:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129594#M2005</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-05T15:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via *SCI* on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129595#M2006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;You are correct, Peg. I meant "SCI", not "SPI". Mods, can you change the original subject line to SCI? I'm unable to edit the first post.&lt;BR /&gt;&lt;BR /&gt;And I think your theory is a good one, concerning the trim of the internal oscillator. I've never looked into trimming, so I'm not sure where to start. The P&amp;amp;E programming hardware handles trimming automatically, no?&lt;BR /&gt;&lt;BR /&gt;I noticed in the QG8 datasheet that the ICSTRM register seems to handle trimming. Not sure yet how to initialize it.&lt;BR /&gt;&lt;BR /&gt;Big Mac, I'm uploading the Freescale sample project for you guys.&lt;P&gt;Message Edited by irob on &lt;SPAN class="date_text"&gt;2007-04-05&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;10:58 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 23:56:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129595#M2006</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2007-04-05T23:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via *SCI* on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129596#M2007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Rob,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;P&amp;amp;E's tools (in Codewarrior or not) will calculate and tell you the correct values for TRIM and FTRIM. You can then get it to programme these values to the places reserved for this purpose in flash. On a QG8 this is $FFAF for TRIM and $FFAE for Fine TRIM. On initialisation these should be sanity checked and copied to the working registers. In a S08QG these are ICSTRM $3A and bit 0 of ICSSC $3B.&lt;/DIV&gt;&lt;DIV&gt;Simple as that!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2007 05:10:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129596#M2007</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-06T05:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129597#M2008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hello irob,&lt;BR /&gt;&lt;BR /&gt;I'm assuming that you're running the demo app &lt;I&gt;unmodified&lt;/I&gt;.&amp;nbsp; If so, internal clock trim is handled by the demo app and should not be an issue.&amp;nbsp; One thing you might check is the jumper position on the "COM EN" option header.&amp;nbsp;&amp;nbsp; Unless an application is controlling the transciever via PTA4, this jumper should be removed.&amp;nbsp; For this app, this jumper should be removed.&lt;BR /&gt;&lt;BR /&gt;After verifying that the code runs in the debugger,&amp;nbsp; halt the debugger, close the debugger, unplug the USB cable, then plug in the USB cable.&amp;nbsp; The app should reset and you should see the menu displayed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Terminal settings:&amp;nbsp; 4800/8 bits/No Parity/1 stop/no flow control.&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Frank&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2007 21:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129597#M2008</guid>
      <dc:creator>thisobj</dc:creator>
      <dc:date>2007-04-06T21:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129598#M2009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for the help, guys. I've got it running now stand-alone. There are some strange junk characters at the end of each line. But those may be RealTerm settings? I'm not sure. Take a look at the attached screenshot.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 22:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129598#M2009</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2007-04-09T22:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129599#M2010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi IRob,&lt;BR /&gt;&lt;BR /&gt;Probably a page code translation error or a setting of Real Term to show the characters CR and LF.&lt;BR /&gt;Especially when both characters are understood properly because the menu displays fine.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 23:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129599#M2010</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-04-09T23:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129600#M2011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Rob,&lt;/DIV&gt;&lt;DIV&gt;It is CR/LF. Because Realterm is more a diagnostic tool it shows everything. You can change the font to one they supply that actually has a little CR and LF and ACK etc rendered within each character.&lt;/DIV&gt;&lt;DIV&gt;I like to use Terminal Cntrl+Hex. I think it is a seperate download. This also allows you to "see" hex data.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 03:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129600#M2011</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-10T03:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129601#M2012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Peg, any idea why the RealTerm Sourceforge page still has 1.99 (circa 2005) on it, while the I2CChip page has 2.0.0.43 from September '06?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 03:48:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129601#M2012</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2007-04-10T03:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129602#M2013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Rob,&lt;/DIV&gt;&lt;DIV&gt;No idea at all!&lt;/DIV&gt;&lt;DIV&gt;I have had some communication with the developer regarding some bugs and suggestions a long time ago and he pointed me in the direction of the other site.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 13:38:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129602#M2013</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-10T13:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129603#M2014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;thisobj wrote:&lt;BR /&gt;I'm assuming that you're running the demo app &lt;I&gt;unmodified&lt;/I&gt;. If so, internal clock trim is handled by the demo app and should not be an issue.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Yes, I've not modified the demo app. And I see where the app is handling the internal clock with the function ics_intclk. But I'm not following how this sets up for a precise 4800 baud. That function sets the BDIV bits of ICSC2, and the clock source, but how exactly does that get accurately set to 4800?&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;peg wrote:&lt;BR /&gt;P&amp;amp;E's tools will calculate and tell you the correct values for TRIM and FTRIM. You can then get it to programme these values to the places reserved for this purpose in flash... On initialisation these should be sanity checked and copied to the working registers. In a S08QG these are ICSTRM $3A and bit 0 of ICSSC $3B.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;The function ics_intclk does appear to instantiate the trim register:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;volatile byte _NVICSTRM;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;...where:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;extern volatile byte _NVICSTRM @0x0000FFAF;&lt;BR /&gt;#define NVICSTRM _NVICSTRM&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;So the question is, how does this location get a trim value set? Is this were the P&amp;amp;E tools calibrate it?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 04:22:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129603#M2014</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2007-04-11T04:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129604#M2015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi Rob,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;$FFAF is where the programmer will put the trim value it calculates if you ask it to.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is the piece of code that moves it to the active register:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;// Function for switching to an internal clock mode (FEI or FBI)&lt;BR /&gt;void ics_intclk(byte C1, byte C2) {&lt;BR /&gt;byte i;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;if (NVICSTRM != 0xFF) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ICSTRM = NVICSTRM;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// load trim value if location not blank&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;This form of sanity check on the nonvolatile value is quite stupid even though it appears in most examples that I have seen. I actually prefer to do no sanity check (even though I said to do one before). The reason for this is.....&lt;/DIV&gt;&lt;DIV&gt;Failing to write to the trim register results in a value of $80, this value in a fair proportion of cases will result in a SCI that works and another fair proportion that will be marginal. The rest won't work due to baudrate mismatch. Writing an uninitialised value of $FF will result in a baudrate that never works which is far better than one that "sort of" works. This is because I have never seen a device that needs a trim value bigger thatn about $B0. Of course if you want to be fussy you could identify the un programmed non-volatile register and do something else to prevent it getting shipped. But blindly allowing the reset value to remain there is just asking for trouble.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BTW they are ignoring the fine trim here. It is not necessary as the main trim will get you close enough for correct SCI operation. Also I find that it seems to be beyond the ability of the BDM/software to calculate it correctly anyway.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Message Edited by peg on &lt;SPAN class="date_text"&gt;2007-04-11&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;04:17 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 13:14:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129604#M2015</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-11T13:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SPI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129605#M2016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Peg,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;With respect to sanity checking of the oscillator trim value, in those cases where&amp;nbsp;accurate trim is esential, I have even gone to the extent of inhibiting "normal" operation of the program, and have provided continuous flashing of an existing&amp;nbsp;LED.&amp;nbsp; This positively identifies that the trim value is unprogrammed, and hopefully prevents marginal products from reaching the field.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 21:48:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129605#M2016</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-04-11T21:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SCI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129606#M2017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Guys, this talk about the trim value being marginal in some microcontrollers has me worried. What do you do if it is? My goal is obviously to prevent any final assemblies from shipping with a marginal or non-compatible baud. That would defeat the whole point of doing the NRE for incorporating SCI (in my application). If these boards ever come back, this SCI app will be my &lt;B&gt;only&lt;/B&gt; tool for troubleshooting its history.&lt;BR /&gt;&lt;BR /&gt;Why wouldn't the BDM programmer put an accurate value into the trim register? I'm not understanding why this value would ever be marginal, provided I use that "sanity check" code Peg highlighted.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 00:00:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129606#M2017</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2007-04-17T00:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SCI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129607#M2018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Rob,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We are really just talking about ensuring that there was some value calculated and programmed rather than not at all. I have never experienced a variation in one device of more than 2 in the calculated trim (it does seem to vary with temperature a fair bit). That is why I say the fine trim is a bit hopeful using a BDM calculation (the LSB of the main trim varies by one every second time so why try to go any further).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Having said that I have never experienced a BDM calculated trim that does not produce a well within tolerance baudrate.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 04:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129607#M2018</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-17T04:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SCI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129608#M2019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hmm, I'm still not out of the water on this one. Though the DEMO9S08QG8_APP contains the trim code, I'm still having baud problems after programming.&lt;BR /&gt;&lt;BR /&gt;Here's my repeatable test:&lt;BR /&gt;&lt;BR /&gt;1) Program the DEMO board with Freescales's debugger from inside CodeWarrior. Click the Go button and the RS232 link works fine. Hit reset on the DEMO board or in the debugger and RS232 still works. Cycle power to the DEMO board and again, the RS232 still works.&lt;BR /&gt;&lt;BR /&gt;2) Program the DEMO board with P&amp;amp;E's latest PROGHCS08 Programmer, v1.37. Now there is a trim problem, as the RS232 link is all garbled.&lt;BR /&gt;&lt;BR /&gt;There has to be some setting that the P&amp;amp;E PROGHCS08 Programmer is not using, which the debugger is.&lt;BR /&gt;&lt;BR /&gt;I've attached my program s-record. Can anyone else verify this behavior? It works on a DEMO9S08QG8 board.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 01:42:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129608#M2019</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2007-05-16T01:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SCI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129609#M2020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Rob,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Are you using the GUI or the command line version?&lt;/DIV&gt;&lt;DIV&gt;Are you issuing the PT command?&lt;/DIV&gt;&lt;DIV&gt;CW generates a script based on the menu settings. If you have selected calculate and program trim it will put a PT command in the script for the command line programmer to do.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 05:12:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129609#M2020</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-05-16T05:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SCI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129610#M2021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm using the GUI version of P&amp;amp;E's programmer, PROGHCS08 Programmer. In the main window are a list of command line options, such as PM (program module), etc. See attachment. As you can see, there is no PT command. This is my problem, huh?&lt;BR /&gt;&lt;BR /&gt;Can this command be added to the algorithm file, perhaps? Now curiously, I noticed that P&amp;amp;E's stand-alone programmer (Cyclone Image Creation Utility) does have the PT command. Weird.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 00:25:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129610#M2021</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2007-05-17T00:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 via SCI on DEMO9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129611#M2022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello iRob,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;It may be stating the obvious, but did you try scrolling down the command window - I seem to recall that, on some previous occasions, the program trim command was hidden from view.&amp;nbsp; Another possibility is to enter "PT" from the keyboard, and see what happens.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 03:02:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RS232-via-SPI-on-DEMO9S08QG8/m-p/129611#M2022</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-05-17T03:02:26Z</dc:date>
    </item>
  </channel>
</rss>

