interrupt produced when call Chip_UART_IntEnable()

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

interrupt produced when call Chip_UART_IntEnable()

312 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pmoreira on Mon Feb 23 12:56:47 MST 2015
Hi all,

Is normal that when I call the function Chip_UART_IntEnable(LPC_USART0, UART_INTEN_RXRDY) will produce an inmediate interrupt although don't exist data in serial port?

I am using LPC812, LPCXpresso v7.5.0 [Build 254] [2014-10-31] and LPC8xx UART driver.

Please, can anybody help me?

Many thanks in advance

pmoreira
Labels (1)
0 Kudos
1 Reply

231 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nerd herd on Tue Feb 24 09:45:29 MST 2015
Hi pmoreira,

This isn't the first time I've seen this a situation where enabling an interrupt actually triggers the IRQ initially. Are you clearing all pending interrupts prior to enabling the UART interrupt? Does this "one time" interrupt affect your application negatively?
0 Kudos