Search the Community

Showing results for tags 'basys mx3'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments
    • LabVIEW
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 4 results

  1. Hello, I'm trying to communicate two BASYS MX3 boards with a PMOD CAN attached. One board is programmed as TX sender and the other one with the RX firmware from provided examples. The problem is I cannot receive any frame from TX sender (who is incrementing frames every 1/2 second). Please could anyone help me whit this issue? regards, gaston
  2. Hi, I have two Basys MX3 Boards (with PIC32MX370) and two Pmod RF2 (with MRF24J40). My question is, is it possible to get them communicating together?(Was thinking about sending characters to show them at the LCD, maybe via MiWi?). If it is possible, how am I going to do this? I did not found any librarys or examples for this model. I worked a bit with this board, but have no experience with Pmods. Any help would be appreciated, Marcel
  3. Hello, I am trying to use the 4 digit 7 segment display on the new BASYS MX3 development board. At first the sample code found in Digilent's classroom files that they offer in Lab1b was not working. I decided to try multiple combinations of simple code to see if any of the displays LEDs would come on at all. Here is the following code I used in a simple while(1) loop: LATGSET = BIT_12; // Segment A off LATACLR = BIT_14; // Segment B on LATDSET = BIT_6; // Segment C off LATGCLR = BIT_13; // Segment D on LATGSET = BIT_15; // Segment E off LATDCLR = BIT_7; // Segment F on LATDSET = BIT_13; // Segment G off LATGCLR = BIT_14; // Segment DP on LATBSET = BIT_12; // Display 0 off LATBSET = BIT_13; // Display 1 on LATACLR = BIT_9; // Display 2 off LATASET = BIT_10; // Display 3 on The display is a common anode device and to turn on the segment LEDs you should drive them low (logical 0). Nothing comes on anywhere and I wonder if I am still missing some key instructions? I can attach actual code files if it helps. Thanks in advance for any help that can be provided!
  4. Good afternoon, I have the following problem with BASYS MX3: When I try using BTNL or BTNU in debug mode, they are read as 1 when they are not pressed, but only sometimes, yet regularly. This problem does not occur when I press "Make and program device Main Project" instead of "Debug main project". Other buttons are working just fine with both debug and program mode. The code I am using: /* assignment1_3.c */ #include <xc.h> #include "assignment1_3.h" int main(){ TRISA = 0x00; TRISBbits.TRISB1 = 1; // RB1 (BTNU) configured as input ANSELBbits.ANSB1 = 0; // RB1 (BTNU) disabled analog TRISBbits.TRISB0 = 1; // RB1 (BTNL) configured as input ANSELBbits.ANSB0 = 0; // RB1 (BTNL) disabled analog TRISFbits.TRISF4 = 1; // RF0 (BTNC) configured as input TRISBbits.TRISB8 = 1; // RB8 (BTNR) configured as input ANSELBbits.ANSB8 = 0; // RB8 (BTNR) disabled analog TRISAbits.TRISA15 = 1; // RA15 (BTND) configured as input LATA = 0x00; //Turn the leds off int i = 0; while(1){ if (BTNL == 1){ //going mad: BTNU, BTNL, Going well: BTND, BTNR, BTNC i++; int a = 0; for (a; a < 100000; a++){}; while (BTNL){}; for (a; a < 100000; a++){}; LATA = i%16; } } return (0); } #ifndef ASSIGNMENT1_3_H #define ASSIGNMENT1_3_H /* ------------------------------------------------------------ */ /* Configuration Bits */ /* ------------------------------------------------------------ */ // Device Config Bits in DEVCFG1: #pragma config FNOSC = FRCPLL #pragma config FSOSCEN = OFF #pragma config POSCMOD = XT #pragma config OSCIOFNC = ON #pragma config FPBDIV = DIV_2 // Device Config Bits in DEVCFG2: #pragma config FPLLIDIV = DIV_2 #pragma config FPLLMUL = MUL_20 #pragma config FPLLODIV = DIV_1 #pragma config JTAGEN = OFF #pragma config FWDTEN = OFF #pragma config DEBUG = ON // Debugger Enable/Disable /* ------------------------------------------------------------ */ /* Definitions */ /* ------------------------------------------------------------ */ #define BTNC PORTFbits.RF0 #define BTNU PORTBbits.RB1 #define BTNL PORTBbits.RB0 #define BTNR PORTBbits.RB8 #define BTND PORTAbits.RA15 #endif /* ASSIGNMENT1_3_H */ The idea of the program is to increment the counter whenever the button is pressed, which works fine in for all the buttons but BTNU and BTNL. For those two the button is read as 1 without pressing, but it is also read as 0, because while(BTNL) actually exits. The questions are: why do programming the device works just fine for all the buttons, but debugging only for some of them? Why does it happen to up and left button only? What can I do to fix it? This bug was also noticed by my teacher and one of my friends, so it does not seem to be related to a single board. I am using compiler XC32 v1.44 and MPLAB X IDE v4.00 Many thanks for your input, Michał Mikołajczyk