However, when I export to SDK , I dont know how to read the value from JA2 , is there any examples can show how can I read the value from AD1 via SPI?? I read some of the example but they are all using Pmod as output.
sorry for asking dumb questions, I am very new to FPGA
Question
wing
Hello , I am using Pmod AD1 to get a analog value from a external sensor. And I am using SPI to receive data from AD1.
Now I use JA to connect with AD1 , so :
JA1<->CS
JA2<->D0
JA3<->D1
JA4<->CLK
is this a right approach? I use xdc file to route them:
##Pmod Header JA
##Sch name = JA1
set_property PACKAGE_PIN Y11 [get_ports {ADC_CS}]
set_property IOSTANDARD LVCMOS33 [get_ports {ADC_CS}]
#Sch name = JA2
set_property PACKAGE_PIN AA11 [get_ports {ADC_D0}]
set_property IOSTANDARD LVCMOS33 [get_ports {ADC_D0}]
##Sch name = JA3
set_property PACKAGE_PIN Y10 [get_ports {ADC_D1}]
set_property IOSTANDARD LVCMOS33 [get_ports {ADC_D1}]
##Sch name = JA4
set_property PACKAGE_PIN AA9 [get_ports {ADC_SCLK}]
set_property IOSTANDARD LVCMOS33 [get_ports {ADC_SCLK}]
However, when I export to SDK , I dont know how to read the value from JA2 , is there any examples can show how can I read the value from AD1 via SPI?? I read some of the example but they are all using Pmod as output.
sorry for asking dumb questions, I am very new to FPGA
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.