Technical Field
This invention relates to electronic accessories for portable radios.
Background
Portable radios are often used in conjunction with accessories which allow certain radio features to be enabled remotely. For example, remote speaker microphones are often worn by police officers in order to free up their hands and still maintain easy access to the radios' main functions. An operating feature which is typically enabled remotely is the push-to-talk (PTT) option which allows a user to push a PTT button on the remote accessory to talk through an external microphone, and release it to listen through an external speaker. Other features such as volume control and microphone gain can also be set by the user at the remote accessory. FIG. 1 of the invention shows a basic block diagram of a radio 102, and its remote enabled accessory 104 including speaker 106 and microphone 108. Remotely enabled accessories are typically interfaced to the radio through input/output (I/O) ports 110 located on both the radio 102 and the accessory 104.
Option select schemes of the past have typically used multiple I/O ports to transfer the various radio functions remotely. The addition of I/O ports between the radio and its remote accessory usually entails additional desense and static protection circuitry causing an increase in the size and cost of both the radio and the accessory. Also, if the accessory is coupled to the radio through a cable the increase in I/O ports translates into a thicker cable which has the disadvantage of adding bulk and weight for the user.
Accordingly, there is a need for an option select scheme that reduces the number of I/O ports between a radio and its' accessory.
Brief Description of the Drawings
FIG. 1 is a prior art block diagram of an accessory coupled to a portable radio.
FIG. 2 is an electrical block diagram of the option select circuit in accordance with the present invention.
FIG. 3 is a flow chart of an option select scheme in accordance with the present invention.
Detailed Description of the Preferred Embodiment
Referring now to FIG. 2 of the accompanying drawings, there is shown an electrical block diagram of an option select circuit 200 comprising a radio 202 and its remotely enabled electronic accessory 204 in accordance with the present invention. The radio includes a microprocessor 206 powered from a voltage supply source B.sup.+ 208. The microprocessor 206 employs an analog to digital (A/D) converter port 210 as an option select input to receive input signals from accessory 204 through option select line 211, also known as A/D line 211. In the preferred embodiment of the invention, the A/D port 210 is preferably pulled high through resistor 212 when no accessory is connected to the radio 202. Accessory 204 includes first and second electronic switches 214 and 216 respectively, which are preferably implemented using inexpensive bipolar npn and pnp transistors as shown. Biasing circuitry for the first and second electronic switches 214, 216 includes biasing resistors 218, 220, 222, 224 and first and second variable resistive devices 226, 228, preferably implemented as potentiometers. A PTT switch 230 is coupled across second variable resistive device 228 and bias resistor 224. In the preferred embodiment, first variable resistive device 226 is used to control a first accessory feature 234, preferably a microphone gain setting. The second variable resistive device 228 is used to control a second accessory feature 236, preferably a speaker volume setting. The option select scheme of the preferred embodiment allows the single option select line 211 to determine the presence of an accessory, the state of the PTT switch, the control of the first accessory feature 234, preferably the microphone gain setting, and the control of the second accessory feature 236, preferably the speaker volume control.
In the preferred embodiment of the invention, second variable resistive device 228 and bias resistor 224 are coupled in series across the PTT switch 230. First variable resistive device 226 is preferably shorted across the emitter/collector of the second electronic switch 216 with the collector also being coupled back to the PTT switch 230. The emitter of second electronic switch 216 is coupled to the option select line 211. Bias resistor 222 is preferably coupled between the base of the second electronic switch 216 and the option select line 211, while bias resistor 220 is coupled between the base of the second electronic switch 216 and the collector of the first electronic switch 214. Bias resistor 218 is preferably coupled between the base of the first electronic switch 214 and the PTT switch 230 while the emitter of switch 214 is coupled to ground 232.
In the preferred embodiment, option select circuit 200 allows the microprocessor 206 to determine through option select line 211, the presence of an accessory, the state of the PTT switch, the microphone gain, and the speaker volume setting. First feature 234 preferably represents a microphone that has its gain set by input control CTRL1 of the microprocessor 206. Second feature 236 preferably represents a speaker whose gain is set by microprocessor output port CTRL2. Input/output ports CTRL1 and CTRL2 are responsive to the A/D port 210 for setting the microphone gain and speaker volume of accessory 204. Three states of operation provide three preferably distinct voltage ranges to the A/D port 2 10. The first voltage range occurs when the PTT switch 230 is depressed, the second voltage range occurs when the PTT switch is released, and the third voltage range occurs when the accessory 204 is disconnected from the radio 202.
The first voltage range occurs during the first state of operation when the PTT switch 230 is depressed shorting out bias resistor 224 and second variable resistive device 228. Shorting out bias resistor 224 and second variable resistive device 228 causes the first electronic switch, npn transistor, 214 biased via resistor 218 to be turned off. Turning the first electronic switch 214 off causes the second electronic switch, pnp transistor, 216 biased through resistors 220/222 to turn off thus assuring that first variable resistive device 226 is the only element switched into the option select line 211. For example, for a microprocessor powered from a 5 volt supply at B.sup.+ 208, the first variable resistive device 226 can be implemented with a potentiometer selected to assure that the voltage range to the A/D port 210 remains in the 0-2 volt range. Thus the microprocessor 206 recognizes that the PTT switch 230 is pressed and can use the 2 volt swing to control the first accessory feature 234, such as the microphone gain setting. The user can adjust the first variable resistive device 226 until the microphone gain suits his/her individual requirements.
The second voltage range occurs during the second state of operation when PTT switch 230 is released which allows bias resistor 224 and second variable resistive device 228 to be switched into the circuit path. This cause the first electronic switch, npn transistor, 214, biased through resistor 218, to be turned on. Turning first electronic switch 214 on causes the second electronic switch 216, biased through resistors 220, 222 to turn on as well. Turning second electronic switch 216 on causes the first variable resistive device 226 to short out. Thus, only bias resistor 224 and second variable resistive device 228 actively impact the option select line 211 when the PTT switch 230 is released. Bias resistor 224, a fixed value, and second variable resistive device 228 (preferably implemented as a potentiometer) are preferably chosen to provide a second voltage range higher than, and not overlapping with, the first voltage range. For example, the values can be selected to provide a range of 2.1-4.0 volts. The microprocessor 206 then recognizes any voltage level within this range as indicating that the PTT switch 230 is not depressed and uses this additional voltage swing for determining and controlling the second accessory feature 236, such as the speaker volume setting. The user can thus adjust the second variable resistive device until the speaker volume suits his/her needs.
The third voltage range occurs during the third state of operation when the accessory 204 is disconnected from the radio 202 causing the A/D port 210 to float high through resistor 212. For example, the microprocessor could be programmed to determine that any voltage reading on the A/D port 210 higher than 4.1 volts indicates that no accessory is connected to the radio 202.
In the preferred embodiment of the invention, the values of the first and second variable resistive devices 226, 228 and bias resistor value 224 are preferably chosen such that three distinct voltage ranges are available to the A/D port 210. For the example of the microprocessor 206 being powered from a 5 volt supply at B.sup.+ 208, one could select bias resistor 224 (R224) and first and second variable resistive devices 226, 228 (R226, R228) to provide the 0-2 volt range, the 2.1-4.0 volt range, and the 4.1-5.0 volt range using the following voltage divider computations with a given value selected for resistor 212 of 10 kilo-ohm (abbreviated using both Kohm and K): ##EQU1##
Thus, for a 5 volt supply and the desired voltage ranges described in the example, first variable resistive device 226 could be implemented with a 0-6.6 Kohm potentiometer, second variable resistive device 228 could be implemented with a 0-32.7 Kohm potentiometer, and bias resistor 224 could be implemented with a fixed 7.2 Kohm resistor. The first and second variable resistive devices 226, 228 provide first and second variable resistive loads to the A/D line 211. The step resolution on an 8 bit A/D then becomes 5 volts divided by 255 steps which equals 0.0196 volts per step. For the above example, first and second variable resistive devices 226, 228 were chosen for a 2 volt (V) range at the input to the A/D port 210, the effective resolution is thus (2.0 V/0.0196 V.apprxeq.100) 100 discernible steps by the microprocessor 206. Resistor values, supply voltage, and voltage ranges can be varied to suit different application needs.
Referring now to FIG. 3, there is shown a flowchart of the option select scheme 300 in accordance with the present invention. In the first step 302, the microprocessor 206 of the radio 202 reads the A/D port 210 to determine if an accessory is present. If the voltage range indicates that no accessory is present at step 304 the radio continues to function alone, otherwise an accessory is deemed to be present and the flowchart continues on to step 306. If the voltage detected by the A/D port 210 falls within a range indicating that the PTT switch 230 is depressed at step 306, then the user can adjust the first variable resistive device 226 at step 308, such as to control the microphone gain. If the A/D port 210 reads a voltage that falls within a range that indicates the PTT switch 230 is not depressed then the user can adjust the second variable resistive device 228 in step 310, such as to control the speaker volume. The input voltage to the A/D port 210 is monitored continuously and as the variable resistive devices are adjusted by the user the microprocessor 206 controls the operating parameter for the first accessory feature 234, such as the microphone gain, or second accessory feature 236, such as the speaker volume, of the accessory 204.
Hence, the accessory circuit as described by the invention uses a single A/D line to sense the presence of an accessory and to control remotely accessible features, such as microphone gain and speaker volume. By combining the number of ports required between the radio and its accessory the overall cost decreases as well as the bulk and weight between the two devices.
While the preferred embodiments of the invention have been illustrated and described, it will be clear that the invention is not so limited. Numerous modifications, changes, variations, substitutions, and equivalents will occur to those skilled in the art without departing from the spirit and scope of the present invention as defined by the appended claims.