MPC5748g controller- ON LED and OFF LED after 2minutes. Using timer .

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

MPC5748g controller- ON LED and OFF LED after 2minutes. Using timer .

771 Views
Krishnaja
Contributor II

Hi,

I am using MPC5748g controller. I want to ON a LED1 for 2 minutes(using timer) and then OFF LED1 and also ON LED2 for different time period using timer.

Please suggest me possible solution.

Thanks,

Krishnaja

0 Kudos
Reply
3 Replies

764 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

good starting point is example "hello_pll_interrupt" : 

jiri_kral_0-1612865292538.png

 

Or "pit_periodic_interrupt_mpc5748g" based on SDK: 

jiri_kral_1-1612865426058.png

 

Jiri 

 

0 Kudos
Reply

758 Views
Krishnaja
Contributor II

Hi Jiri,

Thank you for the reply!

Actually, I want to ON a GPIO pin / LED and start a timer immediately.

In "pit_periodic_interrupt_mpc5748g" TOGGLE function is used. And in "timing_pal_mpc5748g" callBack is used, please suggest a timmer without call back.

So please suggest accordingly. 

 

Krishnaja

 

 

0 Kudos
Reply

737 Views
jiri_kral
NXP Employee
NXP Employee

Hi Krishnaja, 

 

In this case - the SDK based example is the correct one  "pit_periodic_interrupt_mpc5748g". Well,  I think that right now is good time for starting with - at least - some basic documentation. With default install path you can find SDK documentation in c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32PA_RTM_3.0.3\doc\ folder.

Anyway - you can use PINS_DRV_SetPins() or PINS_DRV_ClearPins() functions for turning LED ON or OFF. 

jiri_kral_0-1612971294617.png

 

Jiri

 

0 Kudos
Reply