User Manual

AND8399/D
http://onsemi.com
26
By sampling the SLApin as given in Figure 26, one
samples the SLApin at the correct moment to make sure
that the real BEMF is measured. An offset will be detected
as well as a stall condition. By sampling the SLApin at the
right moment, temperature effect will be eliminated (see
High Temperature).
Microcontroller without ADC
To implement above flowcharts one needs to use a
microcontroller with ADC. In some cases this ADC is not
available. A simple way to enable stall detection in this case
is by using a comparator.
COMP
Vdd
R
1
R
2
IO
Micro
Controller
GND
Vcc
AMIS305xx
SLA
GND
Vdd
R
pullup
R
3
Figure 27. Stall Detection with Comparator
R1 and R2 set the threshold level. R3 adds a hysteresis to
avoid toggling caused by noise. The microcontroller can
check if the SLA voltage is above or below the threshold
level by monitoring the digital IO pin.
The way to implement stall detection stays similar. The
only difference with the flowchart in Figure 26 is that
instead of sampling the SLA voltage with an ADC, the status
of the IO pin is checked to determine if SLA voltage is above
or below the threshold level. The moment the status of this
digital IO is checked stays the same.
If a variable threshold is needed, R1 and R2 can be
replaced by a potentiometer or even by a digital
potentiometer controlled by the microcontroller (see
www.onsemi.com
for Digital Programmable
Potentiometers and Comparators).
R3 is not mandatory but is advised to avoid toggling cause
by noise on the SLApin. If R3 is not used, a lowpass filter
should be added to the SLApin (see also Figure 20).
Working with a digital IO can also be beneficial to offload
the CPU of the microcontroller. Sampling an analog value
could take some time. Monitoring a digital pin gives low
CPU load.
Conclusion
Implementing the best stall, steploss or torque adaptive
algorithm is useless if the SLApin of AMIS305xx is not
used properly. By following some simple guidelines, the
SLApin can be used in a correct and reliable way.
References
Ref 1: AMIS305xx datasheet (www.onsemi.com)
Company or Product Inquiries
For more information about ON Semiconductor’s
products or services visit our Web site at
http://www.onsemi.com
.
ON Semiconductor and are registered trademarks of Semiconductor Components Industries, LLC (SCILLC). SCILLC reserves the right to make changes without further notice
to any products herein. SCILLC makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does SCILLC assume any liability
arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation special, consequential or incidental damages.
“Typical” parameters which may be provided in SCILLC data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All
operating parameters, including “Typicals” must be validated for each customer application by customer’s technical experts. SCILLC does not convey any license under its patent rights
nor the rights of others. SCILLC products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications
intended to support or sustain life, or for any other application in which the failure of the SCILLC product could create a situation where personal injury or death may occur. Should
Buyer purchase or use SCILLC products for any such unintended or unauthorized application, Buyer shall indemnify and hold SCILLC and its officers, employees, subsidiaries, affiliates,
and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death
associated with such unintended or unauthorized use, even if such claim alleges that SCILLC was negligent regarding the design or manufacture of the part. SCILLC is an Equal
Opportunity/Affirmative Action Employer. This literature is subject to all applicable copyright laws and is not for resale in any manner.
PUBLICATION ORDERING INFORMATION
N. American Technical Support: 8002829855 Toll Free
USA/Canada
Europe, Middle East and Africa Technical Support:
Phone: 421 33 790 2910
Japan Customer Focus Center
Phone: 81357733850
AND8399/D
LITERATURE FULFILLMENT:
Literature Distribution Center for ON Semiconductor
P.O. Box 5163, Denver, Colorado 80217 USA
Phone: 3036752175 or 8003443860 Toll Free USA/Canada
Fax: 3036752176 or 8003443867 Toll Free USA/Canada
Email: orderlit@onsemi.com
ON Semiconductor Website: www.onsemi.com
Order Literature: http://www.onsemi.com/orderlit
For additional information, please contact your local
Sales Representative