User Switches - Digilent Basys MX3 Reference Manual

Hide thumbs Also See for Basys MX3:
Table of Contents

Advertisement

7/30/2019
Label
Schematic Name
LD2
LED2
LD3
LED3
LD4
LED4
LD5
LED5
LD6
LED6
LD7
LED7
All the pins must be defined as digital output (their corresponding TRIS bit must be set to 0):
TRISAbits.TRISA<0-7> = 0; // LED<0-7> configured as output
3.2. Functionality
In order to turn an LED () on or off, turn the corresponding digital output pin high or low by writing 1 or 0 to the corresponding LATA
register bit.
LATAbits.LATA<0-7> = 1; // turn led on
or
LATAbits.LATA<0-7> = 0; // turn led off
Library functions for using the LEDs are contained in the Basys MX3 library pack, LED () library. However, the user can easily use the
LEDs without the LED () library, as presented above.

4. User Switches

Eight switches are provided, labeled SW0 – SW7 on the board and in the schematic, attached to eight digital IO pins of the PIC32. Reading
the switches is done by basic access to an input IO pin. Read more details in Digital Inputs and Outputs chapter.
Figure 4.1 shows the way the switches are electrically connected on the Basys MX3.
https://reference.digilentinc.com/reference/microprocessor/basys-mx3/reference-manual?_ga=2.68739409.1349070004.1564406803-1961480359....
Basys MX3 Reference Manual [Reference.Digilentinc]
PIC32 Pin
SCL2/RA2
SDA2/RA3
TDI/CTED9/RA4
TDO/RA5
TRCLK/RA6
TRD3/CTED8/RA7
Description
Led 2
Led 3
Led 4
Led 5
Led 6
Led 7
14/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?

Questions and answers

Daniel Gaucher
March 28, 2025

I m not able to use the basys mx3 with recent version of mplabx (6.x). The debugging tool does not show in the list. U of Sherbrooke

1 comments:
Mr. Anderson
March 28, 2025

If the Digilent Basys MX3 board does not appear in the list of debugging tools in MPLAB X version 6.x, you can try the following steps:

1. Ensure the board is connected via the DEBUG USB connector.
2. Verify that the correct device (PIC32MX370F512L) is selected during project setup.
3. Make sure all required drivers are installed for the Basys MX3 board.
4. If the tool still does not appear, manually select it under the Licensed Debugger group.
5. If unavailable, consider using MPLAB X IPE to program/erase the microcontroller, though it does not support debugging.

If the problem persists, the version of MPLAB X may not fully support the Basys MX3 debugger integration. In this case, try using a different MPLAB X version or contact support for updates.

This answer is automatically generated

Subscribe to Our Youtube Channel

Table of Contents