Académique Documents
Professionnel Documents
Culture Documents
C C
1 2
RC Op-Amp
Oscillator Comparator
Temperature
Sensor PICmicro
Algorithm: Microcontroller
Count the number of clock pulses in a time window set by oscillator pulses.
Clock
Signal
Oscillator
Signal
+ V OUT A A A A
VIN A Amplifier Gain VOUT T ( s ) = ---------------- = ---------------- = ----------------- = ------ = ------------
V 1 A 1 LG s N(s)
IN -----------
D(s)
+
where: A x = LG loop gain
s characteristic equation
Feedback Factor
If VIN = 0, then T(s) = when s = 0
VDD
R6
VDD/2
R7
C4
C1
C2
R1 R4
A1 R2 R9
A2 R3
A3 R8
V1 A4
VDD /2
VDD/2 V2 V0
VDD/2 V3
VDD /2
1 - R 4 1
A 2 = ---------------- A
3
= ------ --------------------------
sR C R 3 sR 4 C 4 + 1
2 2
V1 V3
V2
1 -
A 1 = ----------------
sR 1 C 1
If:
A 1 = 1 ( sR 1 C 1 ) 1. R1 = R2 = R
A 2 = 1 ( sR 2 C 2 )
2. C1 = C2 = C
A3 = Z 4 Z3
3. R3 = R4
= ( R 4 || C 4 ) R 3
Then:
= [ ( R 4 R 3 ) ( 1 ( sR 4 C 4 + 1 ) ) ] P = 2RC
LG = A A A
1 2 3
= [ 1 ( sR C ) ] [ 1 ( sR C ) ] [ ( R R ) ( 1 ( sR C + 1 ) ) ]
STEP 3: SUB-CIRCUIT DESIGN EQUATIONS
1 1 2 2 4 3 4 4
3 2
= R s R R R R C C C C +s R R R C C
Integrator A1
4 1 2 3 4 1 2 3 4 1 2 3 1 2
Gain A 1 = 1 ( 2fR 1 C 1 )
Pole f p1 = 1 ( 2R 1 C 1 )
s = N ( s ) D ( s ) = 1 LG
3 2 Integrator A2
= 1 [ R 4 ( s R 1 R 2 R 3 R 4 C 1 C 2 C 4 + s R 1 R 2 R 3 C 1 C 2 ) ] Gain A 2 = 1 ( 2fR 2 C 2 )
3 2
[ s R 1 R2 R3 R4 C1 C2 C 4 + s R1 R2 R3 C1 C2 + R4 ] Pole f p2 = 1 ( 2R 2 C 2 )
= -----------------------------------------------------------------------------------------------------------------
3 2
-
[ s R1 R2 R3 R4 C 1C 2C 4 + s R1 R2 R3 C 1C 2 ]
Integrator A3
3 2
Gain = [ ( R 4 R 3 ) ( 1 ( sR 4 C 4 + 1 ) ) ]
N (s ) = s R1 R2 R3 R4 C 1C 2C 4 + s R1 R2 R3 C 1C 2 + R 4 Gain R 4 R 3
R1 = R2 = R 6 = R 7 = 32.7 k
R3 = R4 = 10 k
R8 = 1 k
R9 = 1 M
C1 = C2 = see Table 1
C4 = 18 pF
VDD = 5.0V
A1, A2, A3 MCP6024 (quad RRIO,
GBW = 10 MHZ)
A4 MCP6541Push-Pull Output
Comparator
Output of A3 Amplifier (V 3)
VDD /2
VDD
Q1 C4 R6
C1 C3
C2 VDD /2
R1 R4
A1 R2 R7
A2 R3 R5
A3
VDD/2 V1
VDD/2 V2 VDD/2 V3
R9
R8
A4
VDD/2
1
- R ( sR C + 1 )
4 5 3
A 2 = ----------------- A = ---------------------------------------------------------------------------------------
sR C 3 ( sR 3 C 5 C 3 + R 3 + R 5 ) ( sR 4 C 4 + 1 )
2 2
V1 V3
V2
1 -
A 1 = ----------------
sR 1 C 1
0 Frequency (Hz)
1 F 1 -
= --------------------
F p1 = --------------------- p2 2 R 3C 3
R4 2R C
20log -------------------- 4 4
10 R + R
3 5
Design Equations
STEP 1: FIND LG AND S
A A A
T ( s ) = ----------------- = ------ = ------------
1 LG s N(s)
-----------
D(s)
A1 A2 A3
V1 V2 V3
A 1 = 1 ( sR 1 C 1 )
A 2 = 1 ( sR 2 C 2 )
A 3 = Z4 Z 3
= [ ( R 4 || C 4 ) ( R 3 + ( R 5 || C 3 ) ) ]
= [ R 4 ( sR 5 C 3 + 1 ) ( sR 3 R 5 C 3 + R 3 + R 5 ) ( sR 4 C 4 + 1 ) ]
LG = A1 x A 2 x A 3:
[ R 4 ( sR 5 C 3 + 1 ) ]
LG = [ 1 ( sR 1 C 1 ) ] [ 1 ( sR 2 C 2 ) ] ----------------------------------------------------------------------------------
( sR 3 R 5 C 3 + R 3 + R 5 ) ( sR 4 C 4 + 1 )
4 3 2
= ( sR 4 R5 C3 + R 4 ) s R1 R 2 R 3 R 4 C1 C2 C 3 C 4 + s ( ( R 1 R 2 C1 C 2 ) ( R 3 R 5 C 3 + R 3 R 4 C 4 + R4 R5 C 4 ) ) + s ( R1 R2 C 1 C 2 ) ( R3 + R5 )
s 4 R R R R R C C C C + s 3 ( R R C C ) ( R R C + R R C + R R C ) + s 2 ( R R C C ) ( R + R ) + sR R C + R
1 2 3 4 5 1 2 3 4 1 2 1 2 3 5 3 3 4 4 4 5 4 1 2 1 2 3 5 4 5 3 4
s = -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
s 4 R R R R R C C C C + s 3 ( ( R R C C ) ( R R C + R R C + R R C )) + s 2 ( R R C C ) ( R + R )
1 2 3 4 5 1 2 3 4 1 2 1 2 3 5 3 3 4 4 4 5 4 1 2 1 2 3 5
1
---------------------
- V 1 V Max_Limit
2 fR C
2 2
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 microchips 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.
05/30/03