Skip to content

Commit 7305e2f

Browse files
committed
Merge pull request #10 in MCU16CE/dspic33ck-power-pwm-phase-shift from ~A14426/dspic33ck-power-pwm-phase-shift:feature/initial_release to develop
* commit '9831cf0db1f48d98ff9a91cc9370ae0ae379d4c9': use XC16 v1.5 building the code change the compiler version from 1.6 to 1.5, rename the driver folder to common, update main.c code descriptopm
2 parents 187c13d + 9831cf0 commit 7305e2f

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Code example for dsPIC33CK and dsPIC33CH devices showing a basic configuration o
2828

2929
## Software Used
3030
- [MPLAB® X IDE v5.40](https://www.microchip.com/mplabx-ide-windows-installer)
31-
- [MPLAB® XC16 Compiler v1.60](https://www.microchip.com/mplabxc16windows)
31+
- [MPLAB® XC16 Compiler v1.50](https://www.microchip.com/mplabxc16windows)
3232
- [MPLAB® Code Configurator v4.01](https://www.microchip.com/mplab/mplab-code-configurator)
3333

3434
## Hardware Used

dspic33ck-power-pwm-phase-shift.X/main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
* code line 49 and change the following PWM generator index number to
8383
* configure another PWM generator than #1 or #3.
8484
*
85-
* #define MSTR_PWM_GENERATOR 1
86-
* #define SLAVE_PWM_GENERATOR 3
85+
* #define MOTHER_PWM_GENERATOR 1
86+
* #define CHILD_PWM_GENERATOR 3
8787
*
8888
* Valid numbers are 1-8 for PG1 through PG8 on dsPIC33CK and
8989
* 1-4 for PG1 through PG4 on dsPIC33CH. Due to hardware limitations
@@ -98,7 +98,7 @@
9898
* Software:
9999
* - MPLAB X IDE, v5.40
100100
* - Microchip Code Configuration (MCC), v4.0.1
101-
* - XC16 C-Compiler, v1.60
101+
* - XC16 C-Compiler, v1.50
102102
* - dsPIC33CK-MP Device File Pack v1.4.102
103103
*
104104
* ********************************************************************* */

dspic33ck-power-pwm-phase-shift.X/nbproject/configurations.xml

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
displayName="Header Files"
66
projectFiles="true">
77
<logicalFolder name="f2" displayName="common" projectFiles="true">
8-
<itemPath>sources/drivers/p33c_pwm.h</itemPath>
8+
<itemPath>sources/common/p33c_pwm.h</itemPath>
99
</logicalFolder>
1010
<logicalFolder name="f1" displayName="config" projectFiles="true">
1111
<itemPath>sources/config/dm330029_r20_pinmap.h</itemPath>
@@ -39,7 +39,7 @@
3939
displayName="Source Files"
4040
projectFiles="true">
4141
<logicalFolder name="f2" displayName="common" projectFiles="true">
42-
<itemPath>sources/drivers/p33c_pwm.c</itemPath>
42+
<itemPath>sources/common/p33c_pwm.c</itemPath>
4343
</logicalFolder>
4444
<logicalFolder name="f1" displayName="config" projectFiles="true">
4545
</logicalFolder>
@@ -62,6 +62,7 @@
6262
displayName="Important Files"
6363
projectFiles="false">
6464
<itemPath>Makefile</itemPath>
65+
<itemPath>device_setup.mc3</itemPath>
6566
</logicalFolder>
6667
</logicalFolder>
6768
<sourceRootList>
@@ -75,9 +76,9 @@
7576
<targetDevice>dsPIC33CK256MP506</targetDevice>
7677
<targetHeader></targetHeader>
7778
<targetPluginBoard></targetPluginBoard>
78-
<platformTool></platformTool>
79+
<platformTool>noID</platformTool>
7980
<languageToolchain>XC16</languageToolchain>
80-
<languageToolchainVersion>1.60</languageToolchainVersion>
81+
<languageToolchainVersion>1.50</languageToolchainVersion>
8182
<platform>3</platform>
8283
</toolsSet>
8384
<packs>

dspic33ck-power-pwm-phase-shift.X/sources/pwm.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
#include <xc.h> // include processor files - each processor file is guarded.
3636

37-
#include "drivers/p33c_pwm.h" // Include dsPIC33C standard PWM driver header file
37+
#include "common/p33c_pwm.h" // Include dsPIC33C standard PWM driver header file
3838

3939

4040
#ifdef __cplusplus

0 commit comments

Comments
 (0)