Jump to content
  • 0

XADC Application


Engr_Shan

Question

Dear All, 
As my question is very basic, I am using XADC IP catalog in block design. after converting into wrapper my code is mentioned below, I am getting correct value, but I am not sure how can I use my values further in program, I want to control the led's with different values of Analog, Thanks.
 

module Apr_13_1_wrapper
(Vaux14_v_n,
Vaux14_v_p,
Vaux7_v_n,
Vaux7_v_p,
Vp_Vn_v_n,
Vp_Vn_v_p,
alarm_out,
ot_out);
input Vaux14_v_n;
input Vaux14_v_p;
input Vaux7_v_n;
input Vaux7_v_p;
input Vp_Vn_v_n;
input Vp_Vn_v_p;
output alarm_out;
output ot_out;

wire Vaux14_v_n;
wire Vaux14_v_p;
wire Vaux7_v_n;
wire Vaux7_v_p;
wire Vp_Vn_v_n;
wire Vp_Vn_v_p;
wire alarm_out;
wire ot_out;

Apr_13_1 Apr_13_1_i
(.Vaux14_v_n(Vaux14_v_n),
.Vaux14_v_p(Vaux14_v_p),
.Vaux7_v_n(Vaux7_v_n),
.Vaux7_v_p(Vaux7_v_p),
.Vp_Vn_v_n(Vp_Vn_v_n),
.Vp_Vn_v_p(Vp_Vn_v_p),
.alarm_out(alarm_out),
.ot_out(ot_out));



endmodule

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Hello @Engr_Shan,
We have several example projects which use the XADC IP.
I'm not sure what board you have, but you if you want an HDL-only project, you can look at the following:
https://reference.digilentinc.com/learn/programmable-logic/tutorials/zybo-z7-xadc-demo/start where the LED associated with a channel brightens as that channel's voltage increases
https://reference.digilentinc.com/learn/programmable-logic/tutorials/basys-3-xadc/start where the 7-segment displays show the voltage difference

If you want to use it with a Zynq processor, you can check out this demo:
https://reference.digilentinc.com/reference/programmable-logic/cora-z7/demos/xadc

Best wishes,
Eduard

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...