cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fub
Visitor
Visitor
719 Views
Registered: ‎06-10-2018

Using UART 1 of Zynq7PS of Zybo Z7

I would like to use the PS's UART 1 of a Zybo Z7 to receive and process messages from the PC via the USB connection on J11 connector.

I am able to send messages from Zybo Z7 to the PC with

xil_printf

Now I would like to use an interrupt based approach to read in and process the messages from PC to Zybo Z7. How do I activate the interrupts for that? How do I implement a corresponding handler in the SDK?

0 Kudos
2 Replies
savula
Moderator
Moderator
693 Views
Registered: ‎10-30-2017

Hi @fub ,

 

 The ScuGic interrput controller will handle the interrupts in Zynq. If you wnat to use the interrupt on uart then you need to initialize the ScuGic and connect the uart interrupt to it. we have some default example code to demonstrate the interrupt in zynq. please refer this: https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/uartps/examples/xuartps_intr_example.c

 

Best Regards,
Srikanth
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.

0 Kudos
venui
Moderator
Moderator
645 Views
Registered: ‎04-09-2019

Hi,

Please follow the example project Uart interrupt in SDK.

Regards,

Venu

0 Kudos