XESS XStend Manual page 23

Board
Table of Contents

Advertisement

028- // contents of the master are loaded into the slave on the rising
029- // edge of the clock.
030- MASTER.CLK = !KB_CLK;
031- MASTER := [KB_DATA,SLAVE9..SLAVE1];
032- SLAVE.CLK
=
033- SLAVE
:= MASTER;
034-
035- // Show the bit string for the scan code.
036- // bits because these are the parity bit and the stop bit.
037- D_ = ![SLAVE7..SLAVE0];
038-
039- // If one of the '0'-'9' keys is pressed, display the digit on the
040- // right LED display of the XStend Board.
041- TRUTH_TABLE ([SLAVE7..SLAVE0]
042-
043-
044-
045-
046-
047-
048-
049-
050-
051-
052-
053- END EXP3
Listing 20: UCF file for PS/2 XStend example with XS40.
001- # MICROCONTROLLER PINS
002- NET RST
003- #
004- # XS40 BOARD RAM CONTROL PINS
005- NET OE_
006- #
007- #
008- # XSTEND BOARD CONNECTIONS
009- #
010- # PS/2 KEYBOARD CONNECTIONS
011- NET KB_DATA
012- NET KB_CLK
013- #
014- # RIGHT LED DIGIT SEGMENT CONNECTIONS (ACTIVE-LOW)
015- NET RS_0
016- NET RS_1
017- NET RS_2
018- NET RS_3
019- NET RS_4
020- NET RS_5
021- NET RS_6
022- #
023- # INDIVIDUAL LED CONNECTIONS (ACTIVE-LOW)
024- NET D_1
025- NET D_2
026- NET D_3
027- NET D_4
028- NET D_5
029- NET D_6
KB_CLK;
^H16
^H1E
^H26
^H25
^H2E
^H36
^H3D
^H3E
^H46
^H45
LOC=P36; # ACTIVE-HIGH RESET
LOC=P61; # ACTIVE-LOW OUTPUT ENABLE
LOC=P69;
LOC=P68;
LOC=P59;
LOC=P57;
LOC=P51;
LOC=P56;
LOC=P50;
LOC=P58;
LOC=P60;
LOC=P41;
LOC=P40;
LOC=P39;
LOC=P38;
LOC=P35;
LOC=P81;
Ignore the upper two
-> [RS_6..RS_0])
->
^B1101101;
->
^B0100010;
->
^B0100100;
->
^B1000101;
->
^B0010100;
->
^B0010000;
->
^B0101101;
->
^B0000000;
->
^B0000100;
->
^B0001000;

Advertisement

Table of Contents
loading

Related Products for XESS XStend

Table of Contents