CROSS REFERENCE TO RELATED APPLICATIONSThis is a continuation-in-part of U.S. application Ser. No. 08/882,662, filed Jun. 25, 1997, now abandoned, which is a continuation of abandoned U.S. application Ser. No. 08/461,425, filed Jun. 5, 1995.
BACKGROUND OF THE INVENTIONThe invention relates in general to a receiver for security systems which allows operation upon the receipt of a properly coded signal. More particularly, the invention relates to a digital super-regenerative receiver for a security system or to a barrier operator system, such as a garage door operator, employing a transmitter and a receiver.
It is well-known to provide radio-controlled garage door operators which include a garage door operator unit having a radio receiver and a motor connected to be driven from the radio receiver. The radio receiver is adapted to receive radio frequency signals or other electromagnetic signals having particular signal characteristics which, when received, cause the door to be opened. More recently, such transmitter and receiver systems have become relatively more sophisticated in that they use radio transmitters which employ coded transmissions composed of pulse width modulated signals to which may be assigned multiple three-values (0, 1 and 2), also known as "trinary bits" or other serial coded transmission techniques. Once such signals are received, a microcontroller is generally used to decode the trinary word.
Analog super-regenerative receivers have been known for use in such systems. Super-regeneration is a form of regenerative amplification. In a regenerative receiver, a detector is provided having positive or regenerative feedback from the output to the input. The feedback must maintain operation of the oscillator on the verge of oscillation. In a super-regenerative detector, the circuit is switched into and out of oscillation by an oscillator operating at a very low frequency rate, called the "quench" frequency. The quench frequency is lower than the carrier frequency but higher than the frequency of the modulating signal. That is, the oscillator allows oscillations to build up in the regenerative circuit and then causes them to die out.
In the absence of an incoming signal, oscillations are initiated by thermal noise, build up to a critical amplitude and die out. An incoming signal larger than the thermal noise advances the build up time. Thus, the peak is reached sooner, and the oscillations die out sooner. The frequency of interruption increases with signal strength. A detector will provide indication of the incoming signal based on the advance of the build up period.
Super-regenerative receivers provide greater sensitivity than other types of receivers. However, most analog super-regenerative receivers require a large number of analog components that are not easily integrated or incorporated into an application-specific integrated circuit (ASIC). As such, manufacturing costs are relatively high. In addition, such super-regenerative receivers require relatively high current to operate. Thus, they consume more power and decrease battery life. In addition, such super-regenerative receivers do not generally decode trinary word encoded signals themselves. Rather, a separate microcontroller is used, which must be kept constantly on. Even if the microcontroller is maintained at a lower-running clock speed, it will still draw current and hence decrease battery life. Also, many super-regenerative receivers require an audio amplifier, thereby increasing system complexity, cost and power consumption. Finally, many super-regenerative receivers are sensitive to variations in transistor characteristics.
Accordingly, there is a need for a relatively simple super-regenerative receiver that requires relatively low current and hence draws less power than previous receivers. There is a further need for a super-regenerative receiver that tracks the received signal more quickly than other receivers.
SUMMARY OF THE INVENTIONAccordingly, it is an object of the invention to provide a super-regenerative receiver that tracks more quickly than other receivers and that draws less power than other receivers.
It is a further object of the present invention to provide a super-regenerative receiver that is relatively insensitive to transistor characteristics.
It is a still further object of the present invention to provide a super-regenerative receiver that does not require an audio amplifier.
In accordance with one embodiment of the invention, a digital super-regenerative receiver is provided having an analog RF detector and a regenerative oscillator. The output of the RF detector is used to generate a digital signal from which the oscillator bias is adjusted, in order to maintain the oscillator start-up time at a fixed level. The circuit senses if the start-up time is earlier or later than the predetermined start-up time and produces an output signal when the majority of the start times are ahead of the expected start time.
BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a perspective view of an apparatus for moving a barrier or garage door embodying the present invention;
FIG. 2 is a block diagram of a transmitter for use with a garage door operator of FIG. 1;
FIG. 3 is a block diagram of a receiver positioned within a head unit of the garage door operator shown in FIG. 1;
FIGS. 4A-4F are shcematic diagrams of the receiver shown in FIG. 3;
FIG. 5 is a block diagram of an alternative super-regenerative receiver system;
FIGS. 6A-6H are a schematic diagram of system shown in FIG. 5;
FIG. 7 is a block diagram of a gate array shown in FIG. 6C; and
FIG. 8 a block diagram of a digital filter shown in FIG. 7.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTSReferring now to the drawings and especially to FIG. 1, a movable barrier door operator or garage door operator is generally shown therein and identified by numeral 10. The movable barrier operator 10 includes ahead unit 12 mounted to aceiling 6 of agarage 14. Thehead unit 12 includes arail 18 extending therefrom with areleasable trolley 20 attached having anarm 22 extending to a multiple paneledgarage door 24 positioned for movement along a pair ofdoor rails 26 and 28. The apparatus may include hand-heldtransmitter unit 30 adapted to send signals to anantenna 32 of thehead unit 12 and coupled to a receiver in the head unit as will appear hereinafter. Anexternal control pad 34 is positioned on the outside of thegarage 14 and has a plurality of buttons 35 thereon. Theexternal control pad 34 communicates via radio frequency transmission with theantenna 32 of thehead unit 12. Anoptical emitter 42 is connected via a power andsignal line 44 to thehead unit 12. Anoptical detector 46 is connected via awire 48 to thehead unit 12.
Referring now to FIG. 2, thetransmitter 30 is shown therein in general and includes abattery 70 connected by apushbutton switch 72 to apower supply 74 which is coupled vialeads 75 and 76 to amicrocontroller 78. Themicrocontroller 78 is connected by aserial bus 79 to anon-volatile memory 80. Anoutput bus 81 connects the microcontroller to aradio frequency oscillator 82. Themicrocontroller 78 produces coded signals when thebutton 72 is pushed causing the output of theRF oscillator 82 to be amplitude modulated to supply a radio frequency signal at anantenna 83 connected thereto.
A block diagram of a receiver 601 is shown in FIG. 3. Amaster clock 600 enables the bias to anRF amplifier 508 and aregenerative oscillator 514. When the output of theregenerative oscillator 514 builds to saturation, it terminates vialine 804 the bias enablesignal 800. The start-up time of theoscillator 514 is shorter when there is a signal present than it is when only noise is present. Aphase comparator 540 monitors the start-up time of theregenerative oscillator 514 and adjusts the gain of theregenerative oscillator 514 via an oscillator bias level signal carried on aline 802 such that the nominal start-up time is equal to thereference pulse 806. If the start-up time is shorter than nominal it cuts back the bias. If it is longer, it increases the bias.
Thephase comparator 540 detects whether theregenerative oscillator 514 is starting sooner or later than the nominal start-up time and feeds this information to aloop filter 541 and amajority detector 550.
Ashift register 548 normally clocks in logical zeroes since its clock signal carried online 555 precedes the bias enable signal online 800 by 100 nanoseconds. During reception of the carrier signal, theregenerative oscillator 514 starts more quickly. Thus, theshift register 548 clocks in logical ones when there is a carrier present instead of logical zeroes. The response of theloop filter 541 is slow enough so that it does not lengthen the oscillator start up time during the bit period.
The three-of-fivemajority detector 550 acts as a low pass filter and provides a clean output waveform with up to two corrupted input data samples at a majority detection output line 551. This output is the recovered digital signal.
Aword detector 696 monitors the rising and falling edges of the three-of-five majority detector output on line 551. If it detects valid trinary word timing, it wakes themicrocontroller 700 for complete code recognition. Optionally, aframer 698 may be included that reads one to two entire frames of trinary bits before waking themicrocontroller 700.
A schematic of the receiver described above is shown in FIGS. 4A-F.The clock generator 600 generates a regenerative clock signal on aline 602 and a system clock signal on aline 604 as shown in FIG. 4A. Theregenerative clock signal 602 is also coupled to a 1.4microsecond delay 554 for producing an offset 720 to the clock signal on theline 602 and a 100 nanosecond delay signal on theline 556 for producing a second offsetsignal 722 to the clock signal on second clock offset line 603.Delay 554 corresponds to a predetermined nominal reference start up time of the oscillator. The oscillator start up time will be shorter than the nominal time if a carrier signal is present. If only a noise signal is present, the oscillator start up time will be longer than the nominal start up time.
The delay provided by the delay signal on theline 556 on the other hand, represents a permitted signal level above noise. It allows the three-of-fivemajority detector 550 to filter out false logical-ones. Jitter of the regenerative oscillator start-up time due to band limited white noise may cause an unacceptable number of false logical-one bit detections. In particular, the delay represents a threshold level of one false logical-ones per ten samples. The three-of-fivemajority detector 550 is able to filter this level of error. It should be noted that the reference delay and the error delay are exemplary only and that use of other such parameters is within the scope of the present invention.
In response to the input digitally encoded radio frequency signal, theRF detector 500 generates a digital signal onlead 701. As may be seen in FIG. 4B, theinput 400 of theRF detector 500 is coupled to anetwork 502 comprised of aninductor 506 and acapacitor 504. Thenetwork 502 supplies the digitally encoded RF signal to ananalog buffer amplifier 507 having anNPN transistor 508 at its emitter. Thebuffer amplifier 507 provides a buffered radio frequency output signal to a reactive network comprising aninductor 510 and acapacitor 512. TheNPN transistor 508 is coupled at its base to theclock line 602 and thedelay signal line 554 via a pair ofNAND gates 750 and 751 throughlead 702. Thebuffer amplifier 507 also isolates the antenna from the noise from other portions of the super-regenerative receiver.
The base of theNPN transistor 508 is pulsed by the clock, turning thetransistor 508 on and off in order to save power. These form part of the super-regenerative receiver and also have aninductor 520 coupled to theanalog oscillator 516. The amount of feedback is adjusted usingvariable capacitance 518. Thevariable capacitance 518 and theinductor 520 form a tuned circuit tuned to be resonant at the carrier frequency. A current level detector ordigital signal generator 522 receives theanalog oscillator signal 519. The output of thecurrent level detector 522 is a digital signal onlead 701. Thedigital signal generator 522 generates pulses which, after being inverted by aninverter 524, are delivered to aCLEAR pin 532 of a D flip-flop 526 (FIG. 4E). The regenerative clock signal carried online 602 clocks the D flip-flop 526, which holds the digital input stable for the sampling period.
A Q output 528, the bias enable signal, of D flip-flop 526 is connected to a source 529 of a field effect transistor (FET) 534. TheFET 534 acts as a switch to control the bias level of theregenerative oscillator 514 for the purpose of selectively quenching theregenerative oscillator 514 from time to time.
The notQ output 530 of the D flip-flop 526 is connected to the B input of the shift register 548 (FIG 4F). Theshift register 548 is clocked by the regenerative clock signal supplied onregenerative clock line 602, after a 1.4 microsecond delay offset delivered on offsetline 554. The offset 1.4 microsecond delay provides a nominal reference signal from which the incoming signal is detected. The notQ output 530 of the D flip-flop 526 is also connected to one input of NORgate 542.
Theother input 722 of the NORgate 542 is connected to theregenerative clock line 602, but only afterdelay 554 and additional 100 nanosecond delay offset carried online 556. The 100 nanosecond delay offset is chosen based on the desired error characteristics of the receiver system. The output of NORgate 542 and the output of ANDgate 544 are fed into a pair ofquad switches 541 and 543, respectively, of the phase comparator 540 (FIG. 4C). ANDgate 544 has as its inputs the regenerative clock signal carried online 602 as well as the not Q output of D flip-flop 526 and the delayed regenerative clock signal at the output ofdelay 556. Thus, thephase comparator 540 compares a delayed clock signal (that is a combination of the offset clock signal resulting from both delay offset 554 and delay offset 556), with the digital signal output fromdigital signal generator 522, held by D flip-flop 526.
The output ofphase comparator 540 is connected vialead 538 to agate 539 ofFET 534. Thephase comparator 540 detects whether the regenerative oscillator signal is starting sooner or later than the nominal start-up time. If it is starting sooner, the output of thephase comparator 540--the bias level signal--will go negative and cause theFET 534 to decrease the bias to theregenerative oscillator 514 alongleads 536 and 704. If theregenerative oscillator 514 starts later than the nominal start-up time, the output of thephase comparator 540 will go high, causing the bias of theregenerative oscillator 514 to decrease. That is, a combination clocked and analog bias signal is delivered to theregenerative oscillator 514 to stabilize its timing.
The output of the ANDgate 544 is also coupled to theNAND gate 707, the output of which is delivered to the 3 volt and 5 volt interfaces and used for tuning as may best be seen in FIG. 4D. The digital signal onlead 530, connected to the not Q output of D flip-flop 526, is connected to the input of theshift register 548. In a preferred embodiment, theshift register 548 is an eight output 74HC164. Theshift register 548 normally clocks in logical zeroes, since its clock signal precedes the falling edge of the bias enable signal by 100 nanoseconds, the error correction delay signal carried online 556. However, when a carrier is received, theregenerative oscillator 514 starts more quickly and theshift register 548 will clock in logical ones. Thus, theshift register 548 compares the offset delay clock signal on aline 720 with the digital signal and generates a detected code.
The outputs of theshift register 548 are fed into the 3-of-5majority detector 550. Thefirst output 902 and theseventh output 904 are not connected. As may best be seen in FIG. 4D, thelast output 712 is provided as raw data to the 3V and 5V interfaces. The 3-of-5majority pulse detector 550 receives the coded signals from theshift register 548 and produces an accepted code signal as output when the majority of theoutputs 906, 908, 910, 912 and 914 of theshift register 548 are high. That is, a positive output will result when the majority of recent regenerative oscillator start times is ahead of the nominal start time and thus, a carrier is present.
Theoutput 560 of the three-of-fivemajority detector 550 is input into the D flip-flop 552, which is clocked by the system clock signal carried on theline 604. The output signals carried onlines 708 and 710 of the D flip-flop 552 are the data that is fed to the rest of the system, including themicrocontroller 700 via the 3 volt and 5 volt interfaces as may best be seen in FIG. 4D.
Referring now to FIG. 5, anapparatus 1000 comprising another embodiment of the invention has aradio frequency detector 1002 coupled to a combination digital detector andframing circuit 1004. The framing circuit provides a framed bit output to a Zilog Z86C31 8-bit microcontroller 1006 which may be actuated or controlled through a keypad orbutton 1008 which delivers a keypad code of four to eight digits, in addition to being controlled by an RF code.
A power supply provides current through avoltage regulator 1010 to thedigital detector 1004.
Thedigital detector 1004 also includes portions of a threshold detector which interact with signals received from the RF detector via asaturation pulse line 1100. Signals are fed back to the RF detector via aloop filter line 1014. Enablement of oscillation in the RF detector is viasignal line 1016. Thesignal line 1016 is connected to an n-channelfield effect transistor 1018 which controls oscillator bias on aline 1020 supplied to other portions of the RF detector.
Referring now to FIGS. 6A-6H, the RF detector includes anantenna 1030 for receiving a continuous wave modulated carrier signal which is encoded in a trinary bit encoding scheme. The carrier wave which may nominally be 390 MHz or the like is switched on and off with the blank time being indicative of a low level signal and the on time being indicative of a high level signal. The relative durations of the high level and low level signals in a single pulse defines whether the pulse is to be interpreted as a zero, 1 or 2 in a trinary bit encoding scheme.
Typically a frame of trinary bit data preceded by a sync or other identifying pulse and followed either by 10 or 20 trinary bits in the form of the aforementioned duty cycle modulation of the carrier wave is transmitted from a transmitter and received by the antenna. The coded radio frequency signal may be coded according to a fixed code scheme or a rolling code scheme or some other scheme but the received signal is interpreted by other portions of the receiver to indicate that the signal being received is from either an authorized transmitter or an unauthorized transmitter.
In this embodiment the radio frequency receiver is used typically to control a lock via a motor connected to mechanical portions of the lock but may also be used to control other devices such as the motor of a garage door operator or other home security devices, automobiles or the like.
Connected to the antenna is atuning capacitor 1032 which is adjusted to provide resonance in the antenna circuit. A pair ofcapacitors 1034 and 1035 couple thetuning capacitor 1032 to a fixed 47nanohenry inductor 1036 and spread the response of the tuning circuit. These devices comprise a circuit which is resonant about the carrier frequency of the signal being received. The signal is AC- or RF-coupled through acoupling capacitor 1038 to the buffer amplifier's common base connectedtransistor 1040 which is connected at its emitter to thecoupling capacitor 1038. Aprotective diode 1042 is also connected to the emitter of thebuffer amplifier 1040 so that when the amplifier is enabled by a pulse online 1016 which temporarily charges capacitor 1053b the emitter-collector circuit oftransistor 1040 will not be back-biased. The bias pulse that places thetransistor 1040 in the linear or amplifying region is discharged through theresistor 1057.
Aregenerative oscillator 1044 is connected to the collector of thebuffer amplifier transistor 1040 at its collector and has its emitter and base coupled together by anAC coupling capacitor 1050. Thefield effect transistor 1020 is connected to a notch filter having a response at 390 MHz, the carrier frequency, to limit unwanted radiation from the circuit traces. The notch filter comprises aresistor 1060, a capacitor 1061a and a resistor 1061b coupled to the base of theregenerative oscillator transistor 1046.
Theline 1017 carries a digital signal which is fed to the drain of thefield effect transistor 1018. It functions as the supply voltage to bias and thus enable and disable theregenerative oscillator transistor 1046 from oscillating. The loop filter signal on theline 1014 is supplied to the averaging circuit comprised of theresistor 1059 and the groundedcapacitor 1061. The voltage atcapacitor 1060 biases the gate of theFET 1018.
That gate bias voltage level controls the effective resistance in the source-drain circuit of the FET. This controls the voltage supplied by the voltage divider comprised of theFET 1018 and the groundedresistor 1021 which controls the base bias to theoscillator transistor 1046. The base bias to thetransistor 1046 controls the response time from startup to saturation. A nominal response of 1.4 microseconds has been selected to provide sufficient bandwidth for the signals to be received by the antenna. In the event the oscillator starts too slowly the loop filter signal pulse will be supplied. This will increase the potential at the averagingcapacitor 1060 thereby increasing the base bias of theoscillator transistor 1046 causing theoscillator 1044 to go from startup to saturation more quickly.
In response to the thresholding circuit having sensed that the oscillation amplitude of theoscillator 1044 has reached the point at which it should be quenched. The output of theoscillator 1044 is at aline 1070 and is supplied to acurrent level detector 1072 comprising aPNP transistor 1074 having its emitter connected via a 47 ohm resistor to a 3.3 volt source and having a current leveldetector output line 1100 connected to the digital detector on a saturation pulse line. The saturation pulse when supplied to the digital detector is compared by the digital detector as to its receipt time with a timing reference provided by a timing reference threshold network 1111 (FIG. 6C) comprising a plurality of RC circuits with afirst RC circuit 1120, asecond RC circuit 1122, athird RC circuit 1124, afourth RC circuit 1126 and afifth RC circuit 1128. The RC circuits are identical, each having a 4.5 kilohm resistor and a grounded 10 picofarad capacitor. The circuits are connected to a portion of the digital detector comprising a gate array 1125 (FIG. 6C) at a plurality of threshold pins so that the gate array energizes one of the RC circuits after another to provide a plurality of timing steps against which the time that the saturation pulse is received is compared.
Referring back to the input of the RF detector FIG. 6A), the 1.2picofarad capacitors 1034 and 1035 flatten the frequency response to make the frequency response of the tuned circuit includingvariable capacitor 1032 andinductor 1036 somewhat broader so that variations in characteristics of theantenna 1030 or changes in theantenna 1030 subsequent to manufacture will not effectively detune the antenna circuit.
Theamplifier 1040 is enabled by a pulse supplied on theline 1016 causingcapacitor 1053B to charge up briefly. The voltage from the charge is delivered through theresistors 1053A and 1052 to thenode joining capacitor 1040 anddiode 1042 to hold on the emitter oftransistor 1042. This causes it to conduct and begin amplifying and thereby pass a signal to the collector of theoscillator transistor 1046. Theoscillator transistor 1046 causes theoscillator 1044 to regeneratively oscillate and have its oscillations increase faster than they would simply in the presence of noise.
Thecapacitor 1054 then discharges through aresistor 1057 to ground shutting off the bias at the emitter of thetransistor 1040 causing theamplifier 1044 to then shut off. This allows theamplifier 1040 to briefly sample from time to time the signals provided by the antenna tuning circuit and causes the amplifier to be switched on for only 1.4 microseconds at a time.
At the same time a pulse is supplied on theline 1014 to a drain of thefield effect transistor 1018. The pulse causes a 100 microfaradelectrolytic capacitor 1061 to charge. The charge on the capacitor biases the gate of thefield effect transistor 1018 so that it is operating in the linear region. It acts as a variable resistor supplying current through theline 1020 and theresistor 1060 as well as theresistor 1061B to the base of thetransistor 1046. This biases thetransistor 1046 such that it can oscillate either in the presence of noise or in the presence of a signal.
In order to determine the difference between noise excitation causing the beginning of oscillation and signal excitation as well as noise excitation, a determination must be made as to when the amplitude of the oscillations from theoscillator 1044 reaches a preselected amplitude. Theregenerative oscillator 1044 will increase its oscillation amplitude until it reaches a plateau or a saturation level.
It is most efficacious to be able to make the determination as to whether a signal or just noise is present on the basis of the interval between enabling theoscillator 1044 by the oscillator bias enable signal on theline 1016 and the time when theregenerative oscillator 1044 saturates as a result of the rate at which the oscillations increase. After the oscillator has been enabled, the output of theregenerative oscillator 1044 whose oscillation is caused by thecapacitive divider pair 1050 and 1051, thecapacitor 1050 is connected between the collector and the emitter of thetransistor 1046. Thecapacitor 1050 is connected between the emitter and base of thetransistor 1046. Both contribute to the oscillation as does acapacitor 1056 and aninductor 1055.
An averagingcapacitor 1058 connected to aline 1070 effectively filters out a portion of the RF component to provide a more slowly changing signal to thetransistor 1072. Thetransistor 1072 acts as a level detector by switching on when a predetermined voltage is reached indicating theregenerative oscillator 1044 is in saturation. A pulse which indicates saturation is supplied over theline 1100 to agate array 1125 where timing has been taking place from the initiation of amplifier turn on as commanded by thegate array 1125 and the initiation of oscillation.
The saturation pulse on line 1100 (FIG. 6C) is received by thedigital control 1004, specifically by the gate array 1125 (FIG. 6C). The saturation pulse is received by a flip-flop 1200 FIG. 7) which in response thereto shuts off the oscillator bias enable signal on aline 1202. The oscillator bias enable signal is fed by theline 1016 back to quench theregenerative oscillator 1044 and disable thepreamplifier 1040.
At the same time, the pulse is fed to aphase comparator 1204 which receives signals from the threshold detectors 1110 on aTHRESHOLDIN signal bus 1206. The signals on thebus 1206 are the instantaneous voltages of each of the RC timers. Thephase comparator 1204 then, upon finding close coincidence in time between a preferred threshold voltage and the oscillator bias enable signal, produces a loop filter signal on aline 1208. The loop filter signal is then fed out on theline 1014 to the RF detector. The system operates under the control of aclock generator 1212 which drives the flip-flop 1200 as well as adigital filter 1214.
As may best be seen in FIG. 8, thedigital filter 1214 receives the oscillator bias enable signal online 1202. A DLYOUT signal on aline 1230 from theclock generator 1212, a DLYIN signal on aline 1232 from atiming circuit 1234 and the threshold signal on thethreshold bus 1206 are also received. When the saturation signal is received the voltage states of the five timers are compared to a fixed reference and respective zeroes and ones are output. For instance the earliest RC circuits to time will provide logical one signals and the last two might provide logical zero signals. The result numerical value of three would be encoded and a three bit number and is referred herein as a thermometer code. The three bit thermometer code is indicative of the relative timing between the saturation pulse having been produced by the RF detector and the selected threshold value. It indicates whether the threshold is relatively early or relatively late or the amount thereof. This in turn indicates the effective amplitude of the signal received by the RF detector and whether the RF detector has received a signal or is oscillating solely as a result of noise.
The three bit thermometer code is fed to a summingcircuit 1242 which provides a summed thermometer code digital output on aline 1244 to alogic circuit 1246 which removes the least significant bit of the summed thermometer code. The summed thermometer code represents the average saturation over the last few enable-disable cycles of theregenerative oscillator 1044.
Those codes are passed to a plurality ofregisters 1250, 1252 and 1254 and stored therein so that the most recent thermometer code summed is summed with the previous four samples in asummer 1256 to provide a longer term averagde thermometer code indicative of the relative noise floor for the received signals.
A peak value adjustment is made in thepeak adjuster 1258. Amiminum value adjuster 1260 makes an adjustment and feeds anaveraging circuit 1262. Theaveraging circuit 1262 determines an average of the highest and lowest codes to produce a midrange or span theremometer code value which is then compared to the sum in acomparator circuit 1264. In the event that the comparison is positive, indicating that a transmitter signal has been received or legitimate continuous wave modulated pulse has been received, an output is provided on aline 1266. This causes a flip-flop 1268 to latch providing a bit or high signal on aline 1270 indicating that a legitimate RF signal has been received. That received code signal is fed to an RF wakeup control which feed produces an output enable signal that is sent to thephase comparator 1204. The wakeup circuit 1276 (FIG. 7) is responsive to key pushes from a keyboard which keypush signals are carried on aline 1278 and to a sample clock signal from the digital filter on aline 1290. Theframer 1268 stores a series of bits and writes out a frame of data on a bus orline 1300. It also produces a write enablesignal 1302 and aFIFO signal 1304. The FIFO signal commands a first in first out storage device, such as ashift register 1306, to be ready to receive the data in the frame. The data may then be supplied on adata line 1308 to other portions of the circuit. The first infirst out register 1306 is responsive to a data clock signal on adata clock line 1308 and to a data direction signal on aline 1310. A ready signal is supplied online 1312. All of those signals are supplied to the microcontroller 1006 (FIG. 5). If the gate array processes a signal that does not have the expected code characteristics in terms of pulse width it will flush the FIFO via a reset signal.
Thewakeup circuit 1276 supplies a wakeup signal on aline 1330 in response to receiving five bits of properly found data or a key command in combination with a sample clock signal. The data may be clocked into themicrocontroller 1006 in frame format where themicrocontroller 1006 can interpret the data received. It does so by determining whether the data or code received is from a legitimately formatted transmitter, irrespective of whether a fixed code, or a rolling code is used. Themicrocontroller 1006 can from time to time cause identity information to be stored in the electrically erasable programmable read only memory 1007 and may access that information for the making of an authorization check on the received code.
A config orconfiguration circuit 1305 receives signals from themicrocontroller 1006 to control other portions of thegate array 1125. In response to themicrocontroller 1006 recognizing the type of code received, i.e., fixed code or rolling, the microcontroller signals theconfig circuit 1305 to configure thegate array 1125 to process that type of code in the future. Depending the code frame size, which affects the code rate the rate at which the oscillator and amplifier can be selected to be one of either every one-sixteenth millisecond or one-eighth millisecond.
Thus what has been provided is a superegenerative receiver that is both noise immune and sensitive while using little power. In addition the circuit is to a great extent embodied in integrated circuits for low cost.
Assuming that the code has emanated from an authorized transmitter and indicates that an action is to be taken, signals are sent from the microcontroller on a pair ofmotor control lines 1350 and 1352 (FIG. 6E). Signals do not appear simultaneously on both lines.
Motor control line 1350 is connected to acontrol transistor 1354 which when switched on causes atransistor 1356 and atransistor 1358 to become conducting, allowing current to flow from thetransistor 1358 out through apower line 1360 to aconnector 1362 which is coupled to a motor 1364. Current flows back in through aline 1366 and then a line 1368 and is received by thetransistor 1356 where it is conducted to ground. This causes the motor to turn in one direction.
In the event it is desired for the motor to turn in the opposite direction, theline 1352 has a signal placed upon it causing atransistor 1370 to be switched on thereby switching on atransistor 1372 and atransistor 1374. Current flows from the battery supply throughtransistor 1374 out throughleads 1368 and 1366 through theconnector 1362 to the motor 1364 and back in through thelead 1360 to thetransistor 1372, where it is delivered to ground. A first pair of protecteddiodes 1380 and 1382 protect thetransistors 1358 and 1372. A pair ofdiodes 1390 and 1392 protect thetransistors 1356 and 1374.
It may be appreciated that themicrocontroller 1006 can receive signals from limit switches or the like through a line 1400 (FIG. 6G) by a pair ofresistors 1402 and 1404 toleads 1406 and 1408 connected to the microcontroller. Themicrocontroller 1006 can cause alight emitting diode 1430 to be illuminated by switching atransistor 1432 on via a control signal controlled on aline 1434 through a resistor 1436. Likewise, if the microcontroller 1006is placed in a learn mode, whereby it stores information which enables it to identify an authorized transmitter such as an authorization code, a fixed code, a rolling code or the like, alearn LED 1450 is illuminated by atransistor 1452 switching on under the control of themicrocontroller 1006 via alead 1454.
A speaker orannunciator 1460 is provided to provide an output indication to the user indicating that the RF detector has received a legitimate signal from a transmitter. Theannunciator 1460 is controlled by atransistor 1462 coupled through aresistor 1464 to a buzzer drive and from themicrocontroller 1006. Themicrocontroller 1006 also can receive specific inputs from amanual unlock button 1480, from amanual learn button 1482 and from amanual lock button 1484. A keypad is connected through a keypad connector 1490 (FIG. 6H) and a plurality ofkeypad lines 1492 to the microcontroller providing user access with the keypad code.
The microcontroller 1005 also senses battery voltage from abattery voltage line 1500, which is part of the battery voltage sensing circuit 1502 (FIG. 6F) adapted to be connected to a 3.3-volt potential or the type of potential supplied by two AA batteries. The circuit relies upon the base emitter drop of thetransistor 1504. However, because the base emitter drop of thetransistor 1504 is temperature-dependent and the receiver may be used in applications out of doors causing changes in the voltage due to temperature, thethermistor 1506 is provided in a compensatingcircuit 1508, which compensates for the base-emitter voltage change.
A power supply circuit is provided having approximately a 10 microampere bias current. The power supply circuit 1510 (FIG. 6B) provides temperature-compensated and regulated voltage to other portions of the circuit. Temperature compensation is provided by athermistor 1512.
While there have been illustrated and described particular embodiments of the present invention, it will be appreciated that numerous changes and modifications will occur to those skilled in the art, and it is intended in the appended claims to cover all those changes and modifications which fall within the true spirit and scope of the present invention.