tify;text-indent: 40px;">我试图通过u*** HID主机将u***键盘与我的spartan 6接口。
我对此问题的第一反应是查看用户指南:
http://www.digilentinc.com/Data/Products/NEXYS3/Nexys3_rm.pdf
他们谈论u***非常虚伪,但它似乎一旦我插入u***它,它应该工作。
但它肯定没有。
他们所展示的是USB主机连接到PIC24FJ192,后者连接到斯巴达6板。
也许我需要做一些额外的事情来让它发送到ps2键盘时钟和数据?
我在VHDL编程,我决定检查是否
ps数据和时钟都有任何结果。
所以这就是我的工作。
---开始代码
实体键盘是
port(时钟:std_logic;
psclock,psdata:在std_logic中;
LED:输出std_logic_vector(1 downto 0));
结束键盘
键盘的架构beh
开始
LED(0)以下为原文
I am trying to interface a u*** key board with my spartan 6 via the u*** HID host.
My first response to the problem was to look at the user guide:
http://www.digilentinc.com/Data/Products/NEXYS3/Nexys3_rm.pdf
They talk about the u*** hid very vagely, but it almost seems like once I plug the u*** it, then it should work.
But it certainly does not.
What they do show is that the u*** host connects to a PIC24FJ192 which connects to the spartan 6 board. Maybe I need to do something extra to make it send stuff to the ps2keyboard clock and data?
I am programming in VHDL and I decided to check if
There was anything comming out of the ps data and clock. So this is what I do.
---start code
entity keyboard is
port( clock: in std_logic;
psclock, psdata: in std_logic;
LED: out std_logic_vector(1 downto 0));
end keyboard
architecture beh of keyboard is
begin
LED(0) <= psclock;
LED(1) <= psdata;
end beh.
-------------end code
--start ucf file
Net "clock" LOC= V10 | IOSTANDARD=LVCMOS33;
## Pic USB-HID interface
Net "psdata" LOC = J13| IOSTANDARD = LVCMOS33;
Net "psclock" LOC = L12 | IOSTANDARD = LVCMOS33;
Net "LED<0>" LOC = U16 | IOSTANDARD = LVCMOS33;
Net "LED<1>" LOC = V16 | IOSTANDARD = LVCMOS33;
--end ucf file
Theoretically, when the keyboard is connected and doing nothing, the psclock and psdata are both high. If they are both high, then they should light up the leds. The problem is that it isn't lighting up the LEDs which makes me believe that I am missing a step. The above code is all I am using when I synthesise and programm the board.
what can I do to get the keyboard to send signals to my spartan 6 board?
Has anyone tried interfacing a u*** keyboard to the spartan 6?