There is a sample program for battery voltage monitors. Select file open example and search for ble and battery test.
Here is your program I added the Diff input. I am running PSOC Creator 4.0. I changed the device to your device. You will need to have a resistance divider to measure over 3.3 Volts.