7 years, 5 months ago.

change UART/serial interrupt triggerlevel?

Sorry for not looking through all the 96 pages - I hope there hasn't been the same question bevor!

I am working with a LPC1768 Bord and it´s UART bus. The problem I have is, that I don't get how to change the Interrupt Triggerlevel, its always fixed to 14-characters - even when I set it in the cmsis library with the following code:

LPC_UART2->FCR &=(3<<6); reset the two responsible bit´s LPC_UART2->FCR |=(2<<6); set to 8 characters

normally it should now trigger the interrupt when there are 8 characters in the RX Buffer - but it is still triggering to 14 characters!

Is there a function or anything to set the triggerlevel ?

Greetings Caspar

Shouldn't it be

LPC_UART2->FCR &=~(3<<6);

to clear the bits? or did the system hide the ~ due to the lack of <<code>> tags?

posted by Andy A 26 Oct 2016

Hey Andy thanks for your response, I checked my code and the negate ~ tilde sign was in there. =/ So maybe it´s because I use the mbed driver - maybe the mbed can driver is not implemented for other trigger level

posted by Jens Wind 14 Nov 2016
Be the first to answer this question.