Dialing mechanism with bidirectional interface
The present invention relates to a kind of dialing mechanism that is used for telephone communication, particularly a kind of dialing mechanism with bidirectional interface.
Early stage telephone set because function is simple, mostly only contains a dialer integrated circuit, finishes specific function.Development along with epoch progress and telecommunications, the communication system in modern age becomes increasingly complex, and function is also more and more stronger, and it is more and more diversified that the telephone set product also becomes, a lot of functions are not that dialer integrated circuit of independent dependence just is enough to deal with, and must utilize microprocessor to finish.For example radiophone, multi-feature telephone, facsimile machine, the answering machine machine product of expecting someone's call relies on microprocessor invariably and finishes its complicated function.
Above-mentioned various telephone functionality by and large, adds that by conventional dial device function the combination of circuits of tool unique function forms.As radiophone, except the function that possesses the conventional dial device, and possesses the function of getting in touch machine tool and handset with wireless mode.And for example answering machine except possessing traditional dialer functions, and possesses functions such as recording and playback.More than various telephone set products with unique function, all need to finish via software.
As mentioned above, telephone functionality is increasingly sophisticated, and telephone set also must meet telecommunications regulation all over the world except possessing unique function.These functions all are to realize via software.But each soft project personnel is not all can have at fingertips to any function.For example, the soft project personnel of an exploitation radiophone may only be proficient in the standard of radio communication, but may not be certain the telecommunications specification is very familiar to very much.Similarly, the soft project personnel of an exploitation facsimile telephone, very familiar to the standard of facsimile, but may not be certain the telecommunications specification is understood very much.Add that the telecommunications specification is various, each state all is not quite similar, so the soft project personnel, during development, usually because dial feature is unfamiliar with, or various countries' specification is not understood, and is produced sizable difficulty.
Main purpose of the present invention is to provide a kind of dialing mechanism with bidirectional interface simple in structure, the data of outside input can enter this dialing mechanism via the data input pin (pin) of this device, therefore utilize this dialing mechanism, do not need extra pin can link a telephone set system that comprises microprocessor.Another object of the present invention is to provide a kind of dialing mechanism of being convenient to programme with bidirectional interface.
For the present invention that achieves the above object takes following measure:
Dialing mechanism with bidirectional interface of the present invention can be used for telephone set system, and this telephone set system comprises:
Keyboard is dialled words in order to the input push button signalling;
Telephone interface circuit, after telephone receiver picks up the telephone machine and local side formation current circuit, provide this dialing mechanism supply voltage by this telephone interface circuit, and after push button signalling delivered to dialing mechanism via keyboard, this dialing mechanism can be delivered to the telecommunications local side via telephone interface circuit with the form of pulse signal or touch-tone signal;
The dial data receiver receives the button data from this dialing mechanism, and button is shown in mode visual or that hear of;
Microprocessor, when the bidirectional interface of this dialing mechanism was set to output, microprocessor did not act on, and dialing mechanism only receives the push button signalling from keyboard; When the bidirectional interface of dialing mechanism was set to input, push button signalling can produce by keyboard or by microprocessor, if produced by microprocessor, then push button signalling is delivered to dialing mechanism and dial data receiver respectively.
A kind of dialing mechanism with bidirectional interface of the present invention comprises: the keyboard of Lian Jieing, dialer, telephone interface circuit reach the dial data receiver that is connected with dialer successively; It is characterized in that, also comprise a microprocessor and a bidirectional interface;
Dialer comprises: the ranks input interface of Lian Jieing, keyboard decoder device, control and dial-up circuit successively, and input decoder, transformation from serial to parallel receiver, dial data follower; The output of input decoder is connected keyboard decoder and transformation from serial to parallel receiver respectively with input; Two outputs of bidirectional interface connect dial data receiver and transformation from serial to parallel receiver respectively, and two inputs of bidirectional interface connect dial data follower and microprocessor respectively, and the input of dial data follower connects control and dial-up circuit.
The accompanying drawing simple declaration
Fig. 1 is the circuit block diagram of regular phone machine;
Fig. 2 is used for the circuit block diagram of telephone set for dialing mechanism of the present invention;
Fig. 3 is the circuit block diagram of dialing mechanism of the present invention;
It is as follows to the detailed description of the invention to reach embodiment in conjunction with the accompanying drawings:
As shown in Figure 1, it is the circuit block diagram of regular phone machine, comprising: keyboard 11, dialer 12, telephone interface circuit 13 and dial data receiver 14 etc.
After telephone receiver (HOOK) was picked up, telephone set and local side constituted current circuit, provided dialer 12 supply voltages (VDD) through telephone interface circuit 13.During button, keyboard 11 is delivered to dialer 12 with push button signalling, and dialer 12 is delivered to the telecommunications local side with pulse (PULSE) signal or Dual Tone Multifrequency signal via telephone interface circuit 13 again.Simultaneously, dialer 12 is delivered to dial data receiver 14 with button data, and dial data receiver 14 can be a display unit or voice device, and button data is shown in mode visual or that hear of.
As shown in Figure 2, it is the phone block diagram that dialing mechanism of the present invention is used for telephone set, and this device comprises: keyboard 21, dialer 22, telephone interface circuit 23, dial data receiver 24 also comprise microprocessor 25 and bidirectional interface.When the bidirectional interface in the dialer 22 (four-headed arrow with this device below thick line is represented) when being set to output (this four-headed arrow this moment down), microprocessor 25 does not act on, and manner of execution as described in Figure 1.On the other hand, when the bidirectional interface in the dialer 22 is set to input (this four-headed arrow at this moment up), at this moment push button signalling produces by keyboard 21 or by microprocessor 25, and under the situation by microprocessor 25 generations, push button signalling is delivered to dialer 22 and dial data receiver 24 respectively.
Fig. 3 is the circuit block diagram of dialer 22 of the present invention, in the present embodiment, dialer 22 comprises: ranks input interface 31, keyboard decoder device 33, control and dial-up circuit 34, transformation from serial to parallel receiver 35, input decoder 36, dial data follower 37 and bidirectional interface 100; Wherein, ranks input interface 31, keyboard decoder device 33, control and dial-up circuit 34 connect successively, and the output of input decoder 36 is connected keyboard decoder 33 and transformation from serial to parallel receiver 35 respectively with input; Two outputs of bidirectional interface 100 connect dial data receiver 24 and transformation from serial to parallel receiver 35 respectively, two inputs of bidirectional interface 100 connect dial data follower 37 and microprocessor 25 respectively, and the input of dial data follower 37 connects control and dial-up circuit 34.
Following cooperation table 1 and table 2 are described further.Table 1 is general the simplest telephone keypad, and keyboard is made up of a triplex row and four a row button, and when " 5 " when being pressed, expression second button capable and secondary series is activated.
Table 1 expression is the simplest telephone keypad generally;
Table 2 is for the telephone keypad shown in the table 1, each key symbols and corresponding sequence code, the table of comparisons of keyboard ranks number.
Table 2
Key symbols | Serial code | Which row | Which row |
MSB LSB | 3 | 2 | 1 | 4 | 3 | 2 | 1 |
1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
2 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
5 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |
6 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 |
7 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 |
8 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 |
9 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 |
0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 |
* | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
# | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 |
Wherein, sequence code is the signal code of the analogue-key that microprocessor produced, and each sequence code is all represented a key symbols, also represents which and which the row button of keyboard to be activated.For example, sequence code " 0101 " is represented button " 5 ", also represents second row and the secondary series of keyboard to be activated.
With reference to shown in Figure 3, dialing mechanism of the present invention can select bidirectional interface 100 to be input pattern or output mode.When being selected as output mode, signal outputs to dial data receiver 24 by dial data follower 37, and at this moment, transformation from serial to parallel receiver 35 and input decoder 36 all do not act on.When being selected as input pattern, signal is input to transformation from serial to parallel receiver 35 by microprocessor 25, and dial data follower 37 does not act on.
Operate condition when below explanation dialing mechanism of the present invention selects bidirectional interface 100 to be output mode: with reference to figure 3, when carrying out actuation of keys, deliver to ranks input interface 31 from the input signal L10 of keyboard 21, behind breech lock, again the result is exported by signal L30, deliver to keyboard decoder device 33.Keyboard decoder device 33 is according to the state of signal L30, solving which button is pressed, the data that solve are delivered to control and dial-up circuit 34 with the pattern of signal L50, control and dial-up circuit 34 be except storing button data, and produce the corresponding signal of telecommunication: pulse (PULSE) signal L60 or Dual Tone Multifrequency signal L70.For example,, can produce the signal of telecommunication L60 that constitutes by five pulses, or produce the touch-tone signal L70 of " 5 " if " 5 " key of keyboard is pressed.Simultaneously, control and dial-up circuit 34 are exported the button data of " 5 " from signal L110, deliver to dial data follower 37, then this dial data follower 37 is organized into Format Series Lines with button data, export dial data receiver 24 by signal L80 to through bidirectional interface 100, for the visual demonstration or the usefulness of sounding.
Action when below explanation dialing mechanism of the present invention selects bidirectional interface 100 to be input pattern: with reference to figure 3, microprocessor 25 produces analogue-key serial code signal, enter transformation from serial to parallel receiver 35 by signal L81, serial data is changed into parallel data, deliver to input decoder 36 by output signal line L90 then, input decoder 36 solves which and which row and is activated (reference table 2 is listed), and the state of each ranks is delivered to keyboard decoder device 33 by signal L35 output.Keyboard decoder device 33 is according to signal L35 information, solving which button is pressed, the data that solve are delivered to control and dial-up circuit 34 with the form of signal L50, control and dial-up circuit 34 be except storing button data, and produce corresponding signal of telecommunication L60 or L70 delivers to telephone interface circuit 23.
Dialing mechanism of the present invention has following effect:
Comprehensively above-mentioned, the dialing mechanism with bidirectional interface of the present invention by the usefulness of utilizing the existing data output pin of this device as input, therefore can be saved the I/O pin; This device also provides the software engineer convenience on working. Can improve the surcharge of product, make product have more competitiveness.