How does the UART2 RX Interrupt work ?

4 posts / 0 new
Last post
ankitdaf
Offline
Last seen:2 years 8 months ago
加入:2015-09-03 20:14
How does the UART2 RX Interrupt work ?

Hi

I am trying to understand how the UART2 Receive interrupt callback flow works, can somebody help me out please?

In the example uart2_async provided in peripheral_examples in SDK 5.0.2.1 , the method UART2_Handler calls uart2_rec_data_available_isr , but I don’t understand what is calling the UART2_Handler method itself.

Also there is a UART2_Handler_func method that doesn’t seem to be defined anywhere. Can someone please shed some light on how this is set up, so I can use it correctly ?

Thanks
Ankit

Device:
MT_dialog
Offline
Last seen:3 weeks 6 days ago
工作人员
加入:2015-06-08 11:34
Hi ankitdaf,

Hi ankitdaf,

The UART2_Handler is the default (ISR) handler for UART2 interrupt, check the boot_vector.s file.

Thanks MT_dialog

ren0zhe
Offline
Last seen:1 week 1 day ago
加入:2016-05-05 05:13
hello ,I meet the same

hello ,I meet the same problem. different : uart2_tx is P1_2, uart2_rx is P1_3.

uart2 can send data, but UART2_Handler can not trigger 。

how this is set up, so I can use it correctly ?
thanks!

MT_dialog
Offline
Last seen:3 weeks 6 days ago
工作人员
加入:2015-06-08 11:34
嗨ren0zhe,

嗨ren0zhe,

Please check in the SDK5 in the peripheral examples the uart2_async project, you can check the implementation of the project which uses interrupt in UART transmition and reception.

Thanks MT_dialog