7.8.2 Adding Output Overvoltage Protection (OVP) in VMC
Open the VMC Configuration created from the MCC SMPS Library.
From the Device Resources, go to CIP
Blocks, and click FaultBlock to add it to the Project Resources area.
Click FaultBlock on the
Project Resources to open the settings.
The DAC output sets the DAC Voltage
Reference to be used for OVP. Setting this to 1.8V gives an OVP of 3.6V due to the
equal resistors on the voltage divider network at the voltage output terminal.
In the submodule selection, select
CMP1 since this is compatible with the auto-shutdown source of the COG2 used by the
PWM Controller Block 2 in the ModulatorBlockVMC.
Select DAC3 since this is compatible
with CMP1 positive input. Click Upload All.
On the pin manager, set RA0 as the
FAULT pin. Click Generate Code.
To enable fault protection, add on
main.c the line of code
Fault_EnableProtection();.
The board has now overvoltage protection in VMC mode.
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.