Basys MX3™ Board Reference Manual
3.1
Connectivity
Label
LD0
LD1
LD2
LD3
LD4
LD5
LD6
LD7
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
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 I/O
pins of the PIC32. Reading the switches is done by basic access to an input I/O pin. Read more details in
Inputs and Outputs
section.
Figure 4.1 shows the way the switches are electrically connected on the Basys MX3.
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Figure 3.1. LED schematic diagram.
Schematic
PIC32 pin
name
LED0
TMS/CTED1/RA0
LED1
TCK/CTED2/RA1
LED2
SCL2/RA2
LED3
SDA2/RA3
LED4
TDI/CTED9/RA4
LED5
TDO/RA5
LED6
TRCLK/RA6
LED7
TRD3/CTED8/RA7
Table 3.1. LED connectivity.
Description
Led 0
Led 1
Led 2
Led 3
Led 4
Led 5
Led 6
Led 7
Digital
Page 14 of 56
Need help?
Do you have a question about the Basys MX3 and is the answer not in the manual?
Questions and answers