<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Help Controlling onboard MCF51JF LEDs - please look</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171157#M6362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't spot any obvious problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem may be "which peripheral has got those pins"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have the manual for your exact chip here, but looking through the MCF51JE256 manual has me confused. "Pin Assignments" gives GPIO and Alternate functions for the port pins (PTA0/FB_D2/SS1 etc), but I can't find a single register that sets the assignments for these pins like I'm used to in the MCF53 series.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found the following sentence: "MCF51JE256/128 uses the HCS08 style of pin muxing to be Flexis-compatible. The pin defaults as GPIO and the alternate functions follow a priority where ALT3 has the highest priority."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that means if the peripheral is enabled then it "wins". So if you have SS1 or the Flexbus enabled then PTA0 won't be GPIO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a debugger? Can you write to the registers from the debugger while looking to see if the LEDs come on? That's usually easier than writing code and hoping it is doing what you expect. Can you get a LED, meter or CRO to a pin that doesn't have an alternate function (possibly PTA4-7) and see if that works first?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2012 08:50:50 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2012-06-11T08:50:50Z</dc:date>
    <item>
      <title>Help Controlling onboard MCF51JF LEDs - please look</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171156#M6361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am learning to use the MCF51JF128 board and am attempting to write a simple program to control the onboard green and orange LEDs on the MCF51JF128 board. &amp;nbsp;(on my own - not a school project)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not for the life of me understand what I am missing that is keeping them from functioning. &amp;nbsp;I have studied the quick start demo that freescale provides, but it seems needlessly complicated for my purposes. (tons of linked files throwing errors when trying to prune it down).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have the code attached below (Don't worry - it's short) . &amp;nbsp;What am I missing that would make the LEDs not respond? &amp;nbsp;They respond correctly in the quickstart demo program, but I don't know what I am missing here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* LEDs.h&lt;BR /&gt;*&lt;BR /&gt;* Created on: Apr 4, 2011&lt;BR /&gt;* Author: B23243&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#ifndef LEDS_H_&lt;BR /&gt;#define LEDS_H_&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#define LED1_ON PTA_D &amp;amp;= 0xFE&lt;BR /&gt;#define LED2_ON PTC_D &amp;amp;= 0xDF&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#define LED1_OFF PTA_D |= 0x01&lt;BR /&gt;#define LED2_OFF PTC_D |= 0x20&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#define LED1_TOG if(PTA_D &amp;amp; 0x01) PTA_D &amp;amp;= 0xFE; else PTA_D |= 0x01&lt;BR /&gt;#define LED2_TOG if(PTC_D &amp;amp; 0x20) PTC_D &amp;amp;= 0xDF; else PTC_D |= 0x20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#endif /* LEDS_H_ */&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;#include "common.h" /* include peripheral declarations */&lt;BR /&gt;#include &amp;lt;LEDs.h&amp;gt; /* code to toggle pins connected to LEDs */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* function prototypes */&lt;BR /&gt;void disable_watchdog(void);&lt;BR /&gt;void LEDs_Init(void);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* variables*/&lt;BR /&gt;unsigned char state;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* functions */&lt;BR /&gt;void disable_watchdog(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SIM_SCGC4 = SIM_SCGC4_WDOG_MASK;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SIM_COPC = SIM_COPC_COPT(0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void LEDs_Init(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MXC_PTAPF4 = ((MXC_PTAPF4 &amp;amp; 0xF0) | 0x01);//Select PTA0 GPIO&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MXC_PTCPF2 = ((MXC_PTCPF2 &amp;amp; 0x0F) | 0x10);//Select PTC5 GPIO&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PTA_DD = 0x01; //Configure PTA0 as output&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PTC_DD = 0x20; //configure PTC5 as output&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LED1_ON;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LED2_ON;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* main */&lt;BR /&gt;void main(void) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; EnableInterrupts;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; /* include your code here */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;LEDs_Init();&lt;BR /&gt;&amp;nbsp; &amp;nbsp;disable_watchdog();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; for(;&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;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; } /* loop forever */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; /* please make sure that you never leave main */&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2012 23:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171156#M6361</guid>
      <dc:creator>Lisa_Illinois</dc:creator>
      <dc:date>2012-06-10T23:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help Controlling onboard MCF51JF LEDs - please look</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171157#M6362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't spot any obvious problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem may be "which peripheral has got those pins"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have the manual for your exact chip here, but looking through the MCF51JE256 manual has me confused. "Pin Assignments" gives GPIO and Alternate functions for the port pins (PTA0/FB_D2/SS1 etc), but I can't find a single register that sets the assignments for these pins like I'm used to in the MCF53 series.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found the following sentence: "MCF51JE256/128 uses the HCS08 style of pin muxing to be Flexis-compatible. The pin defaults as GPIO and the alternate functions follow a priority where ALT3 has the highest priority."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that means if the peripheral is enabled then it "wins". So if you have SS1 or the Flexbus enabled then PTA0 won't be GPIO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a debugger? Can you write to the registers from the debugger while looking to see if the LEDs come on? That's usually easier than writing code and hoping it is doing what you expect. Can you get a LED, meter or CRO to a pin that doesn't have an alternate function (possibly PTA4-7) and see if that works first?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 08:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171157#M6362</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2012-06-11T08:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help Controlling onboard MCF51JF LEDs - please look</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171158#M6363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do agree with tom that there is not an obvious problems.&lt;/P&gt;&lt;P&gt;Tom, if you look at pg 211 of the JF RM you will see that&amp;nbsp;&lt;SPAN&gt;&amp;nbsp; MXC_PTAPF4 is the configuration register, and that writing 1 to the lower nibble sets the pin function to "PTA0". Not that this is much help to the OP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you look in the "data sheet" 8.1 "Pin assignments" it seems setting the MCX register to 1 in the repective nibble selects the GPIO function....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is something else going on that is not seen in the code...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 09:59:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171158#M6363</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2012-06-11T09:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help Controlling onboard MCF51JF LEDs - please look</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171159#M6364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this with the rest of the files from the downloaded MCF51JF128 demo it works as expected, but when I am running with just these two files (plus expectations.c and the other auto-generated files) it doesn't work. &amp;nbsp;What other factors besides the code I provided are necessary to make the LEDs work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 20:12:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171159#M6364</guid>
      <dc:creator>Lisa_Illinois</dc:creator>
      <dc:date>2012-06-11T20:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help Controlling onboard MCF51JF LEDs - please look</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171160#M6365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Onviously all that other code is doing something you need to do. You've cut it down too much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trick now is to try and find out what it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are two classic ideas:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - Modify the working code and your non-working code to dump all the peripheral registers somewhere. Print them in hex to a serial port or dump them via a debugger - whatever is easiest. Then COMPARE the dumps to track down what is different. That should lead you to what you're missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 - Starting with the working code, start commenting out slabs of the initialisation code until it stops working. You can use a "binary chop" (look that up) to make this pretty quick. The last small bit you commented out is the bit you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course the above assumes that your cut-down code is actually running and is not locked up somehow because you forgot to initialise the stack pointer or something. Given it can't even turn a LED on, how do you know it is running at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 20:21:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171160#M6365</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2012-06-11T20:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help Controlling onboard MCF51JF LEDs - please look</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171161#M6366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you singled stepped thru the code in the debugger as suggested?&lt;/P&gt;&lt;P&gt;What I have done in similar cases is to look at each IO register before and after writing to it so see if the expected things are happening.&lt;/P&gt;&lt;P&gt;Another idea is to create a processor expert project and just define two "bits' assigned to the ones you are using. This code should be simpler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 22:30:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171161#M6366</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2012-06-11T22:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help Controlling onboard MCF51JF LEDs - please look</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171162#M6367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this post is well over a year old and OP has surely moved on but I'd like to share the solution :smileysilly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to enable the clock for port C or it won't do... anything. Set bit 2 of the SIM_SCGC6 register. SIM_SCGC6 is documented in the reference manual for the MCF51JF128 in section 13.2.18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps someone in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I was only using the LED on port C. Obviously you should enable the clock for port A if you want the other one too :smileyblush:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 00:04:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171162#M6367</guid>
      <dc:creator>jeffroberts</dc:creator>
      <dc:date>2013-10-05T00:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help Controlling onboard MCF51JF LEDs - please look</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171163#M6368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well spotted. This family of chips has clock gating to every peripheral, and all that can default to OFF on Reset and Power On.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is why it is worth sitting down and reading the manual from cover to cover before asking questions, or before starting coding. This feature of the chip is clearly detailed in multiple places, but you have to read everything to find those references. If the ports aren't working (the OP's problem ) you wouldn't think of reading the "Clock Gating" chapter to find the following:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;5.2.5 Clock gating&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;The clock to each module can be individually gated on and off using the SIM's SCGCx&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;registers. These bits are cleared after any reset, which disables the clock to the&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;corresponding module to conserve power. Prior to initializing a module, set the&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;corresponding bit in SCGCx register to enable the clock. Before turning off the clock,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;disable the module or place the module in its default configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;Turning off the clock for an enabled, working module can produce unexpected behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no mention of this clock gating in the EGPIO chapter at all. it is a "Standard Module" that is used in multiple chips, and the "Clock Gating" is a feature of the chip provided in another module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OP said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I have studied the quick start demo that freescale provides, but&lt;/P&gt;&lt;P&gt;&amp;gt; it seems needlessly complicated for my purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would say NECESSARILY complicated. These are very complicated chips. If you want something you can get working easier, then start with a 6800, 2650, 68HC11 or Z80 from 30 years ago. :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you really don't want to code these things from scratch. It may be satisfying to write all the code for a product "on the bare metal", but it sure isn't productive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 12:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171163#M6368</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-10-05T12:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help Controlling onboard MCF51JF LEDs - please look</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171164#M6369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Jeff Roberts wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I know this post is well over a year old and OP has surely moved on but I'd like to share the solution &lt;SPAN class="emoticon-inline emoticon_silly" style="height: 16px; width: 16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You have to enable the clock for port C or it won't do... anything. Set bit 2 of the SIM_SCGC6 register. SIM_SCGC6 is documented in the reference manual for the MCF51JF128 in section 13.2.18.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps someone in the future.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Edit: I was only using the LED on port C. Obviously you should enable the clock for port A if you want the other one too &lt;SPAN class="emoticon_blush emoticon-inline" style="height: 16px; width: 16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello from the future &lt;IMG id="smileywink" class="emoticon emoticon-smileywink" src="https://community.nxp.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&amp;nbsp; Another "bare metalist" here, ran into the same problem on MCF51JF128 and was about to give up until I found this post.&amp;nbsp; Signed up here today just to thank you guys!&amp;nbsp; Hopefully the next revision of the Reference Manual will have some mention of clock gating in the EGPIO section.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-Controlling-onboard-MCF51JF-LEDs-please-look/m-p/171164#M6369</guid>
      <dc:creator>bencarter</dc:creator>
      <dc:date>2020-10-29T09:19:34Z</dc:date>
    </item>
  </channel>
</rss>

