[solved]UART message detection using CTI Interrupt

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

[solved]UART message detection using CTI Interrupt

891 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by crudo on Tue May 14 11:59:36 MST 2013

Hello.


I am trying use the UART CTI Interruption to detect if a message has been received.


I set the FIFO Trigger level to 8 bytes. So, when a message of length less than 8 bytes is received the CTI Interrut is generated, so all fine here. When a non-8bytes-multiple message is received (e.g.: 18 bytes) all fine too: one RDA Interrrupt with 8 bytes, another RDA Interrrupt with 8 bytes and one CTI interrupt with 2 bytes. The issue is when a 8bytes-multiple message is received. In this last case all interrupts received are RDA, because this fit right with FIFO length.


My question is if there is any way to workaround this feature of LPC, and always receive a CTI interrupt when 3.5 character timeout has reached.


Thanks,


Ricardo.

Labels (1)
0 Kudos
1 Reply

759 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by crudo on Tue May 14 13:50:57 MST 2013

I found a simple solution: just leave a byte on FIFO.   :)

0 Kudos