Setting up power supply for negative, ground, and positive voltage