|
Re: Handling Hardware Interrupts [message #1729316 is a reply to message #1729261] |
Tue, 12 April 2016 21:37 |
|
Hi,
this strongly depends what the hardware interrupts are intended to provide to the IEC 61499 application world. If you are intending to access and use them as I/Os the process interface is definitly the starting point. However I'm not sure if this is the case for UART and DMA. Sometimes also selfdeveloped special SIFBs are the better option.
However in all cases you will need to write External Event handlers for each interrupt resource. the external event handler normally maintains a list of components that would like to be informed on certain interrupts. On the occurrence of an interrupt an external event handler will go through this list and depending on for example interrupt data activate the appropriate component. Mostly such a component will be a FB. However for communication intterupts (e.g., UART) it can also be that a communication layer is the entity to be activated. Please have a look on the communication documentation in the 4DIAC docs.
|
|
|
Powered by
FUDForum. Page generated in 0.01815 seconds