Electronic devices and accessories such as headsets for electronic devices
are provided. A microphone may be included in an accessory to capture
sound for an associated electronic device. Buttons and other user
interfaces may be included in the accessories. An accessory may have an
audio plug that connects to a mating audio jack in an electronic device,
thereby establishing a wired communications link between the accessory
and the electronic device. The electronic device may include power supply
circuitry for applying bias voltages to the accessory. The bias voltages
may bias a microphone and may adjust settings in the accessory such as
settings related to operating modes. User input information may be
conveyed between the accessory and the electronic device using ultrasonic
tone transmission. The electronic device may also gather input from the
accessory using a voltage detector coupled to lines in the communications
path.