The content of the invention
Communicated it is an object of the invention to the defect for overcoming prior art there is provided a kind of keyboard and touch display screen realization
Circuit and its method.
To achieve the above object, the present invention uses following technical scheme:A kind of keyboard realizes communication with touch display screen
Circuit, including signal conversion chip U1, converting unit, touch display screen and keyboard, wherein, the keyboard, it inputs corresponding
Payment signal to signal conversion chip U1;The signal conversion chip U1, it receives the payment signal that the keyboard is inputted
Afterwards, level signal is converted into by converting unit;The touch display screen, it receives the level signal of converting unit output, shows
Show payment result.
Its further technical scheme is:The keyboard includes several buttons and button main control chip U2, and several are pressed
Key is connected with button main control chip U2, and key-press input low level, and button main control chip U2 detects the low level, and output is paid
Signal is to converting unit.
Its further technical scheme is:The converting unit includes the first input modular converter and the first output modulus of conversion
Block, wherein, touch and show that the signal of flat board input is carried out after level conversion by the first input modular converter, send signal to
Signal conversion chip U1;Signal conversion chip U1 will pay signal by the first output modular converter and carry out after level conversion, will
Payment result is dealt into touch and shows FPD.
Its further technical scheme is:The first output modular converter includes triode Q3, Q4, the triode Q3's
Base stage is connected with the signal conversion chip U1, and the colelctor electrode of the triode Q3 is connected with the base stage of the triode Q4, institute
State triode Q3 grounded emitter;The colelctor electrode of the triode Q4 shows that flat board is connected with described touch, the triode
Q4 grounded emitter;Signal conversion chip U1 will pay signal by triode Q3 reverse process, anti-again by triode Q4
To processing, the signal consistent with paying signal is exported to flat board is shown, by touching the payment result for showing that FPD is current.
Its further technical scheme is:The first input modular converter includes triode Q7, Q8, the triode Q8's
Base stage shows that flat board is connected with described touch, and the colelctor electrode of the triode Q8 is connected with the base stage of the triode Q7, described
Triode Q8 grounded emitter;The colelctor electrode of the triode Q7 is connected with the signal conversion chip U1, the triode
Q7 grounded emitter;The signal for showing flat board input is touched by triode Q8 reverse process, it is reverse again by triode Q7
Processing, exports the signal consistent with input signal to signal conversion chip U1.
Its further technical scheme is:A kind of keyboard realizes that the circuit of communication also includes mahjong machine with touch display screen
Mainboard, is connected with the second input modular converter and the second output conversion between the signal conversion chip U1 and mahjong mainboard
Module, wherein, the operational data that mahjong mainboard is sent is carried out after level conversion by the second input modular converter, is sent to letter
Number conversion chip U1;Signal conversion chip U1 is carried out after level conversion by the second output modular converter, and control signal is dealt into
Mahjong mainboard.
Its further technical scheme is:The second input modular converter includes triode Q5, Q6, the triode Q6's
Base stage is connected with the mahjong mainboard, and the colelctor electrode of the triode Q6 is connected with the base stage of the triode Q5, and described three
Pole pipe Q6 grounded emitter;The colelctor electrode of the triode Q5 is connected with the signal conversion chip U1, the triode Q5
Grounded emitter;The operational data that mahjong mainboard is sent is reverse again by triode Q5 by triode Q6 reverse process
Processing, exports the signal consistent with operational data to signal conversion chip U1.
Its further technical scheme is:The second output modular converter includes triode Q1, Q2, the triode Q1's
Base stage is connected with the signal conversion chip U1, and the colelctor electrode of the triode Q1 is connected with the base stage of the triode Q2, institute
State triode Q1 grounded emitter;The colelctor electrode of the triode Q2 is connected with the mahjong mainboard, the triode Q2
Grounded emitter;The control signal of signal conversion chip U1 outputs is by triode Q1 reverse process, by triode Q2 again
Reverse process, exports the signal consistent with control signal to mahjong mainboard.
Its further technical scheme is:A kind of keyboard realizes that the circuit of communication also includes dice and driven with touch display screen
Moving cell, the dice driver element is connected including the interface J6 being connected with anion, the interface J7 being connected with ozone, with motor
Interface J8 and triode Q9, Q10, Q11, input high level signal driving triode Q9, Q10, Q11 base voltage is more than
Setting value, forces triode Q9, Q10, Q11 collector voltage to drag down, interface J6, J7, J8 produce potential difference, with to bear from
Son, ozone, motor operations.
Present invention also offers a kind of method that keyboard and touch display screen realize communication, methods described includes:
Key-press input pays signal;
Pay signal to export to converting unit after signal conversion chip U1, level conversion is carried out by converting unit, obtained
Take level signal and export;
Touch display screen receives level signal, and shows payment result.
Compared with the prior art, the invention has the advantages that:A kind of keyboard of the present invention is realized with touch display screen and communicated
Circuit, after paying signal, the conversion process by signal conversion chip U1 and converting unit by the key-press input of keyboard,
Shown in touch display screen, realize virtual payment, all paid and/or small change in order to which player does not need every innings when playing cards,
The demand redeemed to zero is solved, touch display screen can accomplish real-time monitoring, it is ensured that the real reliability of data, and the work of mahjong mainboard
Making data can also be shown by touch display screen, be easy to user to learn current playing method.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings.
Embodiment
In order to more fully understand the technology contents of the present invention, technical scheme is entered with reference to specific embodiment
One step introduction and explanation, but it is not limited to this.
A kind of specific embodiment as shown in Fig. 1~8, keyboard 3 that the present embodiment is provided is realized with touch display screen 2 and communicated
Circuit, can be used on mahjong machine, after realizing that each office has played, by keyboard 3 input the amount of money, defeated side and wins side progress void
Intend paying or collecting money, at the end of wait, touch display screen 2 shows the amount of money, carries out actual delivery, it is to avoid the trouble of small change, it is ensured that
Count clear and fair and just.
As shown in figure 1, present embodiments providing the circuit that a kind of keyboard 3 realizes communication with touch display screen 2, it includes letter
Number conversion chip U1, converting unit 1, touch display screen 2 and keyboard 3, wherein, keyboard 3, it, which is inputted, corresponding pays signal extremely
Signal conversion chip U1;Signal conversion chip U1, it is received after the payment signal that the keyboard 3 is inputted, and passes through converting unit 1
It is converted into level signal;Touch display screen 2, it receives the level signal that converting unit 1 is exported, and shows payment result.
Above-mentioned keyboard 3 includes several buttons and button main control chip U2, several buttons and button main control chip
U2 connections, and key-press input low level, button main control chip U2 detect the low level, and output pays signal to converting unit 1,
Several buttons include validating that button, pay button, gathering button and menu key etc., wherein, paying button is used for defeated side
Payment is inputted, and button of collecting money is used for the side of win and receives payment.
When button is pressed, the corresponding delivery outlet of button shorted on both ends exports corresponding low level, button main control chip U2
Low level is detected, exporting corresponding signal output by the 30/31st pin pays signal.
In the present embodiment, above-mentioned button main control chip U2 model STM8S903K3.
Further, above-mentioned converting unit 1 includes the first input modular converter and the first output modular converter, its
In, touch and show that the signal of flat board input is carried out after level conversion by the first input modular converter, send signal to signal
Conversion chip U1;Signal conversion chip U1 will pay signal by the first output modular converter and carry out after level conversion, will pay
As a result it is dealt into touch and shows FPD.
The first above-mentioned input modular converter includes triode Q7, Q8, and the base stage of the triode Q8 shows with described touch
Show that flat board is connected, the colelctor electrode of the triode Q8 is connected with the base stage of the triode Q7, the emitter stage of the triode Q8
Ground connection;The colelctor electrode of the triode Q7 is connected with the signal conversion chip U1, the grounded emitter of the triode Q7;Touch
The signal of display flat board input is touched by triode Q8 reverse process, by triode Q7 reverse process again, output is believed with input
Number consistent signal is to signal conversion chip U1.
In addition, being connected with resistance R5, and triode Q7 current collection between triode Q8 base stage and touch show flat board
Pole and triode Q8 colelctor electrode are also associated with flat board communication module, and flat board communication module and triode Q7 colelctor electrode with
And triode Q8 colelctor electrode has been connected respectively resistance R19, R20.
In other embodiment, above-mentioned resistance R5 and resistance R19,20 can also be not provided with.
Specifically, when the serial ports for touching display flat board sends high level, after paying signal by resistance R13, R5 so that
Triode Q8 base level>=setting value (being in the present embodiment 0.6V), triode Q8 colelctor electrode is in low level, compels
Triode Q7 base stage is set to be less than setting value (being in the present embodiment 0.6V), triode Q7 is closed, due to resistance
R19 presence, triode Q7 current collections extremely high level, hence in so that triode Q7 output level shows the string of flat board with touching
The incoming level of mouth is consistent.
In addition, when touching the serial ports for showing flat board and sending low level, triode Q8 base level less than setting value (
It is 0.6V in the present embodiment), triode Q8 is closed, due to resistance R20 presence, forces triode Q7 base levels
>=0.6V, triode Q7 are in open mode, and triode Q7 colelctor electrode is in low level state, hence in so that triode Q7
Output level with touch show flat board serial ports incoming level it is consistent.
Above-mentioned two process, which completes to touch, shows that flat board sends the level conversion received with signal conversion chip U1
Flow.
Further, above-mentioned first output modular converter includes triode Q3, Q4, triode Q3 base stage with it is described
Signal conversion chip U1 connections, triode Q3 colelctor electrode is connected with triode Q4 base stage, triode Q3 grounded emitter;
Triode Q4 colelctor electrode shows that flat board is connected with described touch, triode Q4 grounded emitter;Signal conversion chip U1 will
Signal is paid by triode Q3 reverse process, by triode Q4 reverse process, the output signal consistent with payment signal again
To display flat board, by touching the payment result for showing that FPD is current.
Resistance R11, and triode Q3 colelctor electrode are connected between triode Q3 base stage and signal conversion chip U1
Flat board communication module is connected with, and the colelctor electrode of flat board communication module and triode Q3 is connected with resistance R16.
In other embodiment, above-mentioned resistance R11 and resistance R16 can also be not provided with.
Specifically, when signal conversion chip U1 serial ports sends high level, after paying signal by resistance R11, three poles
Pipe Q3 base level>=setting value (being in the present embodiment 0.6V), triode Q3 colelctor electrode is in low level, forces three
Pole pipe Q4 base stage is less than 0.6V, and triode Q4 is closed, triode Q4 current collection extremely high level, hence in so that three
Pole pipe Q4 output level is consistent with the incoming level of signal conversion chip U1 serial ports.
When signal conversion chip U1 serial ports sends low level, triode Q3 base level is less than setting value (at this
It is 0.6V in embodiment), triode Q4 is closed, due to resistance R16 presence, forces triode Q4 base levels>
=setting value (being in the present embodiment 0.6V), triode Q4 is in open mode, and triode Q4 colelctor electrode is in low level
State, hence in so that triode Q4 output level is consistent with the incoming level of signal conversion chip U1 serial ports.
Two above-mentioned processes complete signal conversion chip U1 and sent with touching the level turn for showing that board joint is received
Change of current journey.
Further, a kind of above-mentioned keyboard 3 realizes that the circuit of communication also includes mahjong mainboard with touch display screen 2
6, the second input modular converter 4 and the second output modular converter are connected between signal conversion chip U1 and mahjong mainboard 6
5, wherein, the operational data that mahjong mainboard 6 is sent is carried out after level conversion by the second input modular converter 4, is sent to letter
Number conversion chip U1;Signal conversion chip U1 is carried out after level conversion by the second output modular converter 5, and control signal is dealt into
Mahjong mainboard 6.So, touch display screen 2 can also show the mode of operation residing for current mahjong machine, be easy to player to learn and work as
Preceding playing method.
In addition, the second above-mentioned input modular converter 4 includes triode Q5, Q6, triode Q6 base stage and the mahjong
Mainboard 6 is connected, and triode Q6 colelctor electrode is connected with the base stage of the triode Q5, and the emitter stage of the triode Q6 connects
Ground;The colelctor electrode of the triode Q5 is connected with the signal conversion chip U1, the grounded emitter of the triode Q5;Mahjong
The operational data that mainboard 6 is sent is by triode Q6 reverse process, by triode Q5 reverse process again, output and work number
According to consistent signal to signal conversion chip U1.
Above-mentioned triode Q5's, Q6 act as signal isolation.
In the present embodiment, resistance R4, and three are also associated between above-mentioned triode Q6 base stage and mahjong mainboard 6
Pole pipe Q6 colelctor electrode and triode Q6 colelctor electrode are also associated with panel master control processing module, and panel master control processing module
Resistance R18, R17 have been connected respectively with triode Q6 colelctor electrode and triode Q6 colelctor electrode.
In other embodiment, above-mentioned resistance R4, resistance R18, R17 can also be not provided with.
Specifically, when the serial ports of mahjong mainboard 6 sends high level, the signal with operational data by resistance R12,
After R4, triode Q6 base level>=setting value (being in the present embodiment 0.6V), triode Q6 colelctor electrode is in low
Level, forces triode Q5 base stage to be less than 0.6V, triode Q5 is closed, due to resistance R17 presence, triode
Q5 current collection extremely high level, therefore, triode Q5 export the signal consistent with operational data to signal conversion chip U1.
When the serial ports of mahjong mainboard 6 sends low level, triode Q6 base level is less than setting value (in this implementation
It is 0.6V in example), triode Q6's is closed, due to resistance R18 presence, forces triode Q5 base levels>=
Setting value (being in the present embodiment 0.6V), triode Q5 is in open mode, and triode Q5 colelctor electrode is in low level shape
State, therefore, triode Q5 export the signal consistent with operational data to signal conversion chip U1.
Two above-mentioned processes complete mahjong mainboard 6 and send the level conversion received with signal conversion chip U1
Flow.
Further, the second above-mentioned output modular converter 5 includes triode Q1, Q2, triode Q1 base stage and letter
Number conversion chip U1 connections, triode Q1 colelctor electrode is connected with triode Q2 base stage, triode Q1 grounded emitter;Three
Pole pipe Q2 colelctor electrode is connected with mahjong mainboard 6, triode Q2 grounded emitter;The control of signal conversion chip U1 outputs
Signal by triode Q2 reverse process again, exports the signal consistent with control signal to fiber crops by triode Q1 reverse process
By mainboard 6.
In the present embodiment, resistance R10 is also associated between above-mentioned triode Q1 base stage and signal conversion chip U1,
And triode Q1 colelctor electrode and triode Q2 colelctor electrode are also associated with flat board communication module, and flat board communication module and three
Pole pipe Q1 colelctor electrode and triode Q2 colelctor electrode have been connected respectively resistance R14, R15.
In other embodiment, above-mentioned resistance R10, resistance R14, R15 can also be not provided with.
Specifically, when signal conversion chip U1 sends high level, after signal is by resistance R10, triode Q1 base stage
Level>=setting value (being in the present embodiment 0.6V), triode Q1 colelctor electrode is in low level, forces triode Q2 base
Extremely low in setting value (being in the present embodiment 0.6V), triode Q2 is closed, due to resistance R15 presence, three poles
Pipe Q2 current collections extremely high level.
When signal conversion chip U1 sends low level, triode Q1 base level is less than setting value (in the present embodiment
In be 0.6V), triode Q1 is closed, because resistance R14 presence is forced, triode Q2 base levels>=setting
It is worth (being in the present embodiment 0.6V), triode Q2 is in open mode, triode Q2 colelctor electrode is in low level state.
This process completes signal conversion chip U1 and sends the level conversion flow received with mahjong mainboard 6.
Further, a kind of above-mentioned keyboard 3 realizes that the circuit of communication is single also including dice driving with touch display screen 2
Member 7, dice driver element 7 includes the interface J6 being connected with anion, the interface J7 being connected with ozone, the interface being connected with motor
J8 and triode Q9, Q10, Q11, input high level signal driving triode Q9, Q10, Q11 base voltage are more than setting
Value, force triode Q9, Q10, Q11 collector voltage to drag down, interface J6, J7, J8 produce potential difference, with cause anion,
Ozone, motor operations.
Specifically, triode Q9, Q10, Q11 base stage are corresponded to respectively passes through resistance R31, R41, R51 and external interface J1
Connection, and connected between triode Q9 emitter stage and base stage by resistance R61, between triode Q10 emitter stage and base stage
Connected, connected between triode Q11 emitter stage and base stage by resistance R81 by resistance R71, triode Q9, Q10, Q11's
Colelctor electrode corresponds to be connected with anion, ozone, motor respectively.
In addition, above-mentioned dice driver element 7 also includes boost module, the boost module includes the filtering being connected with power supply
Electric capacity C1, filtering chip U3, inductance L1, commutation diode D1, the filter capacitor C2 being connected with ion, ozone, motor and point
Piezoresistance R1, R2, boost module power 5V power boosts to 12V for anion, ozone, motor, specifically, 5v power supplys are logical
Cross after filtering C1 filtering, input to filtering chip U3 the 4th pin and power, high-frequency PWM signal is produced by its 2 pin, then pass through inductance
L1 energy storage, commutation diode D1 rectifications, filter capacitor C2 is filtered into 12V DC voltages, and divider resistance R1 and R2 voltage division signals are given
To filtering chip U3 5 pin, 2 pin PWM duty cycles are adjusted, make output voltage stabilization in 12V.
A kind of above-mentioned keyboard 3 realizes the circuit of communication with touch display screen 2, passes through the key-press input disbursement letter of keyboard 3
Number, after the conversion process by signal conversion chip U1 and converting unit 1, shown in touch display screen 2, realize virtual branch
Pay, all paid and/or small change in order to which player does not need every innings when playing cards, solve the demand redeemed to zero, touch display screen 2 can
Accomplish monitoring in real time, it is ensured that the real reliability of data, and the operational data of mahjong mainboard can also be aobvious by touch display screen 2
Show, be easy to user to learn current playing method.
In addition, the present embodiment additionally provides a kind of method that keyboard 3 realizes communication with touch display screen 2, this method includes:
Key-press input pays signal;
Pay signal to export to converting unit 1 after signal conversion chip U1, level conversion carried out by converting unit 1,
Obtain level signal and export;
Touch display screen 2 receives level signal, and shows payment result.
In addition, above-mentioned method also includes:The input signal of touch display screen 2, by converting unit 1, the second input block
And after signal conversion chip U1, mahjong mainboard 6 gets signal conversion chip U1 signal, carries out corresponding operation.
In addition, above-mentioned method also includes:Mahjong mainboard 6 is by the second output unit by the operational data residing for itself
Transmit to signal conversion chip U1, then inputted to touch display screen 2 and shown by converting unit 1.
The above-mentioned technology contents that the present invention is only further illustrated with embodiment, in order to which reader is easier to understand, but not
Represent embodiments of the present invention and be only limitted to this, any technology done according to the present invention extends or recreated, by the present invention's
Protection.Protection scope of the present invention is defined by claims.