Basys MX3™ Board Reference Manual
4.1
Connectivity
Schematic
Label
Name
SW0
SW0
SW1
SW1
SW2
SW2
SW3
SW3
SW4
SW4
SW5
SW5
SW6
SW6
SW7
SW7
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 routed to SW5, SW6, and SW7.
TRISFbits.TRISF3 = 1;
TRISFbits.TRISF5 = 1;
TRISFbits.TRISF4 = 1;
TRISDbits.TRISD15 = 1; // RD15 (SW3) configured as input
TRISDbits.TRISD14 = 1; // RD14 (SW4) configured as input
TRISBbits.TRISB11 = 1; // RB11 (SW5) configured as input
ANSELBbits.ANSB11 = 0;
TRISBbits.TRISB10 = 1; // RB10 (SW6) configured as input
ANSELBbits.ANSB10 = 0; // RB10 (SW6) disabled analog
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Figure 4.1. Switches schematic diagram.
PIC32 Pin
RPF3/RF3
RPF5/PMA8/RF5
RPF4/PMA9/RF4
RPD15/RD15
RPD14/RD14
AN11/PMA12/RB11
CVREFOUT/AN10/RPB10/CTED11PMA13/RB10
AN9/RPB9/CTED4/RB9
Table 4.1. Switches connectivity.
// RF3 (SW0) configured as input
// RF5 (SW1) configured as input
// RF4 (SW2) configured as input
// RB11 (SW5) disabled analog
Pin
Shared
Description
With
Switch 0
Switch 1
Switch 2
Switch 3
Switch 4
Switch 5
Switch 6
TRIG_2
Switch 7
Page 15 of 56
Need help?
Do you have a question about the Basys MX3 and is the answer not in the manual?
Questions and answers