Search the Community

Showing results for tags 'DP32'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments and the WaveForms software
    • LabVIEW
    • FRC
    • 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


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 6 results

  1. Greetings, I would like to replace the default PIC32MX250F128B microcontroller with a PIC32MX130F064B part on the Digilent ChipKit DP32 board and use an Arduino bootloader. I tried burning chipKIT-DP32-v01000303.hex by retargeting PIC32MX130F064B, but this did not work. I am assuming now that I need to make a few tweaks to the bootloader source files and recompile bootloader using MPLAB X. Has anyone done this before? What do I need to do? Thanks, Joel
  2. I'm having problems printing data on-screen, when the program is about to write it, the board freezes, it won't even allow me to reset. In the module of the MAX30100, Vin is connected to 3,3v, GND to GND, SCL to RB8, SDA to RB9, there are also 4k7 resistances conected between SDA and 3,3v, the same goes for SCL and 3,3v. INT remains unplugged. The almost fully white screen is the result of using the ChipKit board. The image filled with data shows the results obtained with an Arduino UNO board, wich were proved right with a saturometer. The last image shows the module for the MAC30100. The files are the libraries used and the program. I tried changing the communication speed from 100kHz to 400kHz but there wasn't any changes. I also tried it with a pull-up resistence on the INT port of the MAX30100. examples.7z MAX30100.7z
  3. Hi, my question is: Is it possible to save energy on a DP32 board? is there any sleep mode using arduino environment? thanks for the answers!
  4. I'm using Arduino 1.6.9 with ChipKIT core and a DP32 rev B. My code sets up an interrupt for timer 3. When I set the prescaler to 1:32 or less, the interrupt runs just fine (although with some quirky behavior that I'll explain below). However, when I set the prescaler to 1:64 or 1:256, the interrupt appears to fail. My code is included below but I'll provide a brief explanation of its function here. The ISR increments a count variable, and sets a flag variable to high. The loop checks to see if the flag is high. If it is, it toggles LEDs 1, 2 and 3 to represent bits 5, 6, and 7 (respectively, with bit 0 as the LSB) of the count variable. LED 1 is toggled to represent the flag variable, so if the flag is high the LED is turned on, and it is turned off if the flag is low. The behavior I am getting with the prescaler set to 1:32 is as expected. LED 4 glows dimly, while LEDs 1 through 3 count rapidly upward in binary. However, when the prescaler is set to 1:64, LED 1 (bit 5 LED) is toggled on, and remains, while the rest of the LEDs are off. This includes LED 4 (the flag LED) which leads me to believe that the flag is not being raised. As for how or why LED 1 gets toggled on, I have no idea. I also mentioned some unusual behavior earlier. The the function that sets my timer accepts a desired interrupt frequency, and accounts for the prescaler when calculating the period needed to achieve this frequency. This means that the interrupt frequency should not vary much between different prescaler values. However, when I set my prescaler to 1:16, and my interrupt frequency to 40 Hz, the actual interrupt frequency is slower than when I set my prescaler to 1:32 (with an interrupt frequency of 40 Hz). In fact, prescaler 1:32 is so much faster that I cannot make out the individual LED flashes for any of my indicator LEDs. What's more, the LEDs are running much faster than they should. With prescaler set to 1:32, and interrupt frequency set to 20 Hz, the frequency on the LED 1 (tied, as you recall, to bit 5 of my counter) should be 0.625 Hz (that is, 20 Hz / 2^4). In practice, however, it switches much faster than this. Can anybody tell me what's going wrong? I feel like I'm probably missing something simple and obvious, or just overlooking something regarding the operation of timers. TL;DR Code below: /*************************************************************** * Define some constants ***************************************************************/ #define CLOCK_FREQ 40000000 #define T3CON_ENABLE_BIT 0x8000 #define T3_SOURCE_INT 0 // Prescaler values // Don't change these. Set the prescaler below using these. #define T3_PRESCALE_1_1 0 #define T3_PRESCALE_1_2 1 #define T3_PRESCALE_1_4 2 #define T3_PRESCALE_1_8 3 #define T3_PRESCALE_1_16 4 #define T3_PRESCALE_1_32 5 #define T3_PRESCALE_1_64 6 #define T3_PRESCALE_1_256 7 // This was originally going to test a /*************************************************************** * Set our prescaler ***************************************************************/ #define PRESCALE T3_PRESCALE_1_32 /*************************************************************** * Various Variables ***************************************************************/ volatile uint32_t count = 0; volatile unsigned int flag = 0; int mask = 0; /*************************************************************** * ISR ***************************************************************/ void __attribute__((interrupt)) myISR() { count++; flag = 1; clearIntFlag(_TIMER_3_IRQ); } /*************************************************************** * Timer and interrupt setup function ***************************************************************/ void start_timer_3(uint32_t frequency) { uint32_t period; period = CLOCK_FREQ / (2^PRESCALE * frequency); // This formula isn't correct for prescaler 1:256 T3CONCLR = T3CON_ENABLE_BIT; // Turn the timer off T3CON = PRESCALE; // Set the prescaler TMR3 = 0; // Clear the counter PR3 = period; // Set the period T3CONSET = T3CON_ENABLE_BIT; // Turn the timer on } /*************************************************************** * Setup ***************************************************************/ void setup() { start_timer_3(20); setIntVector(_TIMER_3_VECTOR, myISR); setIntPriority(_TIMER_3_VECTOR, 4, 0); clearIntFlag(_TIMER_3_IRQ); setIntEnable(_TIMER_3_IRQ); pinMode(PIN_LED1, OUTPUT); pinMode(PIN_LED2, OUTPUT); pinMode(PIN_LED3, OUTPUT); pinMode(PIN_LED4, OUTPUT); } /*************************************************************** * Loop ***************************************************************/ void loop() { if (flag) { digitalWrite(PIN_LED4, HIGH); if (count & 0b000100000) digitalWrite(PIN_LED1, HIGH); else digitalWrite(PIN_LED1, LOW); if (count & 0b001000000) digitalWrite(PIN_LED2, HIGH); else digitalWrite(PIN_LED2, LOW); if (count & 0b010000000) digitalWrite(PIN_LED3, HIGH); else digitalWrite(PIN_LED3, LOW); flag = 0; } else digitalWrite(PIN_LED4, LOW); }
  5. The chipKIT Uno32 boards based on the PIC32MX320F128 has two link scripts: chipKIT-application-32MX250F128.ld for upload through USB, and chipKIT-application-32MX320F128-nobootloader.ld for use with chipKIT PGM. Where to find or how to develop the same nobootloader.ld for more recent chipKIT boards, including Wi-FIRE PIC32MZ2048ECG uC32 PIC32MX340F512H DP32 PIC32MX250F128B Thanks!
  6. Could we upgrade DP32 to accommodate this?