Using MRT in with LPC845-brk

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using MRT in with LPC845-brk

748 次查看
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 回复

739 次查看
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 项奖励
回复