赛灵思
直播中

王霞

8年用户 1405经验值
私信 关注
[问答]

如何阅读开关状态

嗨,
我们正在使用旋转开关和
在我们的设计中使用dip开关。如何在我的vhdl代码中读取旋转开关或DIP开关位置的状态。
感谢你,Mahesh Hegde。

以上来自于谷歌翻译


以下为原文

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.
Thanks You in Advance,
Mahesh Hegde.

回帖(2)

黄淳

2019-1-17 10:57:46
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.
举报

陈舒斌

2019-1-17 11:04:46
嗨Mahesh,
看看一些提供的参考设计,例如
用于S3E入门套件。
旋转开关也有一个带文档。
有一个很好的综合 
Eilert

以上来自于谷歌翻译


以下为原文

Hi Mahesh,
take a look at some provided reference designs, e.g. for the S3E Starter kit.
There's one for the rotary switch too, with documentation.
 
Have a nice synthesis
  Eilert
举报

更多回帖

发帖
×
20
完善资料,
赚取积分