Page 1 of 1

Rising Edge Pin Interrupt on UART Rx

Posted: Thu Oct 05, 2017 2:16 pm
by barometre
Hi,

I want to reset a hardware timer in every rising edge of UART Rx port which works in 9600 baud rate. How can I do it without without CPU usage/interruption? Instead of using CPU interreption when it is the time I just want to check the timer value.

Thanks

Re: Rising Edge Pin Interrupt on UART Rx

Posted: Thu Oct 05, 2017 2:31 pm
by barometre
To make it clear, actually I want to catch the idle of the bus so one byte takes around 1.04mS and the bus is on idle when it is over 1.5ms. Do you think if I use " rx_timeout_thresh" as 1, will it be appropriate?

Is rx_timeout_thresh interrupts when there is no data coming to Rx port or there is no data in ringbuffer?

Re: Rising Edge Pin Interrupt on UART Rx

Posted: Fri Oct 06, 2017 2:57 am
by tele_player
What is this for?

Re: Rising Edge Pin Interrupt on UART Rx

Posted: Sat Oct 07, 2017 9:52 pm
by barometre
tele_player wrote:What is this for?
For kbus it is similar to linbus. It was in use with old BMW series. After receiving last stop bit if the bus silent for 1.5ms it means it is available to send message.

Re: Rising Edge Pin Interrupt on UART Rx

Posted: Sat Oct 07, 2017 10:30 pm
by tele_player
Interesting. I have 2 BMWs...

Re: Rising Edge Pin Interrupt on UART Rx

Posted: Tue Oct 10, 2017 11:01 am
by barometre
3 series e46 and 5 series e39 uses this interface. There are others models too but I dont know them very well actually.