3.6.1 MPLAB Projects
The PHY Calibration Tool generates an output configuration file (Figure 3-9) that provides the
required information to include in PLC projects to apply the custom
calibration on MPLAB projects.
Most of the changes can be done through MPLAB MCC Configurator for the PLC
PHY Coupling module.
Modifying the configuration of the PLC PHY Coupling in MCC is the recommended method, as it will be reflected in the source code automatically by clicking the Generate button of the tool. The Table 1 table shows the correspondence between the report file definitions and the MCC PLC PHY Coupling fields.
SRV_PCOUP_RMS_HIGH_TBL | Target RMS values in HIGH mode for dynamic TX gain |
SRV_PCOUP_RMS_VLOW_TBL | Target RMS values in VLOW mode for dynamic TX gain |
SRV_PCOUP_THRS_HIGH_TBL | Threshold RMS values in HIGH mode for dynamic TX mode |
SRV_PCOUP_THRS_VLOW_TBL | Threshold RMS values in VLOW mode for dynamic TX mode |
SRV_PCOUP_DACC_TBL | PLC DACC peripheral settings |
SRV_PCOUP_GAIN_HIGH_TBL | TX gain values for HIGH mode |
SRV_PCOUP_GAIN_VLOW_TBL | TX gain values for VLOW mode |
SRV_PCOUP_NUM_TX_LEVELS | Number of TX levels |
When pre-distortion values need to be updated, it is mandatory to modify the
source files generated by the MCC directly, specifically the file
config\PLATFORM\service\pcoup\srv_pcoup.h.
Depending on the platform and the protocol, the values from the PHY calibration
Tool configuration file must update the associated definitions to that
platform and protocol on the source file. For example:
- If the
calibration was done for the PL460-EK auxiliary branch, the
definitions associated in the source file include an
_AUX_.
- If the
calibration was done for a PRIME channel, the definitions
associated in the source file include a
_CHNx_.
- If the
calibration was done for a PRIME dual channel configuration,
the definitions associated in the source file include a
_2CHN_.