Shared Pins; Rgb Led - Digilent Basys MX3 Reference Manual

Hide thumbs Also See for Basys MX3:
Table of Contents

Advertisement

Basys MX3™ Board Reference Manual
val = PORTBbits.RB1;
val = PORTBbits.RB0;
val = PORTFbits.RF0;
val = PORTBbits.RB8;
val = PORTAbits.RA15;
Please note that if you want the buttons to trigger a specific functionality, proper software debouncing is required.
Library functions for using the buttons are contained in the Basys MX3 library pack, BTN library; however, the user
can easily use the buttons without the BTN library, as presented above.
5.3

Shared Pins

As shown in the connectivity Table 5.1 above, some pins are shared:
Buttons BTNL and BTNU share functions with PGD and PGC signals used for programming. Therefore, the
following line should be inserted in the code, to disable their programming function.
#pragma config JTAGEN = OFF
Buttons BTNR and BTND share the pins with S0_PWM and S1_PWM, explained in
so these resources should be used exclusively.
BTNC is shared with TRIG_1 signal in
Analog Discovery board experiment.
6

RGB LED

The Basys MX3 board contains one tri-color (RGB) LED. The LED allows the user to obtain any RGB color by
configuring the R, G and B color components.
The usage of the RGB LED is the same as controlling three separate LEDs, one for each color. Figure 6.1 shows the
way the RGB LED is 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.
// read BTNU
// read BTNL
// read BTNC
// read BTNR
// read BTND
2x15 Pins Debug
Header, so it can be used to trigger events in an
Figure 6.1. RGB LED schematic diagram.
Servo headers
section,
Page 18 of 56

Hide quick links:

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

Subscribe to Our Youtube Channel

Table of Contents