User Buttons - Digilent Basys MX3 Reference Manual

Hide thumbs Also See for Basys MX3:
Table of Contents

Advertisement

7/30/2019
Library functions for using the switches are contained in the Basys MX3 library pack, SWT library. However, the user can easily use the
switches without the SWT library, as presented above.
4.3. Shared Pins
As shown in the connectivity table above, SW7 driving signal is shared with the TRIG_2 signal in 2×15 Pins Debug Header.

5. User Buttons

There are five buttons on the board, labeled BTNU, BTNL, BTNC, BTNR, BTND both on the board and in the schematic, attached to five
digital IO pins of PIC32. Reading the buttons is done by basic access to an input IO pin. Read more details in Digital Inputs and Outputs
chapter.
Figure 5.1 shows the way the buttons are electrically connected on the Basys MX3.
5.1. Connectivity
Table 5.1. Button connectivity.
Label
Schematic Name
BTNU
BTNU
BTNL
BTNL
BTNC
BTNC
BTNR
BTNR
BTND
BTND
All the pins must be defined as digital input: their corresponding TRIS bit must be set to 1, and analog function must be disabled for pins
corresponding to BTNU, BTNL, BTNR, BTND.
https://reference.digilentinc.com/reference/microprocessor/basys-mx3/reference-manual?_ga=2.68739409.1349070004.1564406803-1961480359....
Basys MX3 Reference Manual [Reference.Digilentinc]
PIC32 Pin
PGEC1/AN1/RPB1/CTED12/RB1
PGED1/AN0/RPB0/RB0
RPF0/PMD11/RF0
AN8/RPB8/CTED10/RB8
RPA15/RA15
Pin Shared With
Description
PGC
Button up
PGD
Button left
TRIG_1
Button center
S0_PWM
Button right
S1_PWM
Button down
16/52

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Basys MX3 and is the answer not in the manual?

Table of Contents