Poweramplifier and powersupply switching