Motor Control Sensor Feedback Circuits. Power Management. PICmicro Input Microcontroller Driver Motor. Direction Current Sensor
|
|
|
- Virginia Gray
- 9 years ago
- Views:
Transcription
1 M AN894 Motor Control Sensor Feedback Circuits Author: INTRODUCTION Jim Lepkowski Microchip Technology Inc. Sensors are a critical component in a motor control system. They are used to sense the current, position, speed and direction of the rotating motor. Recent advancements in sensor technology have improved the accuracy and reliability of sensors, while reducing the cost. Many sensors are now available that integrate the sensor and signal-conditioning circuitry into a single package. A list of the sensors that can be used to feedback information to a microcontroller are listed below: Current sensors - Shunt resistor - Current-sensing transformer - Hall effect current sensor Speed/position sensors - Quadrature encoder - Hall efect tachometer Back EMF/Sensorless control method In most motor control systems, several sensors are used to provide feedback information on the motor. These sensors are used in the control loop and to improve the reliability by detecting fault conditions that may damage the motor. As an example, Figure 1 provides a block diagram of a DC motor control system to show the sensor feedback provided for a typical motor control. Power Management Torque Speed PICmicro Input Microcontroller Driver Motor Direction Current Sensor Feedback Sensors * Speed * Shaft Position * Rotation Direction FIGURE 1: Typical DC Motor Block Diagram Microchip Technology Inc. DS00894A-page 1
2 CURRENT SENSORS The three most popular current sensors in motor control applications are: Shunt resistors Hall effect sensors Current transformers Shunt resistors are popular current sensors because they provide an accurate measurement at a low cost. Hall effect current sensors are widely used because they provide a non-intrusive measurement and are available in a small IC package that combines the sensor and signal-conditioning circuit. Current-sensing transformers are also a popular sensor technology, especially in high-current or AC line-monitoring applications. A summary of the advantages and disadvantages of each of the current sensors is provided in Table 1. Figure 2 shows an example of an AC motor powered by a three-phase inverter bridge circuit. This example shows that the composite current of all three Insulated Gate Bipolar Transistor (IGBT) circuit legs can be measured with a single shunt resistor, or that the current in each individual leg can be determined with three shunt resistors. Figure 2 shows a system that uses shunt resistors. However, Hall effect and currentsensing transformers can also be used to provide the current measurement. TABLE 1: COMPARISON OF CURRENT SENSING METHODS Current Sensing Method Shunt Resistor Hall Effect Current Sensing Transformer Accuracy Good Good Medium Accuracy vs.temperature Good Poor Good Cost Low High Medium Isolation No Yes Yes High Current-Measuring Poor Good Good Capability DC Offset Problem Yes No No Saturation/Hysteresis No Yes Yes Problem Power Consumption High Low Low Intrusive Measurement Yes No No AC/DC Measurements Both Both Only AC Current Measurement with a Single Shunt Resistor AC Motor Current Measurement with Three Shunt Resistors AC Motor V DC V DC I A I B I C I A I B I C _C I = I A + I B + I C _A _B R SENSE R SENSE_A R SENSE_B R SENSE_C FIGURE 2: AC Motor Current Measurement. DS00894A-page Microchip Technology Inc.
3 Shunt Resistors Shunt resistors are a popular current-sensing sensor because of their low cost and good accuracy. The voltage drop across a known low value resistor is monitored in order to determine the current flowing through the load. If the resistor is small in magnitude, the voltage drop will be small and the measurement will not have a major effect on the motor circuit. The power dissipation of the resistance makes current shunts impractical for measurements of more than approximately 20 amperes. The selection criteria of a shunt current resistor requires the evaluation of several trade-offs, including: Increasing R SENSE increases the V SENSE voltage, which makes the voltage offset (V OS ) and input bias current offset (I OS ) amplifier errors less significant. A large R SENSE value causes a voltage loss and a reduction in the power efficiency due to the I 2 x R loss of the resistor. A large R SENSE value will cause a voltage offset to the load in a low-side measurement that may impact the EMI characteristics and noise sensitivity of the system. Special-purpose, low inductance resistors are required if the current has a high-frequency content. The power rating of R SENSE must be evaluated because the I 2 x R power dissipation can produce self heating and a change in the nominal resistance of the shunt. Special-purpose, shunt current measurement resistors are available from a number of vendors. If standard resistors are used, it is recommended that metal-film resistors be used rather than wire-wound resistors that have a relatively large inductance. A shunt resistor can also be created from the trace resistance on a PCB, as shown in Figure 3. PCB shunt resistors offer a low cost alternative to discrete resistors. However, their accuracy over a wide temperature range is poor when compared to a discrete resistor. The temperature coefficient of a copper PCB trace shunt resistor is equal to approximately +0.39%/ C. Further details on PCB trace resistors are given in reference (2).. Trace resistance is based on: * Length (L) * Thickness (t) * Width (w) * Resistivity (ρ) * 1 oz. Copper (Cu) is defined to be a layer with 1 oz. of Cu per square foot. t 1.37 mil./oz. Copper ρ 0.68 µω-inch R (0.50 mω / ) x [(1 oz. Cu) / (# oz. Cu)] Example: What is the resistance of the PCB shunt resistor using the parameters listed below? Given: 1 oz Cu PCB w = 50 mils (0.050 in) L = 1 inch I = 5 ampere L / w = number of squares ( ) = 1 in / in = 20 squares R (L / w) x R (20 squares) x 0.50 mω/ 10 mω P = I 2 x R = (5A) 2 x (0.010Ω) = 0.25 Watt L R PCB t w PCB Trace Resistor FIGURE 3: PCB Shunt Resistor Microchip Technology Inc. DS00894A-page 3
4 High-Side vs. Low-Side Current Shunt Measurements SYSTEM INTEGRATION ISSUES Shunt resistors can provide either a high-side or lowside measurement of the current through the load, as shown in Figure 4. A high-side monitor has the resistor connected in series with the power source, while the low-side monitor locates the resistor between the load and the ground current return path. Both approaches pose a trade-off to the designer. The attributes of the two methods, along with the typical monitor circuits, will be shown in the following sections. Reference (3) provides more details on high-side and low-side shunts. High-side current measurements are the preferred method from a system-integration standpoint because they are less intrusive than low-side measurements. The trade-off with the high-side measurement is that the circuitry is more complex than the low-side method. High-side resistive shunt measurements will not have a significant impact on the system if the sensing resistor is small and the resulting voltage drop across the shunt is small compared to the supply voltage. In contrast, low-side monitoring disrupts the ground path of the load, which can cause noise and EMI problems in the system. Low-side current measurements are often chosen because low voltage op amps can be used to sense the voltage across the shunt resistor. Note that low-side monitoring is not possible in some applications because the ground connection is made via the mechanical mounting of the motor on the chassis or metal frame. For systems powered via a single wire connection, it may not be practical to insert a shunt resistor between the device and the chassis that functions as the ground wire. R SENSE I LOAD I LOAD V S V SENSE + - Measurement Circuit Load V S + - Measurement Circuit V SENSE Load R SENSE High-Side Current Measurement I LOAD = V SENSE / R SENSE Low-Side Current Measurement I LOAD = V SENSE / R SENSE FIGURE 4: High-Side and Low-Side Resistive Current Shunts. DS00894A-page Microchip Technology Inc.
5 HIGH-SIDE CURRENT SHUNT MEASUREMENTS High-side current measurements can be implemented with a differential amplifier circuit that produces an output voltage that is proportional to V SENSE or the current flowing through the load. Figure 5 provides an example of a high-side shunt circuit. The differential amplifier circuit can be implemented with an op amp and discrete resistors or with an integrated IC device. Integrated differential amplifier ICs are available from a number of semiconductor vendors and offer a convenient solution because the amplifier and wellmatched resistors are combined in a single device. The attributes of high-side monitoring are listed below: Advantages: Less intrusive than low-side monitors and will not affect the EMI characteristics of the system. Can detect overcurrent faults that can occur by short circuits or inadvertent ground paths that can increase the load current to a dangerous level. A differential amplifier circuit will filter undesirable noise via the common-mode-rejection-ratio (CMRR) of the amplifier. A resistive network can be used to reduce the voltage at the amplifier s input terminals. For example, if R IN = R*, the input voltage will be reduced in half and the amplifier will be biased at V S /2. Note that the amplifier gain will be equal to one and that a second amplifier may be needed to increase the sensor s output voltage. Disadvantages: The V SENSE voltage is approximately equal to the supply voltage, which may be beyond the maximum input voltage range of the operational amplifier. A differential amplifier s CMRR will be degraded by mismatches in the amplifier resistors. The input impedance of the differential circuit is relatively low and is asymmetrical. The input impedance at the amplifier s non-inverting input is equal to R IN + R*, while the impedance at the inverting terminal is equal to R IN. May require rail-to-rail-input op amps because of the high voltage level of the input signal. The high-side shunt circuit requires a high-voltage amplifier that can withstand a high common mode voltage. In addition, the key amplifier specifications are a high CMRR and a low V OS because of the relatively small magnitude of V SENSE. High voltage op amps and integrated differential amplifier ICs are available for systems that have a maximum voltage of approximately 60V. For voltage requirements beyond 60V, a current mirror circuit can be used to sense the current. A current mirror can be implemented with readily available, high-voltage transistors. References (1) and (5) provide examples of high-voltage, high-side current monitor circuits. Table 2 provides a list of the recommended Microchip op amps that can be used in a high-side circuit. V SENSE R SENSE V S R IN R IN R* + - PICmicro Load ADC Microcontroller R* = V SENSE x (R*/R IN ) = (I LOAD x R SENSE ) x (R*/R IN ) ILOAD FIGURE 5: High-Side Resistive Current Measurement Circuit. TABLE 2: RECOMMENDED MICROCHIP OP AMPS FOR HIGH-SIDE CURRENT SHUNTS Product Operating Voltage CMRR (Typ.) V OS (Max.) Features TC to 16V 140 db 10 µv Low Noise Chopper Stabilized TC913A 6.5 to 16V 116 db 15 µv Auto-zeroed Op Amp TC913B 6.5 to 16V 110 db 30 µv Auto-zeroed Op Amp 2003 Microchip Technology Inc. DS00894A-page 5
6 LOW-SIDE CURRENT MEASUREMENT Low-side current measurements offer the advantage that the circuitry can be implemented with a low voltage op amp because the measurement is referenced to ground. The low-side measurement circuit can use a non-inverting amplifier, as shown in Figure 6. The low-side current monitor can also be implemented with a differential amplifier. The advantages of differential amplification are limited because R SENSE is connected to ground and the common mode voltage is very small. Note that integrated IC low-side monitors that combine the op amp and resistors are not readily available because of the simplicity of the circuit that can be implemented with a few discrete resistors and low voltage op amp. The attributes of low-side monitoring are: Advantages V SENSE is referenced to ground. Therefore, a low voltage amplifier can be used. A non-inverting amplifier can be used and the input impedance of the circuit will be equal to the large input impedance of the amplifier. Disadvantages The low-side resistor disrupts the ground path and the added resistance to the grounding system produces an offset voltage which can cause EMI noise problems. Low-side current monitors are unable to detect a fault where the load is accidently connected to ground via an alternative ground path. Table 3 provides a list of the recommended Microchip op amps that can be used in a low-side circuit. The key op amp specifications for selecting a low-side amplifier are rail-to-rail input and a low offset voltage (V OS ). Load VS + - I LOAD V SENSE ADC PICmicro Microcontroller R SENSE R 1 R 2 = (V SENSE ) x (1 + R 2 /R 1 ) = (I LOAD x R SENSE ) x (1 + R 2 /R 1 ) FIGURE 6: Low-Side Resistive Current Measurement Circuit. TABLE 3: RECOMMENDED MICROCHIP OP AMPS FOR LOW-SIDE CURRENT SHUNTS Product Operating Voltage CMRR (Typ.) V OS (Max.) Features TC913A 6.5 to 16V 116 db 15 µv Auto-zeroed Op Amp TC913B 6.5 to 16V 110 db 30 µv Auto-zeroed Op Amp MCP to 5.5V 91 db 250 µv Rail-to-Rail Output Low Operating Current MCP to 5.5V 100 db 150 µv Rail-to-Rail Output Low Operating Current DS00894A-page Microchip Technology Inc.
7 SHUNT OFFSET ADJUSTMENT CIRCUIT The circuit shown in Figure 7 can be used to provide an offset to the amplification of the V SENSE signal. Resistor R 1 is used to prevent the offset voltage provided by resistors R 4 and R 5 from changing the value of V SENSE. The offset can be used to center the amplifier s output to the midpoint of the voltage supply ( /2). The V SENSE signal is typically only 10 to 100 mv above ground and the offset often is needed if the amplifier is connected to an ADC. I LOAD V S FIGURE 7: Circuit. Load R 4 R 5 V SENSE R 1 R SENSE R 2 R 3 R SENSE << R 1 Amplifier Gain = (1 + (R 3 / R 2 )) = [(V SENSE (1 + (R 3 /R 2 )) + ((R 5 / (R 4 +R 5 ) )] Shunt Offset Adjustment Providing an offset to the shunt resistor circuit can also improve the linearity of the amplification, especially if standard op amps are used. The linearity, accuracy and power consumption of a standard single power supply op amp is typically degraded when the output signal is at, or near, the power supply rails. Thus, the offset circuit can be used to avoid this problem. The preferred op amps to use in a shunt circuit have a small offset voltage (V OS ) and a rail-to-rail, input-output specification. NOISE REDUCTION TECHNIQUES The combination of a differential amplifier with a high CMRR and discrete RC filters can be used to minimize the effect of EMI noise. The effect of EMI on a measurement typically results in poor DC performance and a large DC offset at the output of the op amp. Figure 8 provides an example of a circuit that can be used in a motor application to reduce noise. The addition of the common mode filters formed by the RC combinations of R 1 C 1 and R 2 C 2 are used to reduce the noise that is imposed on the two input lines of the amplifier. Discrete RC networks lower the voltage level of the noise signal by functioning as a low pass filter. However, an EMI filter, such as a TVS zener diode, is required to ensure that the input noise is clamped to a safe voltage level that will not damage the amplifier. The common mode resistors and capacitors should be matched as close as possible. The resistors should have a tolerance of 1% or better, while the capacitors should have a tolerance of 5% or better. Capacitor C 3 is used to add a RC differential filter that compensates for any mismatch of R 1 C 1 and R 2 C 2. Any difference in the RC combinations will result in a degradation of the amplifier s CMRR. The differential filter formed by R 1 C 3 and R 2 C 3 will attenuate the differential signal at the amplifier caused by the tolerances of the common mode filters. I LOAD V S Load R 1 R SENSE R 2 C1 C 2 C 3 R 3 R 4 R SENSE << R 1 and R 2 R 1 = R 2 C 1 = C 2 C 3 >> C 1 and C 3 >> C 2 Common Mode Filter f -3dB = 1 / (2π R 1 C 1 ) = 1 / (2π R 2 C 2 ) Differential Mode Filter f -3dB =1/ [2π (R 1 +R 2 ) (((C 1 x C 2 )/(C 1 +C 2 )) + C 3 )] FIGURE 8: RC Noise Reduction Circuit Microchip Technology Inc. DS00894A-page 7
8 Figure 9 provides an example of a shunt amplifier circuit that combines the filtering of the shunt current signal with an offset adjustment. The RC components R 1 C 1, R 2 C 2 and C 3 are used to provide EMI and ESD protection to the amplifier. The RC feedback networks of R 7 C 5 and R 6 C 4 are selected to provide a low pass filter response to the differential amplifier. A trade-off with discrete filter networks is that the frequency response of the filter is dependent on the source and load impedance. The filter equations shown are only an approximation. A more detailed analysis or SPICE simulation may be required to accurately model the filter response of the circuit. V S R 1 I LOAD C 1 R SENSE EMI Filter C 3 R 5 R 3 R 7 C 5 Hall Effect Current Sensors Hall effect sensors are a current-measuring sensor that can be easily integrated into an embedded application. Several vendors offer devices that combine the magnetic sensor and conditioning circuit in a small IC package. These IC sensors typically produce an analog output voltage that can be input directly into the microcontroller s ADC. The main disadvantages of Hall effect current sensors are that they are expensive and their accuracy varies with temperature. The Hall effect is based on the principle that a voltage (V H ) is created when current (I C ) flows in a direction perpendicular to a magnetic field (B), as shown in Figure 10. Hall effect current sensors are available in either an open-loop or closed-loop implementation. The closed-loop Hall effect sensors offer the advantage that their output linearity is better than an open-loop sensor over a wider current measurement range. Further details on Hall effect sensors are available in references (4), (7) and (12). R 2 R 4 V H- Load C 2 R 6 C 4 R SENSE << R 1 and R 2 I C I C R 1 = R 2 = R IN* R IN >> R IN* R 3 = R 4 = R IN R 7 = R 5 ll R 6 = R F C 1 = C 2 C 3 >> C 1 and C 3 >> C 2 C 4 = C 5 = C F V H+ B DC Amplifier Gain = -R F / (R IN* + R IN ) Amplifier Feedback Low Pass Filter f 1 / (2π R F C F ) = [((I LOAD x R SENSE ) x (R F /(R IN + R IN* )) + ((R 6 /(R 5 +R 6 ) )] FIGURE 9: Combining the Offset and Noise Reduction Circuit. Integrated EMI filters can be used to simplify the circuit shown in Figure 9 and reduce the number of discrete components. Integrated Passive Device (IPD) EMI filters that consist of resistors and transient suppression (TVS) zener diodes are available from a number of IC venders. IPD filters integrate the discrete components in a small IC package, while providing transient voltage protection. TVS devices offer the advantage that the input signal is clamped to a safe value that is equal to the breakdown voltage of a zener diode. The zener diode functions as a capacitor when the voltage is below the breakdown voltage. Thus, the IPD filter is equivalent to a RC filter when the input voltage is small. Further details on IPD EMI filters and ESD protection devices are provided in reference (8). FIGURE 10: Hall Effect Principle. The Hall effect current sensor can be placed on the PCB directly over the current trace that will be monitored. The sensor functions by measuring the magnetic flux that is created by the current flowing through the trace. Figure 11 provides an example of a PCB mounted Hall effect sensor that measures the current through a wire placed on the top of the IC. Hall effect current sensors are also available in a package that is mounted on the PCB, with the current-carrying wire passing through a hole in the sensor. FIGURE 11: I Printed Circuit Board Hall Effect Current Sensor. I DS00894A-page Microchip Technology Inc.
9 Current-Sensing Transformers Current-sensing transformers offer an alternative to shunt resistors and Hall effect sensors to measure current. These sensors use the principle of a transformer, where the ratio of the primary current to the secondary current is a function of the turns ratio. The main advantage of current transformers is that they provide galvanic isolation and can be used in high-current applications. The main disadvantage of current transformers is that an AC input signal is required to prevent the transformer from saturating. Figure 12 provides schematics of a single turn and a multi-turn primary current-sensing transformers. The single-turn primary transformer offers the advantage that the measurement is non-intrusive and the currentcarrying wire can be passed directly through a hole in the transformer. The multi-turn transformer offers the advantages of improved magnetic coupling, since many turns of the primary wire can be provided. B A I p 2 1 I s 1 + A I p 1 I p I s 3 + B N p Ns R t 2 Single-Turn Primary - I s = I p / N where N = turns ratio = I s x R t 2 N p N s R t - 4 Multi-Turn Primary FIGURE 12: Current-Sensing Transformers Microchip Technology Inc. DS00894A-page 9
10 BACK EMF CONTROL METHOD The back electro-magnetic-force (EMF) or sensorless motor control method obtains the speed and position of the motor directly from the voltage at the motor windings. This method is typically used in brushless DC motors to provide commutation. The back EMF control method eliminates the requirement for relatively expensive sensors, such as Hall effect devices. The back EMF voltage produces a sine or trapezoidal waveform that is sensed at the motor s winding and typically is converted into a digital square wave by a zero-crossing comparator circuit. The comparator signal is inputted to the microcontroller, which calculates the commutation sequence and motor position from the phase relationship of the square wave representation of the back EMF signals. The back EMF is created when the motor s armature turns, which creates a electrical kickback or EMF that is sensed as a voltage through a resistor. The amplitude of the EMF signal increases with the speed of the armature rotation. A limitation of the back EMF method is that the amplitude of the signal is very small at low shaft RPMs. The zero-crossing circuit can be constructed from either discrete comparator ICs or comparators that are located inside the PICmicro microcontroller. Figure 13 provides a block diagram of a sensorless control for a Brushless Direct Current (BLDC) motor that uses discrete comparator circuits. V DC PWM5 PWM4 A PIC18FXX31 PWM3 PWM2 PWM1 3-Phase Inverter Bridge PWM0 C B V DC BEMF A V REF_A V DC BEMF B V REF_B V DC BEMF C V REF_C BACK EMF ZERO-CROSSING COMPARATOR CIRCUITS FIGURE 13: Block Diagram of a Sensorless BLDC Motor Control. DS00894A-page Microchip Technology Inc.
11 SELECTING A COMPARATOR A comparator is designed to provide a logic-level output signal that indicates whether the voltage at the non-inverting input is larger or smaller than the voltage at the inverting input. Figures 14 and 15 show the circuit topology and design equations for a non-inverting and inverting comparator, respectively. The non-inverting circuit s output is in phase with the sinewave input, while the inverting circuit that has an output 180 out of phase from the input signal. Reference (6) provides further details on the comparator voltage transition and hysteresis equations. For example, the output voltage of a single voltage supply, non-inverting comparator will be analyzed. The output will be the same for a push-pull or an open-drain output device that is connected to voltage through a pull-up resistor. If the voltage at the non-inverting (+) terminal is larger than the voltage at the inverting (-) terminal, the output will be equal to approximately. In contrast, if the voltage at the (+) terminal is less than the voltage at the (-) terminal, the output will be equal to approximately V SS or ground. Though op amps can be used as a comparator, the designer must consider the trade-offs of using an amplifier in a non-linear mode. Op amps are designed to linearly amplify a small signal and use negative feedback to function in the linear region. By contrast, comparators are designed to function in the non-linear region and use positive feedback to force the output to have a fast transition to the saturation region where the output is at either the high or low power supply rail. Though op amps can function as a comparator by using positive feedback, the switching speed of the circuit is typically poor. The propagation delay of an op amp comparator is large in comparison with a typical comparator. In addition, the current consumption of an op amp comparator usually is much larger than a standard comparator. Table 4 provides a list of recommended Microchip comparators. A key specification for motor control applications is the propagation delay of the comparator. TABLE 4: RECOMMENDED MICROCHIP COMPARATORS Product Operating Voltage I Q (Typ.) Propagation Delay (typ.) Features TC to 5.5V 8 µa 4 µs Rail-to-rail input and output TC1027 TC to 5.5V 1.8 to 5.5V 18 µa 10 µa 4µs 4µs On-board V REF Shutdown pin (TC1028) TC to 5.5V 6 µa 4 µs Prog. Hysteresis Shutdown pin TC1037 TC1038 TC1039 TC1040 TC to 5.5V 1.8 to 5.5V 1.8 to 5.5V 1.8 to 5.5V 1.8 to 5.5V 4µA 4µA 6µA 10 µa 10 µa MCP6541/2/3/4 1.6 to 5.5V 0.6 µa per comparator MCP6546/7/8/9 1.6 to 5.5V 0.6 µa per comparator 4µs 4µs 4µs 4µs 4µs On-board V REF Shutdown pin (TC1038) On-board V REF (TC1039) On-board V REF Prog. Hysteresis (TC1041) 4µs Low I Q Push-pull output 4µs Low I Q Open-drain output 2003 Microchip Technology Inc. DS00894A-page 11
12 From Motor Windings V M R 3 V PULL-UP R 1A V IN R PULL-UP V OH R 1B R 2 V REF V OL R 4 V TL V TH V IN Assume: V OH =, V OL = 0, R 3 >> R 1 and R 3 >> R PULL-UP R V IN = B V R 1A + R M R 1 = R 1A R 1B 1B R V REF = V 4 DD R 2 + R 4 ( R V 1 + R 3 )V REF ( R 1 ) TL R 3 ( R V 1 + R 3 )V REF TH R 3 Hysteresis Plot Design Procedure: 1. Select V REF, the zero-crossing voltage 2. Select V HYS to be equal to 10 to 100 mv 3. Select R 3 >> R 1 V HYS = V TH V TL R V 1 HYS V R DD 3 Note: R PULL-UP is required for open drain outputs, but is not required for push-pull output comparators. FIGURE 14: Single Supply Non-Inverting Comparator Circuit. V PULL-UP R 3 From Motor Windings V M R 1 R 2 RPULL-UP V OH R 1A V REF V IN V OL R 1B V IN V TL V TH Hysteresis Plot Assume: V OH =, V OL = 0, R 3 >> R 1 ll R 2 and R 3 >>R PULL-UP R V IN = B V R 1A + R M R 1 = R 1A R 1B 1B R V REF V 1 DD R 1 + R 2 Design Procedure: 1. Select V REF, the zero-crossing voltage 2. Select V HYS to be equal to 10 to 100 mv 3. Select R 3 >> R 1 ll R 2 R V 1 TL V R 1 + R DD 2 V R 1 TH V ( R 1 R 2 ) V DD R 1 + R DD R 3 V HYS = V TH V TL ( R V 1 R 2 ) HYS R 3 Note: R PULL-UP is required for open drain outputs, but is not required for push-pull output comparators. FIGURE 15: Single-Supply Inverting Comparator Circuit. DS00894A-page Microchip Technology Inc.
13 COMPARATOR REFERENCE VOLTAGE In single supply comparators, a reference voltage must be created. The circuits create V REF by using a resistor voltage divider. The offset voltage of V REF enables the circuit to function as a zero-crossing detector without requiring a dual voltage power supply. The back EMF voltage produces a sine or trapazoidal waveform that swings above and below power ground. The back EMF voltage can be sensed as a sine or trapazoidal waveform offset by a DC voltage if the comparator circuit is either referenced to center point of the motor windings, or if a resistor network is used. The resistor network can either pull-up the floating signal to or pulldown the signal to ground. Further details on the back EMF comparator circuit used in a brushless DC motor controller are provided in reference (11). HYSTERESIS Hysteresis can be used to provide noise reduction and prevent oscillation when the comparator switches output states. A comparator provides hysteresis by feeding back a small fraction of the output signal to the positive input terminal. This additional voltage provides for a polarity sensitive offset voltage, which either increases or decreases the threshold value of the switching voltage. Hysteresis produces two different switching points that result in a transition voltage that is dependent on whether the input voltage is rising or falling in amplitude. Frequency-dependent hysteresis can be provided by placing a capacitor in the positive feedback network, as shown in Figure 16. The capacitor adds an additional pole that changes the amount of hysteresis as a function of frequency. At frequencies below f p, the hysteresis will be a constant voltage determined by resistors R 1 and R 3. However, at frequencies above the pole f p, the hysteresis will be increased as a function of the frequency, as shown in the equations provided in Figure 16. C 3 R 3 High Frequency f p = 1 / (2π R 3 C 3 ) V IN R 1 R 2 Z 3 = R 3 ll C 3 = R 3 / (sr 3 C 3 +1) where s = jω = j2πf V HYS [(R 1 / Z 3 ) x ] [(R 1 x (sr 3 C 3 +1)) / R 3 )] x R 4 V REF FIGURE 16: Frequency Dependent Hysteresis for a Comparator Microchip Technology Inc. DS00894A-page 13
14 QUADRATURE ENCODER A quadrature encoder can be used to provide the speed, direction and shaft position of a rotating motor. A simplified block diagram of an optical quadrature encoder is shown in Figure 17. The typical quadrature encoder is packaged inside the motor assembly and provides three logic-level signals that can be directly connected to the microcontroller. Motor speed is determined by the frequency of the Channel A and B signals. Note that the counts-per-revolution (CPR) depends on the location of the encoder and whether motor-gearing is used. The phase relationship between Channel A and B can be used to determine if the motor is turning in either a forward or reverse direction. The Index signal provides the position of the motor and, typically, a single pulse is generated for every 360 degrees of shaft rotation. The quadrature encoder s speed and direction information can be determined either with discrete logic, a quadrature encoder logic IC or a PICmicro microcontroller. Vendors, such as LSI Computer Systems, offer an IC that converts the three encoder signals to a signal that represents the velocity, position and distance that the motor has moved. Alternatively, the encoder information can be obtained from the hardware registers and software logic inside a PICmicro microcontroller. For example, the PIC18FXX31 dspic MCUs have a Quadrature Encoder Interface logic integrated into the processor. Motor (+) Quadrature Encoder Channel A 0V Channel A Channel B Index Motor Channel B 0V Motor (-) Index Forward Direction Change Reverse Codewheel Photodiode Channel A LED Lens Signal Processing Circuitry Channel B Index Simplified Block Diagram of a Quadrature Encoder Ground FIGURE 17: Quadrature Encoder. DS00894A-page Microchip Technology Inc.
15 HALL EFFECT TACHOMETERS Hall effect sensors can be used to sense the speed and position of a rotating motor. Further information on Hall effect tachometer sensors are provided in references (4) and (12). These sensors are based on using the Hall element to sense the change influx in the air gap between a magnet and a notch in a rotating shaft or a passing ferrous gear tooth. The main advantage of Hall effect tachometers is that they are a non-contact sensor that is not limited by mechanical wear. Hall effect tachometers that integrate the sensor and sensor-conditioning circuit in a small IC package are available from a number of vendors. The circuitry inside the sensor typically consists of a comparator or Schmitt trigger to provide a digital output signal that can be directly connected to the microcontroller. An example of a Hall effect rotary interrupt switch is provided in Figure 18. A notch is placed in the rotating shaft that provides a magnetic field to the sensor when the notch is positioned directly in-line with the magnet and the Hall effect sensor, turning the switch ON. When the solid portion of the disk is between the Hall effect sensor and the magnet, the magnetic field is interrupted and the switch is in the OFF position. Hall effect tachometers can also be used as a geartooth sensor. A Hall effect geartooth sensor, shown in Figure 19, senses the variation in the flux in the air gap between the passing ferrous geartooth and the magnet. Geartooth sensors typically provide a digital output that can be directly connected to the I/O port of the microcontroller. In addition to detecting the speed of the rotation, some Hall effect tachometers also detect the direction of the turning gears. Magnet Refer to Reference 12 for additional information FIGURE 18: Hall Effect Rotary Interrupt Switch Tachometer. Hall Effect Sensor Refer to Reference 12 for additional information FIGURE 19: Hall Effect Geartooth Tachometer Microchip Technology Inc. DS00894A-page 15
16 CONCLUSION Feedback sensors serve a critical role in a motor control system. These sensors provide information on the current, position, speed and direction of a rotating motor. In addition, the sensors improve the reliability of the motor by detecting fault conditions that may damage the motor. The four major feedback sensors discussed in this document are: current sensors, back EMF or sensorless control, quadrature encoders and Hall effect tachometers. Each of these sensors offer advantages and disadvantages that the designer must evaluate in order to provide a stable, reliable and cost-effective control system. Further details on motor control circuits and sensors are provided in several books, including Motor Control Electronics (10). In addition, please review Microchip s web site ( for reference designs and applications notes on motor control systems. References (9) and (11) are just two of the many documents available that demonstrate how Microchip s PICmicro microntrollers and analog products can be used in a motor control system. BIBLIOGRAPHY 1. Bell, Bob and Hill, Jim, Circuit Senses High- Side Current, EDN, March 1, Blake, Kumen, Analog PCB Layout Techniques, 2002 Microchip Master Conference, Microchip Technology Inc., Farley, Mike, High-Side ICs Simplify Current Measurements, Power Electronics Technology, September Gilbert, Joe and Dewey, Ray, Application Note 27702A, Linear Hall-Effect Sensors, Allegro Microcsystems, Worcester, MA, Klein, William, Circuit Measures Small Currents Referenced to High Voltage Rails, Electronic Design, January 7, Moghimi, Reza, Curing Comparator Instability with Hysteresis, Analog Dialogue 34-7, Analog Devices, Norwood, MA, Law, Lou, Measuring Current with IMC Hall Effect Technology, Sensors, November Lepkowski, Jim, AND Zener Diode Based Integrated Passive Device Filters, An Alternative to Traditional I/O EMI Filter Devices, ON Semiconductor, Phoenix, AZ, Parekh, Rakesh, AN889 - VF Control of 3- Phase Induction Motors using PIC16F7X7 Microcontrollers, Microchip Technology Inc., Valentine, Richard, editor, Motor Control Electronics Handbook, McGraw-Hill, Boston, Yedamale, Padmaraja, AN885 - Brushless DC (BLDC) Motor Fundamentals, Microchip Technology Inc., Chandler, AZ, Hall Applications Guide, Melexis Microelectronics, Concord, N.H., DS00894A-page Microchip Technology Inc.
17 Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular Microchip Data Sheet. Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip's Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code. Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as unbreakable. Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break microchip s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device applications and the like is intended through suggestion only and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip s products as critical components in life support systems is not authorized except with express written approval by Microchip. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights. Trademarks The Microchip name and logo, the Microchip logo, Accuron, dspic, KEELOQ, MPLAB, PIC, PICmicro, PICSTART, PRO MATE and PowerSmart are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. AmpLab, FilterLab, microid, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartShunt and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Application Maestro, dspicdem, dspicdem.net, dspicworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzylab, In-Circuit Serial Programming, ICSP, ICEPIC, microport, Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, rflab, rfpic, Select Mode, SmartSensor, SmartTel and Total Endurance are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. Serialized Quick Turn Programming (SQTP) is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. 2003, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received ISO/TS-16949:2002 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona and Mountain View, California in October The Company s quality system processes and procedures are for its PICmicro 8-bit MCUs, KEELOQ code hopping devices, Serial EEPROMs, microperipherals, non-volatile memory and analog products. In addition, Microchip s quality system for the design and manufacture of development systems is ISO 9001:2000 certified Microchip Technology Inc. DS00894A-page 17
18 M WORLDWIDE SALES AND SERVICE AMERICAS Corporate Office 2355 West Chandler Blvd. Chandler, AZ Tel: Fax: Technical Support: Web Address: Atlanta 3780 Mansell Road, Suite 130 Alpharetta, GA Tel: Fax: Boston 2 Lan Drive, Suite 120 Westford, MA Tel: Fax: Chicago 333 Pierce Road, Suite 180 Itasca, IL Tel: Fax: Dallas 4570 Westgrove Drive, Suite 160 Addison, TX Tel: Fax: Detroit Tri-Atria Office Building Northwestern Highway, Suite 190 Farmington Hills, MI Tel: Fax: Kokomo 2767 S. Albright Road Kokomo, IN Tel: Fax: Los Angeles Von Karman, Suite 1090 Irvine, CA Tel: Fax: Phoenix 2355 West Chandler Blvd. Chandler, AZ Tel: Fax: San Jose 1300 Terra Bella Avenue Mountain View, CA Tel: Toronto 6285 Northam Drive, Suite 108 Mississauga, Ontario L4V 1X5, Canada Tel: Fax: ASIA/PACIFIC Australia Suite 22, 41 Rawson Street Epping 2121, NSW Australia Tel: Fax: China - Beijing Unit 706B Wan Tai Bei Hai Bldg. No. 6 Chaoyangmen Bei Str. Beijing, , China Tel: Fax: China - Chengdu Rm , 24th Floor, Ming Xing Financial Tower No. 88 TIDU Street Chengdu , China Tel: Fax: China - Fuzhou Unit 28F, World Trade Plaza No. 71 Wusi Road Fuzhou , China Tel: Fax: China - Hong Kong SAR Unit 901-6, Tower 2, Metroplaza 223 Hing Fong Road Kwai Fong, N.T., Hong Kong Tel: Fax: China - Shanghai Room 701, Bldg. B Far East International Plaza No. 317 Xian Xia Road Shanghai, Tel: Fax: China - Shenzhen Rm. 1812, 18/F, Building A, United Plaza No Binhe Road, Futian District Shenzhen , China Tel: Fax: China - Shunde Room 401, Hongjian Building No. 2 Fengxiangnan Road, Ronggui Town Shunde City, Guangdong , China Tel: Fax: China - Qingdao Rm. B505A, Fullhope Plaza, No. 12 Hong Kong Central Rd. Qingdao , China Tel: Fax: India Divyasree Chambers 1 Floor, Wing A (A3/A4) No. 11, O Shaugnessey Road Bangalore, , India Tel: Fax: Japan Benex S-1 6F , Shinyokohama Kohoku-Ku, Yokohama-shi Kanagawa, , Japan Tel: Fax: Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea Tel: Fax: or Singapore 200 Middle Road #07-02 Prime Centre Singapore, Tel: Fax: Taiwan Kaohsiung Branch 30F - 1 No. 8 Min Chuan 2nd Road Kaohsiung 806, Taiwan Tel: Fax: Taiwan Taiwan Branch 11F-3, No. 207 Tung Hua North Road Taipei, 105, Taiwan Tel: Fax: EUROPE Austria Durisolstrasse 2 A-4600 Wels Austria Tel: Fax: Denmark Regus Business Centre Lautrup hoj 1-3 Ballerup DK-2750 Denmark Tel: Fax: France Parc d Activite du Moulin de Massy 43 Rue du Saule Trapu Batiment A - ler Etage Massy, France Tel: Fax: Germany Steinheilstrasse 10 D Ismaning, Germany Tel: Fax: Italy Via Quasimodo, Legnano (MI) Milan, Italy Tel: Fax: Netherlands P. A. De Biesbosch 14 NL-5152 SC Drunen, Netherlands Tel: Fax: United Kingdom 505 Eskdale Road Winnersh Triangle Wokingham Berkshire, England RG41 5TU Tel: Fax: /24/03 DS00894A-page Microchip Technology Inc.
AN709. System Level Design Considerations When Using I 2 C TM Serial EEPROM Devices INTRODUCTION INSURING BUS-FREE DURING POWER-UP
M AN709 System Level Design Considerations When Using I 2 C TM Serial EEPROM Devices Author: INTRODUCTION Rick Stoneking Developing systems that implement the I 2 C protocol for communicating with serial
AN905. Brushed DC Motor Fundamentals INTRODUCTION PRINCIPLES OF OPERATION. Stator. Rotor SIMPLE TWO-POLE BRUSHED DC MOTOR. Microchip Technology Inc.
Brushed DC Motor Fundamentals AN905 Author: Reston Condit Microchip Technology Inc. INTRODUCTION Brushed DC motors are widely used in applications ranging from toys to push-button adjustable car seats.
AN688. Layout Tips for 12-Bit A/D Converter Application GETTING A GOOD START INTRODUCTION. Microchip Technology Inc. / 2 MCP602
Layout Tips for 12-Bit A/D Converter Application Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. This Application Note originally started as a cook book for a true 12-bit layout. The assumption
TB3016. Using the PIC MCU CTMU for Temperature Measurement IMPLEMENTATION BASIC PRINCIPLE MEASUREMENT CIRCUIT
Using the PIC MCU CTMU for Temperature Measurement Author: Padmaraja Yedamale Microchip Technology Inc. The Charge Time Measurement Unit (CTMU), introduced on the latest generation of PIC24F and PIC18F
TB056. Demonstrating the Set_Report Request With a PS/2 to USB Keyboard Translator Example INTRODUCTION. The Set_Report Request.
Demonstrating the Set_Report Request With a PS/2 to USB Keyboard Translator Example Author: INTRODUCTION This Technical Brief details the translation of a PS/2 keyboard to a USB keyboard using the PIC16C745/
AN680. Passive RFID Basics INTRODUCTION DEFINITIONS. Modulation. Reader. Tag. Carrier. Microchip Technology Inc.
Passive RFID Basics Author: INTRODUCTION Radio Frequency Identification (RFID) systems use radio frequency to identify, locate and track people, assets, and animals. Passive RFID systems are composed of
AN699. Anti-Aliasing, Analog Filters for Data Acquisition Systems ANALOG VERSUS DIGITAL FILTERS INTRODUCTION. Microchip Technology Inc.
Anti-Aliasing, Analog Filters for Data Acquisition Systems Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. Analog filters can be found in almost every electronic circuit. Audio systems use
TCM809/TCM810. 3-Pin Microcontroller Reset Monitors. General Description. Features. Applications. Pin Configurations. Typical Application Circuit
M TCM809/TCM810 3-Pin Microcontroller Reset Monitors Features Precision Monitor for 2.5V, 3.0V, 3.3V, 5.0V Nominal System Voltage Supplies 140 msec Minimum RESET Timeout Period RESET Output to = 1.0V (TCM809)
AN831. Matching Small Loop Antennas to rfpic Devices INTRODUCTION CALCULATING THE LOOP RADIATION RESISTANCE AND LOSS RESISTANCE EQUATION 2:
Matching Small Loop Antennas to rfpic Devices Author: Jan van Niekerk Microchip Technology Inc. EQUATION 2: Ploss I 2 Rloss INTRODUCTION In close proximity to the human body, small loop antennas outperform
AN687. Precision Temperature-Sensing With RTD Circuits RTD OVERVIEW INTRODUCTION EQUATION 1:
Precision Temperature-Sensing With RTD Circuits Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. The most widely measured phenomena in the process control environment is temperature. Common
WORKSHOP-IN-A-BOX 2: LOW POWER SOLUTIONS DEMONSTRATION BOARD
WORKSHOP-IN-A-BOX 2: LOW POWER SOLUTIONS DEMONSTRATION BOARD 2004 Microchip Technology Inc. DS51512A Note the following details of the code protection feature on Microchip devices: Microchip products meet
TB055. PS/2 to USB Mouse Translator IMPLEMENTATION OVERVIEW. Hardware FIGURE 1: PS/2 TO USB MOUSE TRANSLATOR HARDWARE DIAGRAM (1)
PS/2 to USB Mouse Translator TB55 Author: OVERVIEW Reston Condit Microchip Technology Inc. This Technical Brief details the translation of a PS/2 mouse to a USB mouse using the PIC16C745/765. The PIC16C745/765
AN990. Analog Sensor Conditioning Circuits An Overview INTRODUCTION SENSOR APPLICATIONS. Target Audience. Goals. Description.
Analog Conditioning Circuits An Overview Author: INTRODUCTION Target Audience This application note is intended for hardware design engineers that need to condition the output of common analog sensors.
M Floating Point to ASCII Conversion
M Floating Point to ASCII Conversion AN670 Authors: INTRODUCTION It is often necessary to output a floating point number to a display. For example, to check calculations, one might want to output floating
TCM680. +5V To ±10V Voltage Converter. General Description. Features. Applications. Package Type. Typical Operating Circuit
M 5V To ±10V Voltage Converter TCM680 Features 99% Voltage Conversion Efficiency 85% Power Conversion Efficiency Input Voltage Range: 2.0V to 5.5V Only 4 External Capacitors Required 8Pin SOIC Package
Operational Amplifier Topologies and DC Specifications
Operational Amplifier Topologies and DC Specifications Author: Bonnie C. Baker INTRODUCTION Operational amplifiers (op amps) are as prolific in analog circuits as salt and pepper is on food. They are sprinkled
AN844. Simplified Thermocouple Interfaces and PICmicro MCUs INTRODUCTION. Linearization THERMOCOUPLE CIRCUITS. Absolute Temperature Reference.
Simplified Thermocouple Interfaces and PICmicro MCUs Author: INTRODUCTION Joseph Julicher Microchip Technology Inc. Thermocouples are the simplest form of temperature sensors. Thermocouples are normally:
AN885. Brushless DC (BLDC) Motor Fundamentals INTRODUCTION CONSTRUCTION AND OPERATING PRINCIPLE. Stator. Padmaraja Yedamale Microchip Technology Inc.
Brushless DC (BLDC) Motor Fundamentals AN885 Author: INTRODUCTION Padmaraja Yedamale Microchip Technology Inc. Brushless Direct Current (BLDC) motors are one of the motor types rapidly gaining popularity.
A CAN Physical Layer Discussion
M A CAN Physical Layer Discussion AN228 Author: INTRODUCTION Pat Richards Microchip Technology Inc. Many network protocols are described using the seven layer Open System Interconnection (OSI) model, as
AN685. Thermistors in Single Supply Temperature Sensing Circuits INTRODUCTION THERMISTOR OVERVIEW. Current-Over-Time Mode. Voltage-Versus-Current Mode
Thermistors in Single Supply Temperature Sensing Circuits Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. There is a variety of temperature sensors on the market all of which meet specific
AN1286. Water-Resistant Capacitive Sensing INTRODUCTION THEORY OF OPERATION. Sensing Steps. Sensing Steps Description DESIGN
Water-Resistant Capacitive Sensing AN1286 Author: INTRODUCTION Thomas Perme Steven Lin Microchip Technology Inc. This application note describes a new hardware sensing method which is resilient to water
AN1142. USB Mass Storage Class on an Embedded Host INTRODUCTION. USB Mass Storage Class. Overview
USB Mass Storage Class on an Embedded Host Author: INTRODUCTION With the introduction of Microchip's microcontrollers with the USB OTG peripheral, microcontroller applications can easily support USB Embedded
TC4421/TC4422. Functional Block Diagram. TC4421 Inverting. TC4422 Non-Inverting V DD. 300 mv Output. Input 4.7V. GND Effective. Input.
9A High-Speed MOSFET Drivers Features High Peak Output Current: 9A Wide Input Supply Voltage Operating Range: - 4.5V to 18V High Continuous Output Current: 2A Max Fast Rise and Fall Times: - 3 ns with
AN1332. Current Sensing Circuit Concepts and Fundamentals CURRENT SENSING RESISTOR INTRODUCTION. Description. Microchip Technology Inc.
Current Sensing Circuit Concepts and Fundamentals Author: INTRODUCTION Yang Zhen Microchip Technology Inc. Current sensing is a fundamental requirement in a wide range of electronic applications. Typical
AN1199. 1-Wire Communication with PIC Microcontroller INTRODUCTION. OVERVIEW OF THE 1-Wire BUS. 1-Wire Protocol. Prerequisites
1-Wire Communication with PIC Microcontroller Author: INTRODUCTION This application note introduces the user to the 1-Wire communication protocol and describes how a 1-Wire device can be interfaced to
How to Implement ICSP Using PIC12C5XX OTP MCUs VDD. GP3/MCLR/VPP ICSP Connector. To application circuit Isolation circuits
TB017 How to Implement ICSP Using PIC12C5XX OTP MCUs Author: Thomas Schmidt custom orders for your products. IN-CIRCUIT SERIAL PROGRAMMING INTRODUCTION The technical brief describes how to implement in-circuit
AN873. Using the MCP2515 CAN Developer s Kit INTRODUCTION. PC Node. PICmicro Node BLOCK DIAGRAM OF MCP2515 DEVELOPMENT BOARD
M Using the MCP2515 CAN Developer s Kit AN873 Author: INTRODUCTION The MCP2515 eases software development and shortens the learning curve for the MCP2515 by providing three PC software templates with different
TC652/TC653. Integrated Temperature Sensor & Brushless DC Fan Controller with FanSense Detect & Over-Temperature. Features.
Integrated Temperature Sensor & Brushless DC Fan Controller with FanSense Detect & Over-Temperature Features Integrated Temperature Sensing and Multi-speed Fan Control FanSense Fan Fault Detect Circuitry
MCP3021. Low Power 10-Bit A/D Converter With I 2 C Interface. Description. Features. Applications. Functional Block Diagram.
M MCP321 Low Power 1-Bit A/D Converter With I 2 C Interface Features 1-bit resolution ±1 LSB DNL, ±1 LSB INL max. 25 µa max conversion current 5 na typical standby current, 1 µa max. I 2 C compatible serial
AN562. Using Endurance Predictive Software. Using the Microchip Endurance Predictive Software INTRODUCTION TOTAL ENDURANCE PREDICTIVE SOFTWARE
AN562 Using the Microchip Endurance Predictive Software INTRODUCTION Endurance, as it applies to non-volatile memory, refers to the number of times an individual memory cell can be erased and/or written
dspic30f3012/3013 dspic30f3012/3013 Rev. B0 Silicon Errata dspic30f3012/3013 (Rev. B0) Silicon Errata Silicon Errata Summary
dspic30f3012/3013 Rev. B0 Silicon Errata dspic30f3012/3013 (Rev. B0) Silicon Errata The dspic30f3012/3013 (Rev. B0) samples you have received were found to conform to the specifications and functionality
AN956. Migrating Applications to USB from RS-232 UART with Minimal Impact on PC Software OVERVIEW INTRODUCTION. Microchip Technology Inc.
Migrating Applications to USB from RS-232 UART with Minimal Impact on PC Software Author: INTRODUCTION Rawin Rojvanit Microchip Technology Inc. The RS-232 serial interface is no longer a common port found
How To Use A Temperature Sensor On A Microchip Computer (For Microchip)
2-Wire Serial Temperature Sensor and Thermal Monitor Features Solid-State Temperature Sensing; 0.5 C Accuracy (Typ.) Operates from -55 C to +25 C Operating Supply Range: 2.7V to 5.5V Programmable Trip
AN1156. Battery Fuel Measurement Using Delta-Sigma ADC Devices INTRODUCTION REVIEW OF BATTERY CHARGING AND DISCHARGING CHARACTERISTICS
Battery Fuel Measurement Using Delta-Sigma ADC Devices Author: INTRODUCTION Youbok Lee, Ph.D. Microchip Technology Inc. The battery fuel status indicator is a common feature of the battery-supported handheld
TDA4605 CONTROL CIRCUIT FOR SWITCH MODE POWER SUPPLIES USING MOS TRANSISTORS
CONTROL CIRCUIT FOR SWITCH MODE POWER SUPPLIES USING MOS TRANSISTORS Fold-Back Characteristic provides Overload Protection for External Diodes Burst Operation under Short-Circuit and no Load Conditions
PICmicro DC Motor Control Tips n Tricks
PICmicro DC Motor Control Tips n Tricks M Table of Contents Tips n Tricks Tips N Tricks Introduction TIP #1: Brushed DC Motor Drive Circuits...2 TIP #2: Brushless DC Motor Drive Circuits...5 TIP #3: Stepper
AN1303. Software Real-Time Clock and Calendar Using PIC16F1827 DATA INTERFACE INTRODUCTION IMPLEMENTATION INTERNAL REGISTER MAP
Software Real-Time Clock and Calendar Using PIC16F1827 Author: INTRODUCTION Cristian Toma Microchip Technology Inc. This application note describes the implementation of software Real-Time Clock and Calendar
Technical Brief Secure Learning RKE Systems Using KEELOQ Encoders
Technical Brief Secure Learning RKE Systems Using KEELOQ Encoders TB001 Author: Chris R. Burger INTRODUCTION Learning capability in remote keyless entry (RKE) and remote-controlled security systems is
Voltage-to-Frequency/Frequency-to-Voltage Converter
Voltage-to-Frequency/Frequency-to-Voltage Converter Author: Michael O. Paiva, Microchip Technology, Inc. RATIOMETRIC MEASUREMENT (ANALOG DIVISION) One of the most difficult circuits to build is one which
FLASH Memory Programming Specification TABLE 1-1: PIN DESCRIPTIONS (DURING PROGRAMMING): PIC16F72
M PIC16F72 FLASH Memory Programming Specification This document includes the programming specifications for the following device: PIC16F72 1.0 PROGRAMMING THE PIC16F72 The PIC16F72 is programmed using
AN713. Controller Area Network (CAN) Basics INTRODUCTION CAN PROTOCOL BASICS CAN OVERVIEW
Controller Area Network (CAN) Basics AN713 Author: INTRODUCTION Controller Area Network (CAN) was initially created by German automotive system supplier Robert Bosch in the mid-1980s for automotive applications
AN717. Building a 10-bit Bridge Sensing Circuit using the PIC16C6XX and MCP601 Operational Amplifier
Building a 10-bit Bridge Sensing Circuit using the PIC16C6XX and MCP601 Operational Amplifier Author: INTRODUCTION Bonnie C. Baker Sensors that use Wheatstone bridge configurations, such as pressure sensors,
How To Improve Electromagnetic Compatibility
Introducing the EMC Newsletter What is EMC? Issue 1, November 2004 NOVEMBER 2004 Rodger Richey Senior Applications Manager Welcome to the first issue of the EMC Newsletter created by the Application Engineers
www.jameco.com 1-800-831-4242
Distributed by: www.jameco.com 1-800-831-4242 The content and copyrights of the attached material are the property of its owner. LF411 Low Offset, Low Drift JFET Input Operational Amplifier General Description
M Floating Point to ASCII Conversion
M Floating Point to ASCII Conversion AN670 Authors: INTRODUCTION It is often necessary to output a floating point number to a display. For example, to check calculations, one might want to output floating
AN ISOLATED GATE DRIVE FOR POWER MOSFETs AND IGBTs
APPLICATION NOTE AN ISOLATED GATE DRIVE FOR POWER MOSFETs AND IGBTs by J.M. Bourgeois ABSTRACT Power MOSFET and IGBT gate drives often face isolation and high voltage constraints. The gate drive described
SWITCH-MODE POWER SUPPLY CONTROLLER PULSE OUTPUT DC OUTPUT GROUND EXTERNAL FUNCTION SIMULATION ZERO CROSSING INPUT CONTROL EXTERNAL FUNCTION
SWITCH-MODE POWER SUPPLY CONTROLLER. LOW START-UP CURRENT. DIRECT CONTROL OF SWITCHING TRAN- SISTOR. COLLECTOR CURRENT PROPORTIONAL TO BASE-CURRENT INPUT REERSE-GOING LINEAR OERLOAD CHARACTERISTIC CURE
AN1353. Op Amp Rectifiers, Peak Detectors and Clamps INTRODUCTION BASIC RECTIFIERS. Choosing the Components. Positive Half-Wave Rectifier.
Op Amp Rectifiers, Peak Detectors and Clamps Author: Dragos Ducu, Microchip Technology Inc. INTRODUCTION This application note covers a wide range of applications, such as halfwave rectifiers, fullwave
SG2525A SG3525A REGULATING PULSE WIDTH MODULATORS
SG2525A SG3525A REGULATING PULSE WIDTH MODULATORS 8 TO 35 V OPERATION 5.1 V REFERENCE TRIMMED TO ± 1 % 100 Hz TO 500 KHz OSCILLATOR RANGE SEPARATE OSCILLATOR SYNC TERMINAL ADJUSTABLE DEADTIME CONTROL INTERNAL
Analog-to-Digital Converters
Analog-to-Digital Converters In this presentation we will look at the Analog-to-Digital Converter Peripherals with Microchip s midrange PICmicro Microcontrollers series. 1 Analog-to-Digital Converters
LM134-LM234-LM334. Three terminal adjustable current sources. Features. Description
Three terminal adjustable current sources Features Operates from 1V to 40V 0.02%/V current regulation Programmable from 1µA to 10mA ±3% initial accuracy Description The LM134/LM234/LM334 are 3-terminal
Code Hopping Decoder Using a PIC16C56
Code Hopping Decoder Using a PIC6C56 AN66 Author: OVERVIEW Steven Dawson Microchip Technology Inc. This application note fully describes the working of a code hopping decoder implemented on a Microchip
TLI4946. Datasheet TLI4946K, TLI4946-2K, TLI4946-2L. Sense and Control. May 2009
May 2009 TLI4946 High Precision Hall Effect Latches for Industrial and Consumer Applications TLI4946K, TLI4946-2K, TLI4946-2L Datasheet Rev. 1.0 Sense and Control Edition 2009-05-04 Published by Infineon
LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.
LM 358 Op Amp S k i l l L e v e l : I n t e r m e d i a t e OVERVIEW The LM 358 is a duel single supply operational amplifier. As it is a single supply it eliminates the need for a duel power supply, thus
AN723. Operational Amplifier AC Specifications and Applications INTRODUCTION FREQUENCY DOMAIN SPECIFICATIONS
Operational Amplifier AC Specifications and Applications Author: INTRODUCTION Bonnie C. Baker I IN V DD This application note defines the ac specifications of voltage feedback operational amplifiers (Op
AN905. Brushed DC Motor Fundamentals INTRODUCTION PRINCIPLES OF OPERATION. Stator. Rotor SIMPLE TWO-POLE BRUSHED DC MOTOR. Microchip Technology Inc.
Brushed DC Motor Fundamentals AN905 Author: Reston Condit Microchip Technology Inc. INTRODUCTION Brushed DC motors are widely used in applications ranging from toys to push-button adjustable car seats.
Discontinued Product For Reference Only
Data Sheet 29319.12A 2962 DUAL PULSE-WIDTH MODULATED CURRENT CONTROL GROUND IN A SENSE A SINK A SOURCE A THS A V CC SOURCE B SINKB SENSEB IN B THS B 1 2 3 4 5 6 7 8 9 1 11 12 LOGIC LOGIC Dwg. No. D-11
LF412 Low Offset Low Drift Dual JFET Input Operational Amplifier
LF412 Low Offset Low Drift Dual JFET Input Operational Amplifier General Description These devices are low cost high speed JFET input operational amplifiers with very low input offset voltage and guaranteed
AN1325. mtouch Metal Over Cap Technology THEORY OF OPERATION INTRODUCTION CROSS SECTION OF METAL OVER CAPACITIVE (UNPRESSED)
mtouch Metal Over Cap Technology AN1325 Authors: INTRODUCTION Keith Curtis Dieter Peter Microchip Technology Inc. As a user interface, capacitive touch has several advantages: it is low power, low cost,
Application Note 142 August 2013. New Linear Regulators Solve Old Problems AN142-1
August 2013 New Linear Regulators Solve Old Problems Bob Dobkin, Vice President, Engineering and CTO, Linear Technology Corp. Regulators regulate but are capable of doing much more. The architecture of
PIC10F200/202/204/206
Memory Programming Specification This document includes the programming specifications for the following devices: PIC10F200 PIC10F202 PIC10F204 PIC10F206 1.0 PROGRAMMING THE PIC10F200/202/204/206 The PIC10F200/202/204/206
What Does Rail-to-Rail Operation Really Mean?
What Does Rail-to-Rail Operation Really Mean? 2004 Microchip Technology Incorporated. All Rights Reserved. What does Rail-to-Rail Operation really mean? 1 Agenda What does Rail-to-Rail output operation
LM134-LM234 LM334 THREE TERMINAL ADJUSTABLE CURRENT SOURCES. OPERATES from 1V to 40V
LM134-LM234 LM334 THREE TERMINAL USTABLE CURRENT SOURCES OPERATES from 1 to 40. 0.02% CURRENT REGULATION PROGRAMMABLE from 1µA to 10mA ±3% INITIAL ACCURACY DESCRIPTION The LM134/LM234/LM334 are 3-terminal
Installing and Licensing MPLAB XC C Compilers
Installing and Licensing MPLAB XC C Compilers DS50002059G Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular
Recommended Usage of Microchip 23X256/23X640 SPI Serial SRAM Devices RECOMMENDED CONNECTIONS FOR 23X256,23X640 SERIES DEVICES VCC 23X256/ HOLD.
Recommended Usage of Microchip 23X256/23X640 SPI Serial SRAM Devices Author: INTRODUCTION Martin Bowman Microchip Technology Inc. This document details recommended usage of the Microchip 23X256 and 23X640
Evaluating AC Current Sensor Options for Power Delivery Systems
Evaluating AC Current Sensor Options for Power Delivery Systems State-of-the-art isolated ac current sensors based on CMOS technology can increase efficiency, performance and reliability compared to legacy
AN880. Converting from 8051 to Microchip Assembler: A Quick Reference INTRODUCTION
Converting from 805 to Assembler: A Quick Reference Author: INTRODUCTION Gaurang Kavaiya Technology Inc. When migrating assembly language programs from one family of microcontrollers to another, the first
Touch Through Metal. mtouch Metal Over Capacitive Technology Part 1
Touch Through Metal mtouch Metal Over Capacitive Technology Part 1 2010 Microchip Technology Incorporated. All Rights Reserved. Touch Through Metal Slide 1 Hello and welcome to Microchip s Touch Through
AN679. Temperature Sensing Technologies SO MANY TEMPERATURE SENSORS INTRODUCTION. Microchip Technology Inc.
M Temperature Sensing Technologies AN679 Author: Bonnie Baker Microchip Technology Inc. INTRODUCTION Of all of the sensing technologies, temperature sensing is the most common. This phenomena can be explained
Tamura Closed Loop Hall Effect Current Sensors
Tamura Closed Loop Hall Effect Current Sensors AC, DC, & Complex Currents Galvanic Isolation Fast Response Wide Frequency Bandwidth Quality & Reliability RoHs Compliance Closed Loop Hall Effect Sensors
LM337. Three-terminal adjustable negative voltage regulators. Features. Description
Three-terminal adjustable negative voltage regulators Datasheet - production data current limit, thermal overload protection and safe area protection. All overload protection circuitry remains fully functional
Driving Power MOSFETs in High-Current, Switch Mode Regulators V GS(TH) In equation form: and. I G = Q G /t (transition) where: For example:
N786 Driving Power MOSFETs in High-Current, Switch Mode Regulators uthor: bid Hussain, Microchip Technology, Inc. Q GS Q GD Q G Q OD DRIVING THE MOSFET The low on-resistance and high current carrying capability
.OPERATING SUPPLY VOLTAGE UP TO 46 V
L298 DUAL FULL-BRIDGE DRIVER.OPERATING SUPPLY VOLTAGE UP TO 46 V TOTAL DC CURRENT UP TO 4 A. LOW SATURATION VOLTAGE OVERTEMPERATURE PROTECTION LOGICAL "0" INPUT VOLTAGE UP TO 1.5 V (HIGH NOISE IMMUNITY)
TL082 Wide Bandwidth Dual JFET Input Operational Amplifier
TL082 Wide Bandwidth Dual JFET Input Operational Amplifier General Description These devices are low cost high speed dual JFET input operational amplifiers with an internally trimmed input offset voltage
ADJUSTABLE VOLTAGE AND CURRENT REGULATOR
L200 ADJUSTABLE VOLTAGE AND CURRENT REGULATOR ADJUSTABLE OUTPUT CURRENT UP TO 2 A (GUARANTEED UP TO Tj = 150 C) ADJUSTABLE OUTPUT VOLTAGE DOWN TO 2.85 V INPUT OVERVOLTAGE PROTECTION (UP TO 60 V, 10 ms)
Signal Types and Terminations
Helping Customers Innovate, Improve & Grow Application Note Signal Types and Terminations Introduction., H, LV, Sinewave, Clipped Sinewave, TTL, PECL,,, CML Oscillators and frequency control devices come
MCP1701A. 2 µa Low-Dropout Positive Voltage Regulator. Features. General Description. Applications. Package Types
2 µa Low-Dropout Positive Voltage Regulator Features 2.0 µa Typical Quiescent Current Input Operating Voltage Range up to 10.0V Low-Dropout Voltage (LDO): - 120 mv (typical) @ 100 ma - 380 mv (typical)
Interfacing Pressure Sensors to Microchip s Analog Peripherals V OUT- Silicon Substrate
Interfacing Pressure Sensors to Microchip s Analog Peripherals Author: INTRODUCTION Bonnie Baker Pressure measurement devices can be classified into two groups: those where pressure is the only source
Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff
Supply voltage Supervisor TL77xx Series Author: Eilhard Haseloff Literature Number: SLVAE04 March 1997 i IMPORTANT NOTICE Texas Instruments (TI) reserves the right to make changes to its products or to
TC4420/TC4429. 6A High-Speed MOSFET Drivers. General Description. Features. Applications. Package Types (1)
6A High-Speed MOSFET Drivers Features atch-up Protected: Will Withstand >1.5A Reverse Output Current ogic Input Will Withstand Negative Swing Up To 5V ESD Protected: 4 kv Matched Rise and Fall Times: -
AN884. Driving Capacitive Loads With Op Amps INTRODUCTION LINEAR RESPONSE. Simplified Op Amp AC Model. Overview. Purpose OP AMP MODEL EQUATION 1:
Driving Capacitive Loads With Op Amps AN884 Author: INTRODUCTION Overview Operational amplifiers (op amps) that drive large capacitive loads may produce undesired results. This application note discusses
Hardware Documentation. Data Sheet HAL 202. Hall-Effect Sensor. Edition Sept. 18, 2014 DSH000159_002EN
Hardware Documentation Data Sheet HAL 202 Hall-Effect Sensor Edition Sept. 18, 2014 DSH000159_002EN HAL202 Copyright, Warranty, and Limitation of Liability The information and data contained in this document
Application Note AN-1187
Application Note AN-1187 IR3230 Sensorless BLDC Motor Drive By Alex Lollio Table of Contents Application Note AN-1234... 1 Introduction... 2 Basic Working Principle... 3 Motor Control... 4 Motor Control
L6234. Three phase motor driver. Features. Description
Three phase motor driver Features Supply voltage from 7 to 52 V 5 A peak current R DSon 0.3 Ω typ. value at 25 C Cross conduction protection TTL compatible driver Operating frequency up to 150 khz Thermal
The quadrature signals and the index pulse are accessed through five 0.025 inch square pins located on 0.1 inch centers.
Quick Assembly Two and Three Channel Optical Encoders Technical Data HEDM-550x/560x HEDS-550x/554x HEDS-560x/564x Features Two Channel Quadrature Output with Optional Index Pulse Quick and Easy Assembly
AND8326/D. PCB Design Guidelines for Dual Power Supply Voltage Translators
PCB Design Guidelines for Dual Power Supply Voltage Translators Jim Lepkowski ON Semiconductor Introduction The design of the PCB is an important factor in maximizing the performance of a dual power supply
TC1047/TC1047A. Precision Temperature-to-Voltage Converter. General Description. Applications. Block Diagram. Features.
Precision Temperature-to-Voltage Converter Features Supply Voltage Range: - TC147: 2.7V to 4.4V - TC147A: 2.V to.v Wide Temperature Measurement Range: - -4 o C to +12 o C High Temperature Converter Accuracy:
MH88500. Hybrid Subscriber Line Interface Circuit (SLIC) Preliminary Information. Features. Description. Applications. Ordering Information
Hybrid Subscriber Line Interface Circuit (SLIC) Features Differential to single ended conversion No transformers required Minimum installation space Off-Hook detection and LED indicator drive Relay drive
CMOS, the Ideal Logic Family
CMOS, the Ideal Logic Family INTRODUCTION Let s talk about the characteristics of an ideal logic family. It should dissipate no power, have zero propagation delay, controlled rise and fall times, and have
Features, Value and Benefits of Digital Control for Power Supplies
Author: INTRODUCTION Sagar Khare Microchip Technology Inc. Control of Switch Mode Power Supplies (SMPSs) has traditionally been a purely analog domain. The advent of low-cost, high-performance Digital
Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)
Use and Application of Output Limiting Amplifiers (HFA111, HFA110, HFA11) Application Note November 1996 AN96 Introduction Amplifiers with internal voltage clamps, also known as limiting amplifiers, have
L297 STEPPER MOTOR CONTROLLERS
L297 STEPPER MOTOR CONTROLLERS NORMAL/WAVE DRIVE HALF/FULL STEP MODES CLOCKWISE/ANTICLOCKWISE DIRECTION SWITCHMODE LOAD CURRENT REGULA- TION PROGRAMMABLE LOAD CURRENT FEW EXTERNAL COMPONENTS RESET INPUT
Isolated AC Sine Wave Input 3B42 / 3B43 / 3B44 FEATURES APPLICATIONS PRODUCT OVERVIEW FUNCTIONAL BLOCK DIAGRAM
Isolated AC Sine Wave Input 3B42 / 3B43 / 3B44 FEATURES AC averaging technique used to rectify, amplify, and filter 50 Hz to 400 Hz sine-wave signals. Accepts inputs of between 20 mv to 550 V rms to give
IGBT Protection in AC or BLDC Motor Drives by Toshio Takahashi
International Rectifier 233 Kansas Street, El Segundo, CA 90245 USA IGBT Protection in AC or BLDC Motor Drives by Toshio Takahashi The new IR2137 IGBT Gate Driver IC integrates Ground Fault and Over-Current
AN826. Crystal Oscillator Basics and Crystal Selection for rfpic TM and PICmicro Devices INTRODUCTION OSCILLATOR MODELS. Microchip Technology Inc.
Crystal Oscillator Basics and Crystal Selection for rfpic TM and PICmicro Devices Author: INTRODUCTION Steven Bible Microchip Technology Inc. Oscillators are an important component of radio frequency (RF)
Op Amp Circuit Collection
Op Amp Circuit Collection Note: National Semiconductor recommends replacing 2N2920 and 2N3728 matched pairs with LM394 in all application circuits. Section 1 Basic Circuits Inverting Amplifier Difference
Agilent AEDB-9140 Series Three Channel Optical Incremental Encoder Modules with Codewheel, 100 CPR to 500 CPR Data Sheet
Agilent AEDB-9140 Series Three Channel Optical Incremental Encoder Modules with Codewheel, 100 CPR to 500 CPR Data Sheet Description The AEDB-9140 series are three channel optical incremental encoder modules
High Voltage Current Shunt Monitor AD8212
High Voltage Current Shunt Monitor AD822 FEATURES Adjustable gain High common-mode voltage range 7 V to 65 V typical 7 V to >500 V with external pass transistor Current output Integrated 5 V series regulator
