Using MRT in with LPC845-brk

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

Using MRT in with LPC845-brk

796件の閲覧回数
tomato
Contributor III

Hi all,

Can you help me writing some code to learn how to use the MRT registers with the LPC845brk board?

I would like to toggle a pin when the MRT channel 0 generate the interrupt

tomato_1-1671725954773.png

Is my code correct? 

Where should I put the interrupt handler?

 

0 件の賞賛
返信
1 返信

787件の閲覧回数
RaRo
NXP TechSupport
NXP TechSupport

Hello @tomato,

Could you please try out the MRT example in MCUXpresso with the SDK LPC845 or LPC845BREAKOUT?

RaulRomero_0-1671741386182.pngRaulRomero_1-1671741386187.png

RaulRomero_2-1671741386189.png

The MRT example is a simple demonstration program, that sets up the MRT hardware block to trigger a periodic interrupt after every 250 milliseconds. When the PIT interrupt is triggered a message a printed on the UART terminal and an LED is toggled on the board.

It may be useful to try it out, and then made some changes according to what you need.

Best regards, Raul.

0 件の賞賛
返信