You have to set the GPIO pins to StdCPU and drive mode to anything other than HighZ and HighZ Analog. Usually, the recommended drive mode is Strong. Check out the below articles in my blog. These articles provide basic information about GPIOs.
I just did that and It works. Thanks for the info.
Apart that, how many current provide a digital output handled manually by means PRTXDR register. My datasheet tells the analog column buffers provided 30mA:
High current output drivers (two with 30 mA drive as a PSoC
What about the outputs handled by software?
The Analog output buffers have the 30mA drive capability. But these pins are limited to the Analog output pins that are connected to the analog output buffers. When analog output is not enabled, all GPIO pins are capable of sourcing 15mA and sinking 25mA of current.