A kind of remote operation controller of wired connectionTechnical field
The invention belongs to electronic technology field, and in particular to a kind of remote operation controller of wired connection.
Background technology
In the handheld device for needing man-machine interface to be input into, in order to realize wired connection remote control, it is necessary to it is main,Auxiliary two sets of key-press inputs, and two sets of buttons are connected with the I/O of microcontroller in parallel, which has lacking more than linePoint, and increasing with number of keys, shortcoming are more protruded.
The content of the invention
It is an object of the invention to overcome the deficiencies in the prior art, there is provided a kind of remote operation controller of wired connection.
In order to reach above-mentioned purpose of design, the technical solution adopted in the present invention is:A kind of remote control of wired connectionDevice, including hardware system, the hardware components are made up of main control unit, secondary control unit, the main control unit with it is auxiliaryControl unit is electrically connected, and the main control unit is made up of main button, host microcontroller, level translator, the main button withHost microcontroller is electrically connected, and the host microcontroller electrically connects with level translator, and the secondary control unit is by auxiliary button, auxiliary micro-Controller, level translator composition, the auxiliary button electrically connects with auxiliary microcontroller, the auxiliary microcontroller and level translatorElectrical connection.
Acquisition system is equipped with the main control unit and secondary control unit.
The main control unit is realized communicating with secondary control unit by RS232 buses.
The equal chip of host microcontroller uses STM32F103RET6 in the Main Control Unit.
Auxiliary microcontroller chip uses STM8L101F2P in the assistant controller unit.
The electrical level transferring chip of the main control unit and secondary control unit uses SP3223EEY.
The acquisition system is respectively stored in host microcontroller and auxiliary microcontroller in main control unit and secondary control unitIn device, write using C51 language.
Beneficial effect of the present invention:Electrical level transferring chip uses SP3223EEY, the chip to realize level conversion, meets remoteSignal intensity needed for journey manipulation, main control unit realizes input collection, treatment and the analysis of main button, realizes to main control unitThe manipulation of remaining peripheral hardware, while to secondary control unit send feedback information, two synchronizations of control unit are realized, in auxiliary control listThe requirement low in energy consumption and volume of unit's kind is higher, and secondary control unit receives the feedback information for carrying out main control unit, according to the informationCollection is synchronized to auxiliary button and is processed, while to the data after main control unit transmission processe, realizing remote control master controlThe purpose of unit peripheral hardware.Use Limitation rate of the present invention is high, with low in energy consumption, speed is fast and the features such as small volume.
Brief description of the drawings
Fig. 1 is circuit hardware system schematic block diagram of the present invention;
Fig. 2 is main control unit schematic block diagram of the present invention;
Fig. 3 is secondary control unit schematic block diagram of the present invention.
Specific embodiment
Specific embodiment of the invention is described in detail below in conjunction with the accompanying drawings.As Figure 1-3:A kind of wired companyThe remote operation controller for connecing, including hardware system.The hardware components are made up of main control unit 1, secondary control unit 2, describedMain control unit 1 is electrically connected with secondary control unit 2, and the main control unit 1 is by main button 3, host microcontroller 4, level conversionDevice 5 is constituted, and the main button 3 is electrically connected with host microcontroller 4, and the host microcontroller 4 is electrically connected with level translator 5, instituteState secondary control unit 2 to be made up of auxiliary button 6, auxiliary microcontroller 7, level translator 8, the auxiliary button 6 and auxiliary microcontroller 7 are electricConnection, the auxiliary microcontroller 7 is electrically connected with level translator 8.
Acquisition system is equipped with the main control unit 1 and secondary control unit 2.
The main control unit 1 is realized communicating with secondary control unit 2 by RS232 buses.
The equal chip of host microcontroller 4 uses STM32F103RET6 in the Main Control Unit 1.
The chip of auxiliary microcontroller 7 uses STM8L101F2P in the assistant controller unit 2.
The electrical level transferring chip of the main control unit 1 and secondary control unit 2 uses SP3223EEY.
The acquisition system is respectively stored in host microcontroller 4 and auxiliary micro-control in main control unit 1 and secondary control unit 2In device processed 7, write using C51 language.
When the present invention is used:In order to realize main button 3, the peripheral hardware of 6 synchronous manipulation main control unit of auxiliary button 1, master controlThe quantity of state has been planned in unit processed 1, the adoption status synchronization of secondary control unit 2, the first actual requirement according to manipulation, secondly mainMicrocontroller 4 enters reset condition after initializing, and send auxiliary microcontroller 7 while entering reset condition, two microcontrollers etc.Signal to be entered, host microcontroller 4 is sentenced after the input signal that the signal input of main button 3 or auxiliary microcontroller 7 are sent is receivedIt is disconnected which state entered, and processed, while send Status Flag feedback signal to auxiliary microcontroller 7, allow auxiliary microcontroller 7Keep synchronous with host microcontroller 4, after host microcontroller 4 has processed data, you can make host microcontroller 4, auxiliary microcontroller 7 timesTo original state, the collection of input signal next time is waited.