R
Figure 2-4: Push-Button Switches Require an Internal Pull-Down Resistor in FPGA
In some applications, the BTN_SOUTH push-button switch is also a soft reset that
selectively resets functions within the FPGA.
UCF Location Constraints
Figure 2-5
I/O pin assignment and the I/O standard used, and defines a pull-down resistor on each
input.
Rotary Push-Button Switch
Locations and Labels
The rotary push-button switch is located in the center of the four individual push-button
switches, as shown in
encoder outputs are ROT_A and ROT_B. The center push-button switch is ROT_CENTER.
Operation
The rotary push-button switch integrates two different functions. The switch shaft rotates
and outputs values whenever the shaft turns. The shaft can also be pressed, acting as a
push-button switch.
Push-Button Switch
Pressing the knob on the rotary/push-button switch connects the associated FPGA pin to
3.3V, as shown in
generate a logic Low.
There is no active debouncing circuitry on the push button.
MicroBlaze Development Kit Spartan-3E 1600 Edition User Guide
UG257 (v1.1) December 5, 2007
Push Button
3.3V
provides the UCF constraints for the four push-button switches, including the
NET "BTN_EAST"
LOC = "H13" | IOSTANDARD = LVTTL | PULLDOWN ;
NET "BTN_NORTH" LOC = "V4"
NET "BTN_SOUTH" LOC = "K17" | IOSTANDARD = LVTTL | PULLDOWN ;
NET "BTN_WEST"
LOC = "D18" | IOSTANDARD = LVTTL | PULLDOWN ;
Figure 2-5: UCF Constraints for Push-Button Switches
Figure
2-3. The switch produces three outputs. The two shaft
Figure
2-6. Use an internal pull-down resistor within the FPGA pin to
Figure 2-9
shows how to specify a pull-down resistor within the UCF.
Rotary Push-Button Switch
FPGA I/O Pin
BTN_* Signal
UG227_02_04_060206
Input Pin
| IOSTANDARD = LVTTL | PULLDOWN ;
UG257_02_05_060206
15
www.xilinx.com
Need help?
Do you have a question about the MicroBlaze Spartan-3E 1600E Edition and is the answer not in the manual?
Questions and answers