Transmission in Receive interrupt

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

Transmission in Receive interrupt

Jump to solution
878 Views
rahulkrishna
Contributor IV

Hi,

 

I wanted to know in some very critical timings restrictions can i transmit a CAN message in the CAN receive interrupt. I have configured the CAN peripheral to be handled by the xgate. Is it advisable to do this way?

 

Thanks in advance.

Labels (1)
1 Solution
754 Views
kef2
Senior Contributor V

Doable. Just don't block interrupts waiting (forever) for transfer complete or for free Tx buffer. Is there free Tx buffer? Then fill it and clear buffer flag. All buffers busy? Then postpone Tx and exit.

Edward

View solution in original post

1 Reply
755 Views
kef2
Senior Contributor V

Doable. Just don't block interrupts waiting (forever) for transfer complete or for free Tx buffer. Is there free Tx buffer? Then fill it and clear buffer flag. All buffers busy? Then postpone Tx and exit.

Edward