Isr on MQX Lite

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,043件の閲覧回数
wendersonolivei
Contributor IV

Hi All,

I created a little program with a periodical timer interrupt with PEx. And this works fine!

But, reading the User Guide and the RM of MQX Lite, I saw then saying that I should install isr on MQX, not just create that.

So, I installed an isr with the follow code:

uint_32 timer_ptr;

_int_install_isr(LDD_ivIndex_INT_TPM2  , (INT_ISR_FPTR)TI1_OnInterrupt, &timer_ptr);

And the interrupt event stays with the same code, generated by PEx

void TI1_OnInterrupt(void)

{

     Bit1_NegVal();

}

After install the isr, the timer interrupt occurs everytime, without compare with counter.

Someone know what's happening?

Thanks alot,

タグ(3)
0 件の賞賛
返信
1 解決策
787件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

HI

Processor Expert has build-in knowledge about all microcontroller units and integrated peripherals. The microcontroller units and peripherals are encapsulated into configurable components. When you use PE, it will generate code and ISRs automatically.  it can work. You can change the isr if you like.  If you do not use PE, you can use _int_install_isr to install an ISR maually.


Have a nice day:)
Daniel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
788件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

HI

Processor Expert has build-in knowledge about all microcontroller units and integrated peripherals. The microcontroller units and peripherals are encapsulated into configurable components. When you use PE, it will generate code and ISRs automatically.  it can work. You can change the isr if you like.  If you do not use PE, you can use _int_install_isr to install an ISR maually.


Have a nice day:)
Daniel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信