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. Figure 3-9. Configuration
File Report
Most of the changes can be done through MPLAB MCC Configurator for the PLC
PHY Coupling module. Figure 3-10. MPLAB Code
Configurator for 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.
Table 3-1. Correspondence on 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. Figure 3-11. PLC PHY
Coupling Header File Generated by MCC
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_.