PDF version

Application Information
Micro-Power Position Sensing in Cell Phone Applications
By Shaun Milano
Allegro MicroSystems, Inc.
As cell phone manufacturers begin to integrate more
features into their models, the need for different mechanical
configurations continues to expand. Micro-power Halleffect sensor ICs are well suited for sensing the open-close
slide positions given any phone configuration and are
the most popular solution employed today in the market.
Multipurpose phones often require sensing not only openclose, but also a third position, such as rotation, or flip-up
in another direction. This note will show how to use the
Allegro® A1171 in a standard flip or slide phone, as well
as techniques for sensing three positions using only one
magnet and one Hall device in a multipurpose application.
Figure 2. The A1171 package is a maximum 0.4 mm in overall
height, ideal for thin phone designs
Standard Slide or Flip Phone Configuration
In a standard configuration, a single Hall-effect IC and
button magnet can be used to sense the open and closed
positions.
In the closed position, the Hall IC, for example H as shown
in figure 1A, is aligned with a simple button magnet,
marked with its north (N) and south (S) poles. In this
position, the Hall sensor IC output is latched in the on
state, because the magnetic flux density is larger than the
magnetic operate point of the device. In the open position
(figure 1B), however, the magnetic field is sufficiently
weak that the Hall IC output is off. This simple technique is
widely employed in both slide and flip phones.
H
H
S
N
(A)
S
N
(B)
Figure 1. Hall-effect sensor IC and magnet positions on
a standard slide phone
AN295050, Rev. 1
Using an omnipolar IC switch promotes ease of
manufacturing, because the magnet can be inserted without
concern about which pole is facing the Hall device—either
the north or the south pole can be used to activate the IC
switch. In the figure 1 example, the south pole is activating
pole, as it is placed nearest the Hall sensor IC, but with an
omnipolar sensor IC, placing the north pole on that side
would work equally well.
Figures 3 and 4 compare the transfer functions of an omnipolar
switch (figure 3) to the well-known unipolar switch (figure 4).
In both figures, the vertical axes are the output voltage response
of the IC to an impinging magnetic field. Along the horizontal
axes, increasing north polarity magnetic flux (increasing B–),
increasing south polarity magnetic flux (increasing B+), and
neutral polarity (B = 0) are shown.
Dual-Mode IC Switches
Figure 5 shows a simple block diagram of the A1171 dual-mode
switch. The term dual-mode refers to the A1171 capability of
operating either as an omnipolar switch or as a pair of unipolar
switches. The A1171 works at battery voltages as low as 1.65 V,
allowing its use in phones and PDAs with the latest single-cell
Lithium batteries. It also has push-pull outputs to eliminate the
need for external pull-up resistors.
The state of the SELECT pin determines the mode of operation
for the A1171. When the pin is floated or tied to VCC, the part
operates in omnipolar mode, as in figure 3. When the pin is
grounded, the A1171 operates in a unipolar mode, as in figure 4.
Notice that in omnipolar mode (figure 3) the separate outputs are
complementary, while in unipolar mode (figure 4) the separate
outputs are south- or north-pole activated switches.
By using both outputs in unipolar mode, and orienting the
sensed magnet, the A1171 can be used to sense three positions,
supporting the broader range of articulating positions required in
multipurpose phone applications. In unipolar mode, the VOUTPS
pin is the output of a south-polarity–activated switch, and the
VOUTPN pin is output of a north-polarity–activated switch.
Multipurpose Multiposition Applications
A multipurpose application is illustrated in figure 6. When the
phone is fully closed (figure 6A), such as in MP3 applications,
the south pole of the magnet is opposite the Hall sensor IC.
The output of the A1171 is VOUTPS low and VOUTPN high,
corresponding to the B+ side of figures 4A and 4B.
VOUTPN
VOUTPS
V+
V+
VOUT(HIGH)
VOUT
VOUT
VOUT(HIGH)
VOUT(SAT)
VOUT(SAT)
0
B+
0
B–
0
B+
0
B–
(A)
(B)
Figure 3. Transfer functions illustrating the effect of changes in the impinging magnetic field on output voltage for omnipolar Halleffect IC switches: (A) effect on a low-flux–activated switch, and (B) effect on a high-flux–activated switch
VOUTPN
VOUTPS
V+
V+
VOUT(HIGH)
VOUT
VOUT
VOUT(HIGH)
VOUT(SAT)
0
0
B–
B+
VOUT(SAT)
0
B–
B+
0
(B)
(A)
Figure 4. Transfer functions for unipolar Hall-effect IC switches: (A) magnetic flux effect on a north-polarity–activated switch, and
(B) on a south-polarity–activated switch
AN295050, Rev. 1
Allegro MicroSystems, Inc.
115 Northeast Cutoff
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
2
In the slide-open position, used for the phone application
(figure 6B), the Hall IC is dominated by a north polarity field,
and VOUTPN is low, while VOUTPS is high, corresponding
to the B– side of figures 4A and 4B. Finally, in the rotate-open
position, for texting or PDA use on a full keyboard (figure 6C),
neither switch is subjected to a significant magnetic field, and
both outputs are high (B = 0 in figures 4A and 4B).
to rotating or sliding phones if mechanical placement and the
sensing magnet are optimized.
Summary
This note has described how to use an advanced Hall-effect
device, the Allegro A1171, to sense two separate positions in
omnipolar operating mode, and to sense three positions by
enabling unipolar operation. These ICs allow improvements in
manufacturing cost and application footprint, because 3 positions
can be sensed using only one magnet and one Hall device.
Guidance was also provided on using one of the omnipolar
outputs or both of the unipolar outputs of the IC: VOUTPS and
VOUTPN, as well as selecting the operating mode by using the
SELECT input. The A1171 is ideally suited for position sensing
in simple slide or flip phones as well as in three-position sensing
for multipurpose slide or rotating applications.
The Output Truth Table summarizes all three phone positions
and the resulting output states. This technique can be applied
Output Truth Table
Application
MP3
Phone
PDA/Texting
Position
Fully Closed
Slide Open
Rotate Open
VOUTPS
L
H
H
VOUTPN
H
L
H
VDD
Clock / Logic
Low-Pass
Filter
Logic
Amp
Sample and Hold
and Averaging
Dynamic Offset
Cancellation
VOUTPS
Latch
VOUTPN
Latch
SELECT
GND
Figure 5. Functional block diagram of the Allegro A1171 omnipolar IC switch
H
H
N
(A)
H
N
S
N
S
(B)
S
(C)
Figure 6. Multipurpose application for sliding and rotating phones
AN295050, Rev. 1
Allegro MicroSystems, Inc.
115 Northeast Cutoff
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
3
Copyright ©2008-2010, Allegro MicroSystems, Inc.
Allegro MicroSystems, Inc. reserves the right to make, from time to time, such departures from the detail specifications as may be required to permit improvements in the performance, reliability, or manufacturability of its products. Before placing an order, the user is cautioned to verify that the
information being relied upon is current.
Allegro’s products are not to be used in life support devices or systems, if a failure of an Allegro product can reasonably be expected to cause the
failure of that life support device or system, or to affect the safety or effectiveness of that device or system.
The information included herein is believed to be accurate and reliable. However, Allegro MicroSystems, Inc. assumes no responsibility for its use;
nor for any infringement of patents or other rights of third parties which may result from its use.
For the latest version of this document, visit our website:
www.allegromicro.com
AN295050, Rev. 1
Allegro MicroSystems, Inc.
115 Northeast Cutoff
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
4