MP5744P

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MP5744P

1,773件の閲覧回数
Wen666
Contributor I

Hello, when I use DEVKIT-MPC5744P, NXP official ETIMER routine on the ETimer_ISR interrupt function call, the main function of the main program does not directly call the ETimer_ISR function, how to achieve LED flashing? (I couldn't copy the routine function into the project I created.)

0 件の賞賛
返信
5 返答(返信)

1,751件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Since I am really not sure which example you use.

Have a look at few of ours to understand how it works:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5744P-ETimerCountMode-S32DS-1-0/ta-p/...

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5-software-example-list/ta-p/1102445#MPC5744P

Also the eTimer examples are in S32DS example projects:

petervlna_0-1704704449593.png

 

Best regards,

Peter

0 件の賞賛
返信

1,745件の閲覧回数
Wen666
Contributor I

捕获.PNG

 

0 件の賞賛
返信

1,745件の閲覧回数
Wen666
Contributor I
Hello, I am using this routine, that is, etimer initialization starts the interrupt, how is the interrupt into the interrupt function? Is there a callback function in the interrupt or something else, I just have a question here.
0 件の賞賛
返信

1,733件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I am using this routine, that is, etimer initialization starts the interrupt

Well, that is not eTimer initialization function. That it interrupt service routine where you clear eTimer interrupt flag and toggle the pin state where is some LED connected.

how is the interrupt into the interrupt function?

Simply refer to reference manual INTC chapter for details:

In short:

1. eTimer interrupt flag is set

2. IVOR4 exception handler is called if priority is set in INTC for such interrupt.

3. In IVOR4 there is jump to address (offset set interrupt vector table) of ISR

First read trough reference manual, then check examples. If you need drivers, you can use autosar ones.

Best regards,

Peter

 

0 件の賞賛
返信

1,748件の閲覧回数
Wen666
Contributor I

OK,thank you.

0 件の賞賛
返信