Programmable AC/DC Power sources