• No results found

VOLTAGE-TO-FREQUENCY CONVERTER

N/A
N/A
Protected

Academic year: 2021

Share "VOLTAGE-TO-FREQUENCY CONVERTER"

Copied!
8
0
0

Loading.... (view fulltext now)

Full text

(1)

VOLTAGE-TO-FREQUENCY CONVERTER

Internal circuit of LM331 IC S R Q Q

+

+

+

VOLTAGE REFERENCE +Vcc +Vi n +Vcc +Vcc +Vcc Fout

LM331

Q1 Q2 Q3 Q4 Q5 Q6 1 2 3 15 R 2R R1 R1 1,89V RS RL CL RT CT RP VOLT COMP VOLT COMP OP AMP CURRENT MIRROR

ONE SHOT TIMER

2 1 6 7 8 5 4 3 RB IS IS

In direct transmission of an analog signal (below), VAN will be more easily corrupted by noise.

IN TERFA C E TEM PERA T URE

SEN SO R

V

AN SIGN A L

+

N O ISE SIGN A L

FILT ER

V

AN

By converting VAN to a large signal whose frequency is proportional to VAN, the transmission of the signal

becomes much less corruptible by external noise.

TEM PERA T URE SEN SO R IN TERFA C E V to F CO N V ERTER FIL T ER -LEV EL DECTECTO R F to V CO N V ERTER

V

AN

V

AN SIG N A L

+

N O ISE SIGN A L

(2)

Timing Diagram V in VCL=V6 I1 VCT=V5 IS 0 0 0 2/3 V cc FIXED PW VARIABLE SW 1,1CTRT Tout -1,1CTRT V ave m+= I s-(Vave/RL) C L m- = Vave RL CLVCL initial transient charging C L from 0 to V in+∆VL V out V cc 0 m+= I s CL V cc SET RESET RIPPLE VOLTAGE

The DC current, or average current, through capacitor CL is 0A once the VCL waveform has settled.

I

SW (ave )

= I

RL( ave)

+ I

CL(ave)

PW

T

× I

S

=

V

in

+

0, 5

∆V

C L

R

L

+ 0 ≈

V

in

R

L

if V

in

〉〉 ∆V

CL L R ISW TIMER IS i n V L C 0 A ave

F

out

=

1

T

out

V

in

I

S

R

L

× PW

=

V

in

× R

S

V

ref

R

L

× Ln(3) × R

T

C

T

=

V

in

× R

S

2,09

× R

L

× R

T

C

T

∆V

L

= PW × m

+

= PW ×

I

S

−V

in

R

L

C

L

 = SW × m

= T − PW

(

)

×

V

in

R

L

C

L

(3)

NOTE: To obtain good linearity at low values of Vin, the ripple voltage ∆VL must be very small which means that

the time constant RLCL must be very large and this makes the converter very slow to react to changes of Vin.

When ripple is very small, the frequency of the V to F depends on a very small signal easily corruptible with noise or spurious signals which may result in an erratic O/P frequency.

For small values of Vin, the equation derived for Fout is not accurate because ripple must be factored in and Fout becomes a non-linear function of Vin.

Basic V-F Converter L M 3 3 1 in thr Ire Isw RC out Vcc gnd 8 4 1 5 3 7 6 2 Vi n Vcc Fout RT CT RL CL RS RBAL Cin RP RHYS CBY L M 3 3 1 in thr Ire Isw RC out Vcc gnd 8 4 1 5 3 7 6 2 Vi n Fout 0 , 1 µ F 0 , 1 µ F 0 , 0 1 µ F +1 5 V 6 , 8 K 1 0 K 1 0 0 K 4 7 1 µ F 1 2 K 5 K 1 0 0 K 1 0 Hz t o 1 0 kHz +1 0 mV t o +1 0 V Fmax adj ust From

F

out

=

V

in

× RS

2,09

× RL

× R

T

C

T we find that Rs = 14212 will produce a 10 kHz full scale output given the

standard values on the diagram. The 5k pot will have to be adjusted to some other value because of component tolerance.

PW = 1,1 RTCT = 1,1*6800*0,01µ = 74,8 µs fixed Is = 1,89V/14212Ω = 133 µA

For F = 10 Hz to 10 kHz, duty Cycle = 74,8µ/(0,1 to 100µ) * 100 = 0,0748% to 74,8%

NOTE: PW and duty cycle refer to the switched current source Isw(pin#1). The duty cycle of the output waveform

is inverted, that is D/Cout = 99,925% to 25,2%. Vo+ ≈ +15V and Vo- ≈ 0V

Ripple Voltage

∆V

L

= PW × m

+

= PW ×

I

C

C

L

= 74,8µ ×

133

µ − 10m → 10

(

)

100k

1

µ

= 9,94m → 2,47mV

pp

NOTE: Those small ripple values make the V to F vulnerable to noise and unreliable operation may result.

At 10 Hz the discharge of CL is not linear (it is exponential) because RLCL = 0,1s = T ≈ SW.

The speed of the V-F converter is determine by the time constant RLCL. For the above circuit, the rise time of Vthr

is : tr = 0,35/(Fc) = 0,35* 2π*RLCL = 0,22s which is rather slow.

For a faster response of Vthr (and Fout) RLCL should be made smaller but this will entail more ripple voltage

across CL and therefore less accuracy at low Vin and Fout values.

Hysteresis

The amount of hysteresis of the input comparator, for clean and faster switching (no crossover oscillations), is ∆VHYS = IsRHYS = 133µ * 47 = 6,25 mV - this will impair low Vin operation.

(4)

Choice of RinCin

The input RC low-pass filter produces a cutoff frequency of Fc = (2π*100k*0,1µ)-1 = 15,9 Hz.

It is used to filter down any HF noise that contaminates the DC input voltage. If the input DC voltage is changed abruptly to a new value, the LM331 input (Vin at pin 7) will settle to its new value in about 5RinCin=5*100K*0,1µ =

50 ms. Therefore the response time of the output frequency will the compounded value of tr of Vin + tr of Vthr.

Choice of RTCT

Maximum duty cycle (PW/T)*100 = 1,1 RTCT * Fmax < 95% and should leave enough time for the internal circuit to

reset when SW = T-PW becomes very small. PW should not be too small either.

Choice of RLCL

Select RLCL for desired maximum ripple

∆V

L

= PW ×

I

S

− V

in

R

L

C

L

 = T − PW

(

)

×

V

in

R

L

C

L

and for desired rise time of Vthr : tr = 0,35*2π*RLCL

Waveforms showing effect of hysteresis provided by RHYS on V6 waveform. When Vin is detected by

the comparator, V6 pulls up abruptly to prevent oscillations (chattering) at the internal comparator output.

∆VCL VRHYS V6 Vin HYST IMPROVED V to F CONVERTER L M 3 3 1 in thr Ire Isw RC out Vcc gnd 8 4 1 5 3 7 6 2 A1 +1 5 V I NTEGRATOR V t o F CONVERTER Vo1 I sw I s 0 A av e RE CF Rp RT CT Rs Ps Fout Vin1 IE -ve

(5)

The above converter has a very linear V to F characteristic because its output frequency is totally independant of the ripple voltage present at Vin (pin 7) of the LM331. For fast and reliable operation of the V to F converter, CF

can be made very small in order to get subtantial ripple - 1Vpp recommended

Converter equations

I

SW

= I

S

×

PW T

= I

E

+ I

CFave

= I

E

= −

V

in

R

E

I

S

×

PW T

=

−V

in

R

E

V

ref

R

S

+ P

S

× Ln(3) × RT

C

T

× F

out

=

−V

in

R

E

F

out

=

1

T

=

−V

in

× R

(

S

+ P

S

)

V

ref

R

E

× Ln(3) × R

T

C

T

=

−V

in

× R

(

S

+ P

S

)

R

E

× 1.89 ×1.1 × R

T

C

T

∆V

in

=

I

E

C

F

× T − PW

(

)

=

I

sw

− I

E

(

)

C

F

× PW

The basic waveforms are shown below.

V

thr

V

thr

- 0,5

V

in

V

in

V

in

I

sw

Vout

0A

0V

15V

I

S

m+= I

E

/C

F

m- = -(I sw -I

E

)/C

F

PW = R

T

C

T

Ln(3)

The output frequency can be made to respond very rapidly to an abrupt change in Vin by selecting a small value

(6)

BASIC F TO V CONVERTER L M 3 3 1 in thr Ire Isw RC out Vcc gnd 8 4 1 5 3 7 6 2 + Vi n +1 5 V 6 , 8 K 1 2 K 5 K 1 0 Hz t o 1 0 kHz +1 0 mV t o +1 0 V 0 , 1 µ F Vmax adj ust 0 , 0 1 µ F 1 0 k 1 0 k 1 0 k 1 5 k 4 7 0 pF 3 k 1 0 0 k 1 0 0 k 0 , 1 µ F 0 , 1 µ F Vout IC SUPPLY BY- PA SS CA P DC OUTPUT

V

in

V

in(IC)

SET

V

CT

RESET

I

SW

V

C1

V

C2

V

THR 0V +5V +9V +7,5V +12,5V +2,5V +10V 0V 0A

V

REF

R

S

PW

SET

PW

T

V

OUT (DC)

(7)

The DC output voltage is :

V

out (ave)

= ISW (ave )

× RL

= IS

PW Tin

( )

× RL

=

V

ref

R

S

×

1, 1

R

T

C

T

F

in

× RL

=

2,09

× RT

C

T

F

in

× RL

R

S

The output ripple voltage is given by - see appendix for derivation:

∆V

out (pp )

=

I

S

R

L

8

×

PW

R

L

C

L

2

×

1

F

× PW

−1

for F

>

(10

π

RLCL)-1 The output filter has the following TF:

F(S)

=

1

R

2

C

2

S

2

+ 3RCS +1

=

R

2

C

2

(

)

−1

S

2

+

3

RC

S

+

1

R

2

C

2

=

R

2

C

2

(

)

−1

S

+

0,382

RC

 ×

S

+

2,618

RC

The above TF allows us to determine the rise and fall times of Vout in response to an input frequency jump. The approximate value can be determined from the first cutoff frequency:

t

r

= t

f

0.35

F

C1

=

0.35

0.382

2

π RC

= 5.757 × RC

The internal latch SET pulsewidth (PWset) must be less than the current pulsewidth PWT = 1,1 RTCT , otherwise

the circuit will not work properly. PWset is determined by the input coupling capacitor and the input resistance

10K 10K

.

PW

SET

= R

in

C

in

× Ln

V

1

− V

F

V

2

− VF

 = 5K × 470 p × Ln

12.5

9

− 7.5

− 7.5

 =

2.83

µs

PW

T

= 1,1 × RT

C

T

=1,1 × 6.8K × 0.01µ = 74.8 µs

NOTE: PWset = 2.83 µs may not be long enough to set the internal RS latch - minimum time not specified.

NOTE: If the input square wave has a large amplitude, the protection diodes will turn on and the exponential

pulses at the junction of the two 10K resistors will have two time constants, that is:

10K 10K

+ 3K

(

)

× 470 p

when one of the diodes is ON (

10K 10K

) x 470p when the diodes are OFF.

(8)

APPENDIX 1 Derivation Of Output Ripple Voltage R1 C1 R 2 C2

I

SW R1 C1 R 2 C2

V

C1

V

C2

V

C1

V

C2

N O RTO N

THEVENIN

V

T H

I

SW

R

1

V

T H

V

C 1

V

C 2 0V

PW

T

V

O U T(D C )

V

O U T(D C )

I

SW

R

1

∆V

C1(PP)

=

1

R

1

C

1

V

TH ( AC)

dt

t1 t2

=

R

1

1

C

1

× PW × I

(

S

R

1

− V

ave

)

=

1

R

1

C

1

× PW × I

(

S

R

1

− I

S

R

1

( )

PWT

)

∆V

C1(PP)

=

1

R

1

C

1

× PW × I

S

R

1

1

PW T

( )

(

)

=

1

R

1

C

1

× PW

2

× I

S

R

1

( )

PW1 −1T

∆V

C2(PP)

=

1

R

2

C

2

V

C1(AC )

dt

t1 t2

=

1

R

1

C

1

×

1 2

× ∆V

C1( PP)

×

T 2

×

1 2

(

)

=

1

R

1

C

1

× ∆V

C1(PP)

×

T 8

(

)

∆V

C2(PP)

=

1

R

1

C

1

×

T

8

×

1

R

1

C

1

× PW

2

× I

S

R

1

( )

PW1 −T1

 =

I

S

R

1

8

×

PW

R

1

C

1

2

×

PW

T

−1

NOTE: R1C1 = R2C2

References

Related documents

This study, comparing novice and expert ship officers’ use of electronic navigation aids, proves that at a given task in a simulation scenario eye tracking provides the data

proved that the CP-ABE scheme in [17] is fully secure in the standard model and fully collusion-resistant blackbox traceable in the standard model, where fully collusion-

Females rated four of the six motivational factors (‘exploration’, ‘escape/relaxation’, ‘social relationship with family/friends’ and ‘appreciating famous

Federal Safe Routes to School funds are educating children on safe bicycle and pedestrian practices, increasing traffic enforcement to improve adherence to traffic laws and

Claims turned down for an award through the Admiralty Prize Fund. Whilst the prize journal only lists the cases where the Admiralty paid into the prize fund, leading us to the 93

The relationship between physical fitness and bone mass in the femoral neck, lumbar spine, and forearm was studied in 84 normal women.. Femoral neck and lumbar

Although clinical cross-reactivity between nuts may be dif- ficult to establish, the possibility of exhibiting symptoms of food allergy to multiple nuts plays an important