LPCOpen UART IDLE Interrupt

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

LPCOpen UART IDLE Interrupt

2,111 次查看
stephendgb
Contributor II

In the documentation package UM10736 for LPC1519 it references that TXIDLE is a possible interrupt setting. However, LPCOpen driver does not map this interrupt in the UART_INT section it is only available in the status entry section of the same header. The bit location is the same for both of them. 

I am using legacy code that previously used this interrupt setting. 

Is this omission intended? Can the Interrupt be used? Is there a recommended alternative to using this? Is it possible clear this interrupt by writing to the interrupt clear register? Does that change the status register?

标签 (3)
标记 (1)
0 项奖励
回复
4 回复数

2,067 次查看
stephendgb
Contributor II

So just to confirm is reflected in the INSTAT register? 

As I mentioned before this interrupt is not specified in LPCOpen  UART_INTEN*. You mean for me to enable it using 0x01<<3 to set this bit along with all the other interrupts I might need using IntEnable. Then to use the code GetIntStatus to determine which of the interrupts happened. Is this correct? Of course the alternative is to use GetStatus. 

0 项奖励
回复

2,031 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @stephendgb 

"So just to confirm is reflected in the INSTAT register?"

->> Yes.

 

BR

Alice

0 项奖励
回复

2,078 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @stephendgb 

1)Can the Interrupt be used? Is there a recommended alternative to using this?

->>Yes, it can be used. You can use your own code to enable this interrupt.

2) Is it possible clear this interrupt by writing to the interrupt clear register? Does that change the status register?

->>No, the USART interrupt enable clear register is used to clears the corresponding bit in the INTENSET
register. Also can not change the status register.

 

BR

Alice

0 项奖励
回复

2,063 次查看
stephendgb
Contributor II

So just to confirm is reflected in the INSTAT register? 

As I mentioned before this interrupt is not specified in LPCOpen  UART_INTEN*. You mean for me to enable it using 0x01<<3 to set this bit along with all the other interrupts I might need using IntEnable. Then to use the code GetIntStatus to determine which of the interrupts happened. Is this correct? Of course, the alternative is to use GetStatus. 

标记 (1)
0 项奖励
回复