5 posts / 0 new
Last post
svl0822
Offline
Last seen:5 years 8 months ago
Joined:2014-11-17 19:20
Interrupts from UART

Hello,

I am trying to configure my da14580 to handle an interrupt generated when data is received via UART. Are there any examples on how to do this?

I viewed the thread under this link:

http://support.dialog-semiconductor.com/uarthandler-interrupt%E6%80%8E%E...

but the link provided there doesn't work.

Thanks,
svl0822

MHv_Dialog
Offline
Last seen:5 days 9 hours ago
Staff
Joined:2013-12-06 15:10
Hi,

Hi,

Please take a look at the UART driver and how it is used in the Serial Port Service reference design:http://support.dialog-semiconductor.com/da14580-dialog-serial-port-service. The driver on the peripheral side is interrupt based.

svl0822
Offline
Last seen:5 years 8 months ago
Joined:2014-11-17 19:20
MHv_dialog,

MHv_dialog,

The UART driver is interrupt based, meaning that when an interrupt is generated then the program jumps to the UART_Handler_func() method. Is this correct?

svl0822

MHv_Dialog
Offline
Last seen:5 days 9 hours ago
Staff
Joined:2013-12-06 15:10
Confirmed!

Confirmed!

svl0822
Offline
Last seen:5 years 8 months ago
Joined:2014-11-17 19:20
MHv_dialog,

MHv_dialog,

I receive a single interrupt from on my Rx pin and the isr is executed, but the program immediately stops and jumps to the line

if ((GetWord16(SYS_STAT_REG) & DBG_IS_UP) == DBG_IS_UP)
__asm("BKPT #0\n");

in "hardfault_handler.c" Why is this happening? I'd like to keep receiving interrupts one after another.

Thanks,
svl0822