Professional Documents
Culture Documents
Power Management
Torque
PICmicro®
Speed Input Microcontroller Driver Motor
Direction
Current
Sensor
Feedback
Sensors
* Speed
* Shaft Position
* Rotation Direction
VDC VDC
IA IB IC
IA IB IC VOUT_C
I = IA+ IB + IC VOUT_A VOUT_B
VOUT
RSENSE R SENSE_A
RSENSE_B RSENSE_C
Trace resistance is based on: Example: What is the resistance of the PCB shunt resistor
* Length (L) using the parameters listed below?
* Thickness (t) Given: 1 oz Cu PCB
* Width (w) w = 50 mils (0.050 in)
* Resistivity (ρ) L = 1 inch
I = 5 ampere
* 1 oz. Copper (Cu) is defined to be a layer L / w = number of squares (
)
with 1 oz. of Cu per square foot. = 1 in / 0.050 in
= 20 squares
t ≈ 1.37 mil./oz. Copper R ≈ (L / w) x R
ρ ≈ 0.68 µΩ-inch ≈ (20 squares) x 0.50 mΩ/
≈ 10 mΩ
R
≈ (0.50 mΩ /
) x [(1 oz. Cu) / (# oz. Cu)]
P = I2 x R
= (5A)2 x (0.010Ω)
= 0.25 Watt
RPCB
⇔
L
t
PCB Trace Resistor
w
RSENSE ILOAD
ILOAD
VSENSE Load
VS + +
- Load VS - Measurement VSENSE
Measurement
Circuit
Circuit
RSENSE
VSENSE
RSENSE
RIN RIN R* ILOAD
VS +
- PICmicro® Load
ADC Micro-
VOUT
controller
R* VOUT = VSENSE x (R*/RIN )
= (ILOAD x RSENSE) x (R*/R IN)
Load
+ VSENSE VOUT
VS
- ILOAD PICmicro®
ADC
Microcontroller
RSENSE
R2 VOUT = (VSENSE) x (1 + R 2/R1)
R1
= (ILOAD x RSENSE ) x (1 + R2/R 1)
R2 R4 VOUT
VH-
Load C2 R6 C4
B
RSENSE << R 1 and R2 IC IC
R1 = R2 = RIN* R3 = R4 = R IN
RIN >> RIN* R7 = R5 ll R6 = RF
C1 = C2
C3 >> C1 and C3 >> C2
C4 = C5 = CF VH+
B
Ip
A
3 1 4 2
2 1
Ip Is 3
Ip Is 1
1
A +
+
Np Ns VOUT Rt Np Ns VOUT Rt
-
- 2
B
2 4
Single-Turn Primary Is = Ip / N where N = turns ratio Multi-Turn Primary
VOUT = Is x Rt
VDC
PWM5
A
PWM4
PWM1
PWM0
C B
VDC
BEMFA
VREF_A
VDC
BEMFB
VREF_B
VDC
BEMFC
VREF_C
BACK EMF
ZERO-CROSSING
COMPARATOR CIRCUITS
From
VPULL-UP
Motor Windings
VOUT
VM R3
RPULL-UP VOH
R1A VDD
VIN
VOUT
VDD
R2 VOL
R1B VREF
R4 VIN
VTL VTH
Hysteresis Plot
Assume: VOH = VDD, VOL = 0, R3 >> R1 and R3 >> R PULL-UP
R 1B
V IN = --------------------------
- × V M R 1 = R 1A || R 1B
R + R Design Procedure:
1A 1B
R4 1. Select VREF, the “zero-crossing” voltage
V RE F = V DD × -------------------- -
R + R 2. Select VHYS to be equal to 10 to 100 mV
2 4
( R 1 + R 3 )V REF – ( R 1 × V DD ) 3. Select R3 >> R1
V TL ≅ ----------------------------------------------------------------------
-
R3
( R 1 + R 3 )V REF
V TH ≅ ------------------------------------
-
R3
V HYS = V TH – V TL
R
V HYS ≅ -----1- × V DD Note: RPULL-UP is required for open drain outputs,
R but is not required for push-pull output comparators.
3
Design Procedure:
Assume: VOH = VDD, VOL = 0, R3 >> R1 ll R2 and R3 >>RPULL-UP
1. Select VREF, the “zero-crossing” voltage
R 1B
V IN = --------------------------
- × V M R 1 = R 1A || R 1B 2. Select VHYS to be equal to 10 to 100 mV
R + R
1A 1B 3. Select R3 >> R1 ll R2
R1
V REF ≅ V DD × ------------------
R + R
1 2
R1
V TL ≅ ------------------ × VD D
R + R
1 2
R1 ( R 1 || R 2 ) × V DD
V TH ≅ ------------------ × V DD + ---------------------------------------
-
R + R R
1 2 3
V H YS = V TH – V TL
Note: RPULL-UP is required for open drain outputs,
( R 1 || R 2 ) × V DD
V H YS ≅ ---------------------------------------
- but is not required for push-pull output
R3 comparators.
C3
R3
High Frequency Pole @ fp = 1 / (2π R3 C3)
VDD
R1 Z3 = R3 ll C 3
VIN = R3 / (sR3C3 +1) where s = jω = j2πf
VOUT
VDD
R2 VHYS ≅ [(R1 / Z 3) x VDD]
VREF ≅ [(R1 x (sR3C3 +1)) / R3)] x VDD
R4
VDD
Channel A
Quadrature
Encoder 0V
VDD
Channel A Motor Channel B
Channel B 0V
Index
VDD
Codewheel
Photodiode
Channel A
Signal
LED Lens Processing Channel B
Circuitry
Index
Ground
Simplified Block Diagram of a Quadrature Encoder
Magnet
Hall Effect
Sensor
• 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.