MPC5645S Blinky code please

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

MPC5645S Blinky code please

Jump to solution
847 Views
peteradamcik
Contributor III

Hi Guys, does anyone have any Assembler or C code to blink a LED on an output port for the MPC5645S?

Please let me know.

Thanks guys

Pete

 

0 Kudos
1 Solution
816 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

here is LED blinking code

For LED conf:

 

  /*  Toggling Red LED D6 on EVB to observe MCU reset event */

  SIU.GPDO[121].R = 0;             /* MPC56x4xS EVB LED: data output: LED on */

  SIU.PCR[121].R = 0x0200;         /* MPC56x4xS/S EVB LED: enable PK[0] as output */

 

  /*  Toggling LED D7 on EVB to observe MCU wakeup event */

  SIU.GPDO[70].R = 0;             /* MPC56x4xS EVB LED: data output: LED on */

  SIU.PCR[70].R = 0x0200;         /* MPC56x4xS/S EVB LED: enable PF[0] as output */

                                                                                                                       

 

Best regards,

Peter

View solution in original post

0 Kudos
3 Replies
817 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

here is LED blinking code

For LED conf:

 

  /*  Toggling Red LED D6 on EVB to observe MCU reset event */

  SIU.GPDO[121].R = 0;             /* MPC56x4xS EVB LED: data output: LED on */

  SIU.PCR[121].R = 0x0200;         /* MPC56x4xS/S EVB LED: enable PK[0] as output */

 

  /*  Toggling LED D7 on EVB to observe MCU wakeup event */

  SIU.GPDO[70].R = 0;             /* MPC56x4xS EVB LED: data output: LED on */

  SIU.PCR[70].R = 0x0200;         /* MPC56x4xS/S EVB LED: enable PF[0] as output */

                                                                                                                       

 

Best regards,

Peter

0 Kudos
834 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have some codes for HVAC or OPEN_VG but those are complex sample codes.

I have asked application team if there is something available. As I do not have the development board here I cant test the code.

However I can write it in case apps dont have one , but not test it here.

Best regards,

Peter

0 Kudos
832 Views
peteradamcik
Contributor III

Hi Peter, yes can you please write some code in assembler or C, that would be very much appreciated.

Just need to set the a port to output and blink a LED via a delay.

Would it be possible for you to write it in Assembler? I'm not to good with C.

Thanks Pete

Peter

 

0 Kudos