09-19-2018 10:39 PM
I am using a Zybo Z7-20 and want to read external, analog voltages. Now I read in the XADC documentation something about an EOC interrupt. And I want to use this interrupt in my bare-metal program to trigger the reading of the digitalized voltages.
But I don't find documentations, if there is an function existing for reading it out.
Can someone give me an advice or knows more about this than me?
Greetings from a really HelplessGuy
09-20-2018 01:44 AM
You can try example of XADC wizard IP on right click and simulation in Vivado to understand the EOC interrupt.
09-20-2018 04:10 AM
I know how the interrupt EOC is working. My problem is, if there is in bare-metal programs functions existing to read that interrupt. I do not find something about this.
greeting from a helplessguy
09-20-2018 04:52 AM
The interrupt goes high when enabled through the interrupt enable register. For eoc (or eos, if you use the channel sequencer in the XADC configuration) connect eoc_out to the only free pin left in the interrupt concatenation to processor IRQ.
Thus you can monitor it.
09-20-2018 05:38 AM
09-24-2018 02:03 AM
There is no need of any library for XADC and its interrupt.
09-24-2018 04:52 AM - edited 09-24-2018 11:42 PM
I am going now forward! Thanks for your support.
One of the functions I am using is XAdcPs_IntrClear() the problem here is, that this function needs a Mask of Bits to enable the interrupts I want to use.
The definitionfile "xadcps_intr.c" of these functions are saying, that the bitmask is in the header "xadcps_hw.h". But there are only bitmasks for the alarms (like temperature and so on). And the given bitmasks are all u64 and not u32.
Where are the definitions of the bitmasks for EOC or EOS to find?
@pvenugo: You also said, that I only have to connect eos_out to the IRQ_F2P[0:0] port of thre ZYNQ7 Processing System block. Problem now, every interrupt of these gets the warning BD 41-1731. Only ip2intc_irpt is working fine. How do I fix this problem? And do I have to connect eos_out/eoc_out or ip2intc_irpt?