Configuring the dsPIC33CH Slave Project

Setting up the Slave Project

Setting up the Slave core in a Slave project involves importing the settings for the Slave core, which are configured in the Master project. The settings imported are grouped under the Master Core section in the MPLAB® Code Configurator (MCC) System Resources. The following sections explain the procedures involved in setting up the Slave core.

Configuring Master Core

  • Create an MPLAB® X IDE project or open an already existing MPLAB X IDE project with the Slave device selected from the dsPIC33CH family.
  • Launch MCC by:
    • Clicking on the MCC icon in MPLAB X IDE, or
    • Navigating to Tools > Embedded > MPLAB Code Configurator v3: Open/Close.
  • Master Core appears as a System Resource in the Slave project.

The Master core contains the configuration fuses of the Slave core (MSI, Slave ICD, Slave Internal Oscillator and Slave Watchdog), which are configured in the Master project. To display the settings selected in the Master project, the settings need to be imported from the Master project. The procedure to import the settings is explained in the "Importing Slave Core Settings" section of the "Importing dsPIC33CH Settings to the Slave Project" page.

SettingUpSlaveProject1.png

Configuring MSI

The MSI controls are non-editable in the Slave project. All the settings related to MSI have to be done in the Master project and must be imported from the Master project. Interrupts for the protocols can be configured only after importing the settings.

SettingUpSlaveProject2.png

Configuring SLAVE ICD, SLAVE INTERNAL OSCILLATOR and SLAVE WATCHDOG

On the first launch of MCC, the configurations related to Slave ICD, Internal Oscillator, and Watchdog have default values in the Slave project. You cannot change any of these configurations in the Slave project. If any change is required, you have to modify these configurations in the Master project, save the settings and import the modified settings to the Slave project. After importing the settings, you will see the configurations made in the Master project, which are applicable to the Slave project.

SettingUpSlaveProject3.png

Pin Module

All the pins are available for selection in the Slave core by default. However, by default, ownership of output pins lies with the Master core. For the pins which are being used by the Slave core, the ownership of those pins has to be assigned to the Slave core in the Master project and those settings need to be imported in the Slave project.

SettingUpSlaveProject4.png

The Description column within the Notifications [MCC] tab indicates the Slave project does not possess the ownership of the selected pins.

SettingUpSlaveProject5.png

 Learn More

 Procedure

Importing Master Information to the Slave Project

 Step-by-Step

Step-by-Step Example

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.