Switch mode power supply as transmitter