PULSE ADDING AND SUBTRACTING CIRCUIT CONTROLLED BY DIGITAL DATA

Abstract: A circuit for changing the frequency of a pulse train (10) in response to a change in the average value of an applied digital signal (18) applies the signal to be changed to a pulse subtractor (12). Application of a predetermined number of digital data signals of one sign causes the periodic subtraction of a pulse at the subtractor (12), thus reducing the average frequency at the output from the pulse subtractor (12). The signal at the output from the subtractor is applied to a pulse adder (14) which adds a pulse to the subtracted pulse train in response to a predetermined number of data pulses of the opposite sign. The output pulse train (16) is thus varied in frequency in response to variation in the average value of the digital data input. The order of addition and subtraction may be reversed.

Description: PULSEADDINGANDSUBTRACTINGCIRCUITCONTROLLEDBYDIGITALDATA This invention relates to phase-locked loops. Radio transceivers gain flexibility at reduced cost by the use of synthesizers as sources of the radio-frequency signals for transmission and for receiving. Such a circuit allows the use of a single frequency-determining element to enable a selection of many channels. This represents a significant saving over the use of multiple crystals, one for each channel that is to be used. When a synthesizer is used in the typical installation for land mobile or fixed station radio communication, using voice signals, a phase-locked loop may be used to generate a frequency that is deviated at an audio rate to produce a modulated signal. When the modulating signal is voice, there is no problem in controlling the deviation of the phase-locked loop and thus the synthesized frequency. When the modulating signal is voice which has a zero average value, the resultant deviation of the synthesizer output frequency around the carrier frequency is a very close representation of the modulating signal. The situation changes, however, when it is desired to use frequency-shift keying to send digital data in a circuit that uses a synthesizer. There is a significant probability that the data will have a non-zero average value. In other words, the data may have a DC components The operation of a synthesizer is such that it will not maintain the DC component of a signal, but will ' cause the average value (the DC component) of the signal to approach asymptotically the at-rest carrier frequency. The long-term effect of this action is to generate unequal frequency deviation of the,signal around the carrier value. It is an object of the present invention to provide a means for varying the frequency of a pulse train in response to the sign of a data signal. It is a further object of the present invention to change the average frequency of a train of pulses in conformity with a change in the average value of a digital signal. Other objects will become apparent in the course of a detailed description of the invention. A circuit for changing the frequency of a pulse train in response to a change in the average value of an applied digital signal applies the signal to be changed to a pulse subtractor. Application of a predetermined number of digital data signals of one sign causes the periodic subtraction of the pulse at the subtractor, thus -reducing the average frequency at the output from the pulse subtractor. The signal at the output from the subtractor is applied to a pulse adder which adds a pulse to the subtracted pulse trained in response to a predetermined number of data pulses of the opposite sign. The output pulse train is thus varied in frequency in response to variation in the average value of the digital data input. The order of addition and subtraction may be reversed, and one of the functions can be performed in the feedback loop of a frequency synthesizer. Fig. 1 is a block diagram of a circuit for the practice of the invention. Fig. 2 is a detailed circuit diagram of the circuit of Fig. 1. Fig. 1 is a block diagram of a circuit for the practice of the invention. In Fig. 1, a fixed reference AC voltage is applied at terminal 10 to a pulse subtractor 12. The frequency at terminal 10 is supplied by a precision frequency source such as a crystal oscillator. The output of subtractor 12 is connected to a pulse adder 14 which produces an output at terminal 16 at a frequency which is adjusted with respect to the input frequency at terminal 10. The adjustment is a function of digital data in binary form that is applied at terminal 18. The data from terminal 18 is applied as one input to AND gate 20 and also as an input to inverter 22. The output of inverter 22 is taken as one input to AND gate 24. A second input to AND gates 20 and 24 is supplied by oscillator 26. The output of AND gate 20 is divided by a constant K in divider 28, and the divided result is taken to control subtractor 12 to subtract pulses from the input at terminal 10. The output of AND gate 24 is taken to divider 30 where it is divided by a constant, here taken as the same K, and applied to control pulse adder 14 to add pulses to the input signal at terminal 10. The purpose of the circuit of Fig. 1 is to subtract a predetermined number of pulses from the referenced signal at terminal 10 for each predetermined number of bits of one sign applied at terminal 18 and to add a number of pulses, here the same number, to the signal applied at reference 10 for each predetermined number of bits of the opposite sign applied at terminal 18. The operation of the circuit of Fig. 1 can be understood by considering first the range of frequencies involved. The data applied at terminal 18 are typically binary signals at a base frequency of the order of hundreds of Hz. The signal applied at reference 10 is the fixed reference frequency for a synthesizer which is typically at a frequency of the order of MHz or tens of MHz. The frequency of oscillator 26 is selected in conjunction with the divider constant K of dividers 28 and 30 to add or subtract a predetermined number of pulses from the signal applied at terminal 10 for each binary digit or predetermined number of binary digits applied at terminal 18. Details of the selection will become apparent in a consideration of the actual circuits involved. However, it should be evident from an inspection of Fig. 1 that if it is desired to make one correction for each data bit applied at terminal 18, then the frequency of oscillator 26 should be chosen equal to the product of the data frequency at terminal 18 and the dividing constant K of dividers 28 and 30. If it is desired to make two corrections per data cycle, then the frequency of oscillator 26 should be twice the product of the frequency of data applied at terminal 18 and the constant K of dividers 28 and 30. In the representation of Fig. 1, the division constants of dividers 28 and 30 are in a rate of 2:1. This will be seen to cause the same number of pulses to be subtracted from the reference frequency for a data bit of one sign as are added for a data bit of the other sign. In the application for which the circuit of the present invention was developed, it was desired to shift the output of the circuit for an amount that was proportional to the shift in the average value of the data input. It is equally possible to vary the shift in the two directions by making the next dividing constants unequal. This is a matter of design choice. Fig. 2 is a circuit diagram of a circuit for the practice of the present invention. In Fig. 2, elements that correspond to those of Fig. 1 are given corresponding numbers. Thus, in Fig. 2, terminal 10 receives a properly buffered signal at 14.4 MHz from a source such as a crystal-controlled oscillator. That signal is squared as necessary to form a pulse train and is applied to subtractor 12, which includes a blocking capacitor 36 that is coupled to a programmable divider 38. The programmable divider 38 is capable of dividing by either three or four under external control. When programmable divider 38 divides by three, it produces a signal at 4.8 MHz that will be seen to be the nominal output frequency at terminal 16. It is intended to take this signal as the reference• frequency source for a synthesizer in an FM transceiver. If the frequency to be generated by the synthesizer is modulated with voice or data having no DC components, there would be no reason to cause any change in the frequency of the 4.8-MHz reference signal. However, if the presence of data with a non-zero average value makes it desirable to reduce the frequency applied to the synthesizer, then programmable divider 38 is caused from time to time to divide by four instead of three. This produces an output from programmable divider 38 that is a pulse train at a mixture of frequencies of 4.8 MHz and 3.6 MHz. The average value of this mixture will be some number less than 4.8 MHz, the amount depending upon the percentage of the time the programmable divider has been caused to divide by four instead of three. The output of programmable divider 38 is taken to buffer 40 from which it is applied to adder 14. It is evident that the result of causing programmable divider 38 to divide occasionally by four instead of three has had the effect of subtracting amounts from the frequency of the input signal at terminal 10, achieving the purpose of subtractor 12. Control of subtractor 12 and of adder 14, to which it is connected, is accomplished in Fig. 2 by taking the signal at 14.4 MHz from terminal 10 to serve when modified as oscillator 26. Thus, the signal from terminal 10 is divided by two in divider 42 which is coupled to terminal 10, and the output of divider 42 is divided again by 32 in divider 44. This produces an output at 225 KHz which is the output of oscillator 26 of Fig. 1. This output is" taken as an input to AND gates 20 and 24 of Fig. 2. Data bits applied at terminal 18 are taken through a resistor 44 as a second input to AND gate 20 and through inverter 22 as the second input to AND gate 24. Inverter 22 as shown here was actually a NAND gate with both inputs taken from terminal 18. With a bit rate of the order of 150 hertz applied at the terminal 18, it can be seen that a bit of one sign will enable AND gate 20, passing pulses at a frequency of 225 KHz to divider 28. This is set to divide by 8192. The result is to produce pulses at 27.47 Hz which are taken to subtractor 12. There they are applied both directly and through a low-pass filter 46 to an EXCLUSIVE-OR (EO) gate 48. The output of EO gate 48 is taken through resistor 50, filtered in low-pass filter 52, and taken through blocking capacitor 54. There it is applied both directly and through a resistive network 56 to programmable divider 38. An RF choke 57 completes the connection of external elements at programmable divider 38. The result is that whenever AND gate 20 is enabled, divider 28 begins to accumulate a count. Suppose first that it is a binary "1" that enables AND gate 20 and that a steady stream of 1's is applied at terminal 18. Divider 28 will produce pulses at 27.47 Hz which are shaped into narrow pulses of the same frequency by the combination of low-pass filter 46 and EO gate 48. Programmable divider 38 will thus be caused to change its dividing ratio at a rate of 27.47 Hz. This represents the maximum rate at which the circuit of Fig. 2 will cause programmable divider 38 to shift to divide by four and hence will caus the maximum possible amount of € subtraction and the lowest average values of the output frequency. Suppose now that a single bit from the same bit stream is applied at terminal 18. This will gate 1500 pulses of the output of divider 44 into divider 28. Since the 1500 pulses are fewer in number than the 8192 divide ratio of divider 28, that count will be accumulated. Divider 28 will produce no output until it has had a total of approximately six such pulses (actually, 8192/1500 = 5.46). This accumulation of counts in divider 28 reduces the amount of switching of programmable divider 38. If it becomes desirable to increase the frequency at terminal 16 above that of the output of subtractor 12, then adder 14 is caused to operate. Adder 14 comprises a D flip-flop 58 which is clocked by the signal at 14.4 MHz that was applied at terminal 10. The output of subtractor 12, which is an AC signal at an average frequency that is less than or equal to 4.8 MHz, is taken as the input to flip-flop 58 and also as one input to EO gate 60. The output of D flip-flop 58 is used to clock D flip-flop 62 which receives as an input the output signal from divider 30. Divider 30 divides by 16,384 to produce a signal that would be at 13.73 Hz if AND gate 24 were held on by a continuous signal to inverter 22. To follow the operation of adder 14, suppose that a signal containing all zeroes is supplied at terminal 18. This will cause inverter 22. to apply a signal at AND gate 24 while AND gate 20 is cut off. AND gate 24 will thus apply pulses at 225 KHz to divider 30, which produces output pulses at 13.73 Hz. This input to D flip-flop 62 will produce extra pulses at the output of D flip-flop 62 that cause EO gate 60 to produce extra pulses in the output from adder 12. The effect is to add pulses so that the output of EO gate 60 is at a higher frequency than the output of subtractor 12. For this reason, it is appropriate to refer to adder 14 as an adder. The circuit of Fig. 2 has as its objective the generation of an AC signal at terminal 16 that is caused to vary in frequency about the center value of 4.8 MHz as a function of the average value of the data. The values chosen for the elements of Fig. 2 were selected to provide a particular desired amount of frequency variaton and response time. If it is desired to make the frequency change faster at terminal 16 in response to changes in the average value of data applied at terminal 18, this could be accomplished by reducing the divide ratios of any or all of dividers 42, 44, 28 and 30. For example, replacing divider 42 with a short circuit, removing a division by 2, would cause frequency changes to be made twice as often. The corner frequency of filter 46 determines the pulse width that EO 48 will generate. The width of this pulse is chosen to meet the input requirements of programmable divider 38. The circuit of Fig. 2 shows that, for equal excursions in the average value of the output, frequency dividers 30 and 28 were in a ratio of two to one. If it is desired to correct the frequency differently for bits of different sign, then the ratios of these two dividers with respect to one another could be changed correspondingly. It should also be evident that if the circuit of Fig. 2 is used in an FM transmitter that is used for both data and voice, it would be desirable to keep programmable divider set continually on divide by three and thus disable dividers 28 and 30 during voice transmission. Under this circumstance, adder 12 would not add, subtractor 14 would not subtract and the circuit would comprise blocking capacitor 36, programmable divider 38, set to divide by 3, buffer 40 and EO gate 60. The circuit of Fig. 2 is most useful when it is applied as a source of a reference frequency for a " synthesizer in a radio transmitter or receiver. Such a circuit is shown in Fig. 2 in a configuration that also includes an alternate embodiment of the present invention. The output of terminal 16 in Fig. 2 is taken to a reference divider 64 which divides the reference frequency at terminal 16 by an integer that is chosen to relate the output frequency of the reference divider 64 to the channel separation that is desired in the output frequency of the synthesizer. Typical band spacings for channels in various land-mobile bands are 20, 25, and 30Khz. An appropriately chosen one of these values would be selected for the output of reference divider 64 if the output of the synthesizer of Fig. 2 were used directly to set the frequency of transmission or of a local oscillator for a receiver. If the output of the synthesizer is to be multiplied by a constant to achieve the desired final frequency, then the desired band spacing must be divided by that same constant to achieve the desired output of reference divider 64. A later example will make this clear. The output of reference divider 64 is taken to a phase detector 66 which produces an output that is taken to low-pass filter 68. The filtered output from low-pass filter 68 is taken to summer 70 where it is combined either with a data modulating signal from terminal 18 or with a voice modulating signal from terminal 72. The output of summer 70 controls voltage-controlled-oscilla- tor (VCO) 74 which generates the desired output frequency at terminal 76. The output of VCO 74 is also taken through pulse adder 78 to divider 80 where it generates a feedback signal that is taken to phase detector 66 to close the loop of the synthesizer. Pulse adder 78 is part of an alternate embodiment of the present invention in that it is possible to replace the subtraction function that is accomplished by programmable divider 38 by the addition of pulses in adder 78. In this case programmable divider 38 can be replaced with a fixed divider or can be left as is and caused to divide only by 3. Pulse adder 14 of Fig. 2 continues to add pulses in response to data bits of one sign and a pulse adder like that of Fig. 14 is used as pulse adder 78. It should be evident that adding pulses in the feedback loop of the synthesizer of Fig. 2 is equivalent to subtracting pulses in subtractor 12 of Fig. 2. This follows because the effect of phase detector 66 in the loop is to cause changes in the output frequency of VCO 74 that tend to reduce the difference in phase between the output signals of reference divider 64 and divider 80. It follows that to add in the loop that contains divider 80 is equivalent to subtracting in the circuit that supplies reference divider 64. The circuit of Fig. 2 without pulse adder 78 has been built and used in a synthesized radio transmitter operating at a frequency of the order of 900 MHz. This was accomplished by multiplying the output signal from VCO 74 by 6. The reference frequency supplied at terminal 10 was 14.4 MHz and the frequency of the data applied at terminal 18 was approximately 150Hz. The digital signal applied at terminal 18 was at a level of zero volts for a binary "0" and five volts for a binary "1". This will be referred to as the signal of the first polarity. Its inverse, zero volts for a binary "1" and five volts, for a binary "0" is the signal of the second polarity. These are matters of design choice. Appropriate frequencies in the circuit are summarized in the Table which lists the elements of Fig. 2 and the frequency of the output from each. Referring to the Table, it can been seen that the output of programmable divider 38 is 4.8 MHz for a divisor o^f 3 and 3.6MHz for a divisor of 4. In the absence of a data input at terminal 18, programmable divider 38 will be set to divide by 3 and thus produce an output of 4.8 MHz. When a data bit at terminal 18 causes programmable divider 38 to change to a different divisor, the result is to produce a few bits at 3.6 MHZ, reducing the average value of the output to some figure less than 4.8 MHz. By this means, programmable divider 38 can be said to subtract from the nominal frequency of 4.8 MHz. In the circuit for which values are represented in the Table, binary digits at a frequency of 150 Hz were applied to terminal 18. The output of divider 44 was applied as one input to and gates 20 and 24. TABLE Frequencies of outputs of elements of Fig. 2 OUTPUT OF FREQUENCY Terminal 10. 14.4MHz Programmable divider 38: ÷3 4.8MHz *4 3.6MHz Divider 40 7.2MHz Divider 44 225KHZ Terminal 18 150Hz AND gate 20 225KHZ (per data bit: 1500 pulses) AND gate 24 225KHZ (per data bit: 1500 pulses) Divider 28 27.47Hz Max, (one pulse per 5.46 data bits) Divider 30 13.73Hz Max, (one pulse per 10.92 data bits) -$W Terminal 16 4.8MHz + f Reference divider 64 2083. " 3Hz _+ f Low-pass filter 68 near DC Summer 70 Audio or data VCO 74 150MHz nominal Divider 80 2083.3Hz + f As a result, when either and gate 20 or 24 was gated on by a data bit of an appropriate sign, its output was 1500 pulses per data bit of that sign. Thus, the output of divider 28 produces one corrective pulse per 5.46 data bits of the same sign and divider 30 produces one pulse per 10.92 data bit of the other sign. Terminal 16 produces a signal at a nominal 4.8 MHz, varied about that value by an amount designated f in response to the presence of data of one sign or the other. Reference divider 64 was here selected to produce a frequency that would control a synthesizer producing a frequency to be multiplied by 6 with band spacing of 25 Kilohertz. For this reason, the frequency output of reference divider 64 is 2083 1/3 Hz, one sixth of 25KHz, plus or minus a divided frequency variation f' that is introduced to correct for shifts of the average value of the data. Divider 80 is caused by the feedback action of the synthesizer to produce an output at the same frequency. The integral dividend of divider 80 is changed by one in response to a signal of terminal 79 to change channels in the transmitter that is controlled by the synthesizer of Fig. 2. In the circuit that was built to practice the present invention, it was convenient to use the programmable divider 38 of Fig. 2 as the pulse subtractor of Fig. 12 and the combination of flip-flop 58 and 62 and EO gate 60 of Fig. 2 as the pulse adder 14 of Fig. 1. This is a matter of circuit convenience since a 3/4 programmable divider is operable at relatively high frequencies and produces as an output a pulse train at a - frequency that is lower than the input. It would be equally as effective, however, to reverse the order of pulse subtractor 12 and pulse adder 14 of Fig. 1 so that the input signal at terminal 10 was increased first in frequency and then decreased. This could be done quite readily by interchanging the elements of pulse subtractor 12 of Fig. 2 and those of pulse adder 14 of Fig. 2 so that terminal 10 was connected directly as an input to the D terminal of D flip-flop 58 and the output of EO gate 60 was taken as an input to programmable divider 38. Similarly, the pulse subtraction and pulse addition could have been carried out by cascading two programmable dividers. The first could be connected like programmable divider 38 of Fig. 2 so that the normal mode was a divide by 3 and the frequency adjustment was accomplished by dividing by 4. This results in a subtractor. If this were cascaded with a programmable divider that was set normally to divide by 4 but could be triggered as in Fig. 2 to divide by 3, than the programmable divider would comprise an adder. Such a cascade of dividers placed between terminals 10 and 16 of Figs. 1 or 2 would produce an output pulse train at a frequency 1/12 of the input frequency, adjustable up or down in response to shifts in the average value of the data input. The alternate modes described above are available for the choice of the designer.

Claims: Claims 1. A circuit for varying the frequency of a reference signal 10 in a controlled amount in a first direction in response to a digital signal of a first polarity and in a second direction opposite to the first direction in response to a second signal of a second polarity opposite to the first polarity, the circuit characterized by: a pulse subtracting circuit 12 for receiving the reference signal 10 and subtracting pulses from the reference signal in response to the digital signal of the first polarity to produce a subtracted reference signal; and a pulse adding circuit 14 for receiving the subtracted reference signal and adding pulses to the subtracted reference signal in response to the digital signal of the second polarity to produce a varied reference signal 16. 2. The circuit of claim 1 further characterized in that pulse subtracting circuit 12 includes a programmable divider 38 having a division ratio controlled by the output of a divider 28. 3. The circuit of claim 1 further characterized in that pulse adding circuit 14 includes flip-flops 58, 62 having reference signal 10 as a clock source and an exclusive OR circuit 60 having the output of pulse subtracting circuit 12 as one input and the output of flip-flop 62 as the other input. 4. The circuit of claim 1 further characterized by: a. an oscillator 26; b. an AND gate 20 connected to the oscillator and responsive to an output signal from the oscillator and to the digital signal of the first polarity to generate a stream of output pulses; and c. a divider 28 connected to the AND gate 20 and to the pulse subtracting circuit 12 to enable the pulse subtracting circuit 12 in response to a predeter- mined number of the output pulses. 5. The circuit of claim 4 further characterized by: a. an inverter 22 receiving the digital signal of the first polarity and producing as an output the digital signal of the second polarity; b. a second AND gate 24 connected to the oscillator 26 and the inverter 22 to produce a stream of output pulses in response to the digital signal of the second polarity; and c. a second divider 30 connected to the second AND gate 24 and the adder 14 to enable the adder 14 in response to a predetermined number of pulses from the second AND gate 24.

Inventors: CHAPMAN RONALD H, CHAPMAN, RONALD, H.
Applicants: MOTOROLA INC, MOTOROLA, INC.
Application year: 1983
Main classification: H03K7
IPC codes: H03C3, H03K7, H04L27