Transmission in Receive interrupt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Transmission in Receive interrupt

跳至解决方案
883 次查看
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.

标签 (1)
1 解答
759 次查看
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

在原帖中查看解决方案

1 回复
760 次查看
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