AR# 56446

14.6 XPS/SDK - How can I add external interrupts to the GIC on Zynq devices?

描述

How can I add external interrupts to the GIC on Zynq devices in XPS?

解决方案

To add an external interrupt in XPS, open the MHS file and add a port to the top level ports similar to the following:

  PORT interrupt = interrupt, SIGIS = INTERRUPT, SENSITIVITY = EDGE_RISING, DIR = I

Note: For more information on creating external ports, see Chapter 2 of the Platform Specification Guide:
 
http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_5/psf_rm.pdf

Once this is done, open the Ports tab in the System Assembly view in XPS. 

From the Interrupt Controller drop-down, select processing_system7_0, and in the Connected Port Column, select L to H No Connection.

In the GUI, use the blue arrow to add interrupts to the Connected Interrupt(s):

Note: The interrupt added first will be connected to IRQ_F2P port 91, the second interrupt that is added will be IRQ_F2P port 90, etc.

Export to SDK.

For an example application that uses external interrupts on Zynq devices, see the attached interrupt_app.c file at the end of this answer record.

附件

文件名 文件大小 File Type
interrupt_app.c 3 KB C
AR# 56446
日期 10/22/2014
状态 Active
Type 综合文章
器件
Tools