3.1 VBAT Configuration

When configuring the VBAT functionality for the PIC16(L)F19197 family of devices, the first step is to determine the external source that will be connected to the VBAT pin. The battery typically used for this feature is a 3.0V coin cell. However, this system offers the versatility to use any battery supply that is within the entire device VDD range or even use a super capacitor in place of a battery. The positive terminal of the battery backup source should connect to the VBAT pin of the PIC microcontroller, and the negative terminal should connect to the VSS pins of the PIC microcontroller. Battery backup functionality is enabled by setting the VBATEN bit of Configuration Word 1 (VBATEN = ON). The VBAT pin of the PIC microcontroller is not a regular bidirectional GPIO, and when not being used for a battery backup can only be configured as an input pin only. Refer to the device data sheet pin out diagram for location of the reserved VBAT pin.