A circuit and method are given, to realize a loudness control for mobile
phone earpieces and speakers with the help of a proximity sensor, which
is realized as an infrared photo-electric guard circuit, where only very
few external parts are needed. As a novelty here, the necessary photo
sensors are integrated onto a single chip. To form the photodiodes within
a single IC together with the other circuit elements are much less
expensive. Using the advantages of that solution the circuit of the
invention is manufactured with standard CMOS technology and only very few
discrete external components. This solution reduces also power
consumption and manufacturing cost.