Rising Edge Pin Interrupt on UART Rx

barometre
Posts: 22
Joined: Mon May 09, 2016 11:22 am

Rising Edge Pin Interrupt on UART Rx

Postby barometre » Thu Oct 05, 2017 2:16 pm

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

barometre
Posts: 22
Joined: Mon May 09, 2016 11:22 am

Re: Rising Edge Pin Interrupt on UART Rx

Postby barometre » Thu Oct 05, 2017 2:31 pm

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?

tele_player
Posts: 90
Joined: Sun Jul 02, 2017 3:38 am

Re: Rising Edge Pin Interrupt on UART Rx

Postby tele_player » Fri Oct 06, 2017 2:57 am

What is this for?

barometre
Posts: 22
Joined: Mon May 09, 2016 11:22 am

Re: Rising Edge Pin Interrupt on UART Rx

Postby barometre » Sat Oct 07, 2017 9:52 pm

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.

tele_player
Posts: 90
Joined: Sun Jul 02, 2017 3:38 am

Re: Rising Edge Pin Interrupt on UART Rx

Postby tele_player » Sat Oct 07, 2017 10:30 pm

Interesting. I have 2 BMWs...

barometre
Posts: 22
Joined: Mon May 09, 2016 11:22 am

Re: Rising Edge Pin Interrupt on UART Rx

Postby barometre » Tue Oct 10, 2017 11:01 am

3 series e46 and 5 series e39 uses this interface. There are others models too but I dont know them very well actually.

Who is online

Users browsing this forum: No registered users and 48 guests