- Introduction/Summary
- Related Collaterals
- Hardware Used
- Software Used
- Programming the Digital Power Development Plug in Module (DP-PIM)
- Software Project
- Using Power Board Visualizer
The dsPIC33AK512MPS506 Digital Power Plug-In Module (DP PIM) is a demonstration board that in conjunction with different power boards, showcases the Microchip dsPIC33AK512MPS506 32-Bit Digital Signal Controller (DSC) features.
The DP PIM provides access to the dsPIC33AK512MPS506 analog inputs, the Digital-to-Analog Converter (DAC) output, the Pulse-Width Modulation (PWM) outputs and the General Purpose Input and Output (GPIO) ports.
This code example provides a basic peripheral setup for the ADC, PWM, UART and GPIOs using Microchip Code Configurator (MCC).
dsPIC33AK512MPS506 Digital Power Plug-In Module(EV67K87A)
Digital power development board (DM330029)
- MPLAB® X IDE v6.25
- MPLAB® XC-DSC Compiler v3.21
- Microchip Code Configurator v5.6.2
- Power Board Visualizer v2.2.5.0
It is important to update MPLAB X IDE and MPLAB X IPE after installation for latest patches!
Target Device Documentation
Please always check for the latest data sheets on the respective product websites:
In this example ICD4 is being used, but any of the supported debuggers/programmers can be used.
- Open MPLAB X IPE
- Select the device on DP-PIM : dsPIC33AK512MPS506
- Connect computer to ICD4 via USB cable, connect ICD4 to J9 of the digital Power Development board via RJ11 cable.
- Power the Board through a microUSB cable by connecting a microusb cable to J1 of the DP-PIM.
- Click connect on the MPLAB X IPE
- Wait for the device to connect
- Navigate to the folder pre_compiled_hex_files, and select the hex file.
- Click program
- Wait for the program/verify complete message.
- Disconnect programmer from Digital Power Plug-in Module.
On successful completion of the programming, leds on the digital Power Development Board and DP PIM blink.
The Demo code does the following things
-
Reads the Analog Voltage from Test Point 5(TP 5), Test Point 12(TP 12), Test Point 13(TP 13), and Test Point 14(TP14) on the Digtial Power Development Board. These analog voltages can be connected to the two potentiometers on the Development board using Jumpers, or to an external Signal Generator Using a BNC connector.
-
Generates 100 Khz Complimentary PWM using High Speed PWM. The signals are generated on TP 45 and TP 47 on the Development Board
-
The Analog voltage on TP5 modulates the Duty Cycle for the PWM
-
Receive and Send Data over UART from Power Board Visualizer.
-
Toggle I/Os to blink LED on the DP-PIM.
The Directory structure aims to highlight the folders where the source/driver files are placed.
├───dspic33ak512mps-dppim-demo.X dsPIC33AK512MPS506 Demo MPLAB X IDE Project
├───mcc_generated_files This folder contains the drivers generated by the MCC Plugin of MPLAB
│ ├───adc
│ ├───pwm_hs
│ ├───system
│ ├───timer
│ └───uart
│───sources This folder contain the drivers and os that build upon the MCC drivers
│ │ project_settings.h
│ ├───app
│ ├───config
│ ├───device
│ ├───driver
│ └───os
├───images Images for the Readme
├───Power Board Visualizer GUI Power Board Visualizer Gui
└───Pre Compiled HEX File Hex File that can be used directly
MPLAB X Integrated Development Environment (IDE) is an expandable, highly configurable software program that incorporates powerful tools to help you discover, configure, develop, debug and qualify embedded designs for Microchip Micrcontrollers and digital signal controllers. MPLAB X IDE works seamlessly with the MPLAB development ecosystem of software and tools, many of which are completely free.
Mplab X IDE can be used to modify, debug, and build the demo .X project.
In the Latest revisions of the Microchip Code Configurator comes preinstalled. In the toolbar click on MCC to launch the MCC. Upon runnning for the first time, MCC downloads all the driver files, so it will take some time.
On successful opening of the project, you will see the following screen, providing a visual summary of the project, and the peripherals used.
Double Clicking on any of the Driver will open its configuration window. From here various settings can be changed. Afterwards click on generate, which will generate new files reflecting the changes. From there on, projects can be built, programmed, debugged. To learn more about the available settings, please refer to their product webpages.
Power Board Visualizer is a flexible Windows® tool that boosts the monitoring and debugging of embedded systems with a dsPIC33 Digital Signal Controller (DSC). It enables real-time data visualization and control through USB/UART and provides visual elements for in-depth data analysis and tracking system performance.
Power Board Visualizer is integrated in this demo code. Install the Power Board Visualizer from the webpage. After installation, open the Power Board Visualizer Project from the folder Power Board Visualizer GUI.
Click on COM button located on the the bottom of the interface, and select the COM port. If you do not see the COM port, make sure that the microusb is connected to the DP-PIM and not on the digital Power Development Board. Click on Enable. You will see the ADC sampled values, as well as the duty cycle of the PWM.