<?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: s08JM60 osc trimming</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08JM60-osc-trimming/m-p/173493#M11862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is correct!&lt;/P&gt;&lt;P&gt;You generally have a finer adjustment than the old ones though.&lt;/P&gt;&lt;P&gt;But it still gets "coarse" as you get up into these higher baudrates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2009 10:13:23 GMT</pubDate>
    <dc:creator>peg</dc:creator>
    <dc:date>2009-04-20T10:13:23Z</dc:date>
    <item>
      <title>s08JM60 osc trimming</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08JM60-osc-trimming/m-p/173490#M11859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am powering up my first hardware using s08JM60.&lt;/P&gt;&lt;P&gt;I am very unsure about the operation of the Clock Generator&amp;nbsp; (MCG)...&lt;/P&gt;&lt;P&gt;Using the cpu internal ~32.7khz oscillator I can trim the bus frequency by altering values in MCGTRM&lt;/P&gt;&lt;P&gt;[using the code below, the default TRIM value $80 gives a bus freq that gives me 115K baud out the serial comms SCI unit]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using an external 32.768 khz oscillator, the bus freq. is ~10% too slow (for 115K baud generation) and the MCGTRM value does not alter the bus freq.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is this correct? How can I trim to get 115K baud?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;internal&amp;nbsp; osc startup code: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; MCGC2: BDIV=1,RANGE=0,HGO=0,LP=0,EREFS=0,ERCLKEN=0,EREFSTEN=0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #$40,MCGC2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Set MCGC2 register&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; MCGC1: CLKS=0,RDIV=0,IREFS=1,IRCLKEN=1,IREFSTEN=0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #$06,MCGC1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Set MCGC1 register&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; MCGC3: LOLIE=0,PLLS=0,CME=0,VDIV=1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #$01,MCGC3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Set MCGC3 register&lt;BR /&gt;while_Cpu0:&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; ; Wait until FLL is locked&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRCLR&amp;nbsp;&amp;nbsp; 6,MCGSC,while_Cpu0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;external osc startup code is as above but does&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #$06,MCGC1&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 09:33:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s08JM60-osc-trimming/m-p/173490#M11859</guid>
      <dc:creator>donw</dc:creator>
      <dc:date>2009-04-20T09:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: s08JM60 osc trimming</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08JM60-osc-trimming/m-p/173491#M11860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not check through your clock setup but it seems you are assuming that the trim register will affect the frequency when an external oscillator or crystal is used. This is NOT the case.&lt;/P&gt;&lt;P&gt;The trim register works by switching in additional capacitors into the INTERNAL oscillator and so ONLY affect the frequency of the internal oscillator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 09:56:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s08JM60-osc-trimming/m-p/173491#M11860</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2009-04-20T09:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: s08JM60 osc trimming</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08JM60-osc-trimming/m-p/173492#M11861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so to get a standard baud rate (such as 115K baud)&lt;/P&gt;&lt;P&gt;I must have a suitable external osc freq. which divides down/up to get&lt;/P&gt;&lt;P&gt;the correct bus freq., as is the requirement in older type uP's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:01:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s08JM60-osc-trimming/m-p/173492#M11861</guid>
      <dc:creator>donw</dc:creator>
      <dc:date>2009-04-20T10:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: s08JM60 osc trimming</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08JM60-osc-trimming/m-p/173493#M11862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is correct!&lt;/P&gt;&lt;P&gt;You generally have a finer adjustment than the old ones though.&lt;/P&gt;&lt;P&gt;But it still gets "coarse" as you get up into these higher baudrates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:13:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s08JM60-osc-trimming/m-p/173493#M11862</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2009-04-20T10:13:23Z</dc:date>
    </item>
  </channel>
</rss>

