mcf5329evb -> turn on leds

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mcf5329evb -> turn on leds

2,113 Views
VeronicaFNX
Contributor I
Hello,
 
i have bougth an m5329evb. I want to turn on "led 0" and "led 1" (debug leds) but i don't know like doing it.
I have tried to do
 
 MCF_GPIO_DSCR_DEBUG = MCF_GPIO_DSCR_DEBUG_DEBUG_DSE(0xff); 
 
but it isn't the solution. Somebody can help me? 
 
Thanks 
Labels (1)
0 Kudos
5 Replies

454 Views
SimonMarsden_de
Contributor II
Hi On the M5329EVB evaluation board, the LEDs are connected to the TIMER port. To flash them, you need to carry out two steps:

(a) Configure the TIMER port for General Purpose output:
    /* Pin assignments for port TIMER            Pins are all GPIO outputs     */    MCF_GPIO_PDDR_TIMER = MCF_GPIO_PDDR_TIMER_PDDR_TIMER3 |                          MCF_GPIO_PDDR_TIMER_PDDR_TIMER2 |                          MCF_GPIO_PDDR_TIMER_PDDR_TIMER1 |                          MCF_GPIO_PDDR_TIMER_PDDR_TIMER0;    MCF_GPIO_PAR_TIMER = 0;
(b) Toggle bits in the PODR_TIMER register to turn the LEDs on and off, e.g:
   /* Sample code: Loop to flash LED */    while (1) {        MCF_GPIO_PODR_TIMER ^= MCF_GPIO_PODR_TIMER_PODR_TIMER3;        for (i = 0; i < 500000; i++)            asm ("nop");    }
Hope this helps.

Simon    
0 Kudos

454 Views
VeronicaFNX
Contributor I
Hello,
 
it doesn't work. I have unloaded the files "schematic mcf5329 card engine" and i can see in page 7 (LOGIC) that leds goes through latch U7.
 
 
I think that I must do something with latch. What do you think?
 
Thank you very much
 
  Veronica
0 Kudos

454 Views
SimonMarsden_de
Contributor II
That's strange - it works for me out of the box. Perhaps we don't have the same EVB? Mine is called:

Zoom ColdFire M5329EVB Development Kit



0 Kudos

454 Views
VeronicaFNX
Contributor I
You are right. My EVB is MCF5329.
 
The program works well. Thanks
 
 Veronica
0 Kudos

454 Views
VeronicaFNX
Contributor I
I feel it. I have been mistaken.
 
 It is mcf5373L
0 Kudos