Using MRT in with LPC845-brk

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

Using MRT in with LPC845-brk

800 Views
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 Kudos
Reply
1 Reply

791 Views
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 Kudos
Reply