S32-UART-INTERRUPT

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

S32-UART-INTERRUPT

1,964件の閲覧回数
wangfei11
Contributor II

Hi

I want to open uart interrupt.I set the following register, or I can't access it(void UART1_IRQHandler(void))pastedImage_3.png

pastedImage_4.png

pastedImage_5.png

please can you help set the register?

タグ(1)
2 返答(返信)

1,266件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

The IP register is not set correctly, the priority number must be written to the 7-4 bits of the register.

S32_NVIC->IP[33] = 0x30;    // Priority level 3

See Chapter 7.2.1 of the RM.

But this should not cause any problems.

Did you enable interrupts in LPUART CTRL register?

Is the name of the interrupt handler function correct?

As per S32K144.h, it is

void LPUART1_RxTx_IRQHandler(void)

Regards,

Daniel

1,266件の閲覧回数
wangfei11
Contributor II

Hi

Thanks.I named the wrong interrupt function name,but I only have to Sett Transmit Interrupt Enable to enter the interrupt.

pastedImage_1.png

pastedImage_2.png

Below is my register setting operation, I hope you can give directions.

 pastedImage_3.png

Regards

Fei wang

0 件の賞賛
返信