Topic : Idle Line Interrupt

Forum : ST7/STM8

Original Post
Post Information Post
October 11, 2010 - 6:31pm
Guest

Hi,

I am using STM8S105 and working on UART2 module.
I have been trying to get Idle Line Interrupt but I couldn't.
I can get RXNE interrupt and the character which is sent from PC.
However I have set UART2_CR2's ILIEN bit, it seems the IDLE bit of UART2_SR does not set. So I couldn't get idle line interrupt. I can see that the Rx pin of the processor is 5V.

What is the possible mistake that I have made?

Thanks&Regards

Replies
Post Information Post
+1
0
-1
October 12, 2010 - 8:14am
Guest

Now I realized that I can get Idle Line Interrupt but it seems that the interrupt appears only once after RXNE interrupt.
I want to get 4 or 5 characters long idle time but after (probably) 1 character long idle time, I get the IDLE interrupt and can't get it again. Is there a way to get this interrupt again without receiving a character?

Thanks&Regards