maheshhegde写道:
嗨,
我们正在使用旋转开关和
在我们的设计中使用dip开关。如何在我的vhdl代码中读取旋转开关或DIP开关位置的状态。
嗯,只需将开关的一端连接到地,然后将另一端连接到带有上拉电阻和FPGA引脚的VCC,然后根据需要经常查看FPGA引脚?
----------------------------是的,我这样做是为了谋生。
以上来自于谷歌翻译
以下为原文
maheshhegde wrote:
Hi,
we are using rotatory switch & dip switch in our design.How i can read the status of rotatory switch or dip switch position in my vhdl code.
Ummm, just connect one side of the switch to ground, then the other side to VCC with a pull-up resistor as well as an FPGA pin, and then look at the FPGA pin as often as necessary?
----------------------------Yes, I do this for a living.
maheshhegde写道:
嗨,
我们正在使用旋转开关和
在我们的设计中使用dip开关。如何在我的vhdl代码中读取旋转开关或DIP开关位置的状态。
嗯,只需将开关的一端连接到地,然后将另一端连接到带有上拉电阻和FPGA引脚的VCC,然后根据需要经常查看FPGA引脚?
----------------------------是的,我这样做是为了谋生。
以上来自于谷歌翻译
以下为原文
maheshhegde wrote:
Hi,
we are using rotatory switch & dip switch in our design.How i can read the status of rotatory switch or dip switch position in my vhdl code.
Ummm, just connect one side of the switch to ground, then the other side to VCC with a pull-up resistor as well as an FPGA pin, and then look at the FPGA pin as often as necessary?
----------------------------Yes, I do this for a living.
举报