Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Polling and Interrupt method of CAN messages

Status
Not open for further replies.

seshug22

Newbie level 4
Joined
May 20, 2010
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Bangalore
Activity points
1,316
How CAN performs messages on Polling and Interrupt method. On which Flag it take reference to do polling as well as Interrupt

Please give me reply


Thanks & Regards
Seshu
 

as with many IO devices such as CAN, UARTs, ADCs, etc you can poll the interface regularly to see if data has arrived or you can get the interface to interrupt. The problem with polling is that if you don't do it often enough a message can arrive before you have read the previous one. Depending upon the number of buffers in the interface you can loose data. Interrupt programming is more complex.

For slow IO polling is usually fine, very fast use interrupts, e.g. driving a PIC24 UART at 921,600 bps
 
Thanks for giving me Reply

In Basic CAN for every message it give interrupt, but in Full CAN it polls the number of buffers and if any buffer have matching message then it give interrupt........is it right?
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top