CN210402081U - IO port multiplexing circuit and electronic equipment - Google Patents

IO port multiplexing circuit and electronic equipment Download PDF

Info

Publication number
CN210402081U
CN210402081U CN201921905097.5U CN201921905097U CN210402081U CN 210402081 U CN210402081 U CN 210402081U CN 201921905097 U CN201921905097 U CN 201921905097U CN 210402081 U CN210402081 U CN 210402081U
Authority
CN
China
Prior art keywords
port
encoder
seg
multiplexing circuit
ports
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201921905097.5U
Other languages
Chinese (zh)
Inventor
李一峰
蒙振诗
黄家平
周维林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bear Electrical Appliance Co Ltd
Original Assignee
Bear Electrical Appliance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bear Electrical Appliance Co Ltd filed Critical Bear Electrical Appliance Co Ltd
Priority to CN201921905097.5U priority Critical patent/CN210402081U/en
Application granted granted Critical
Publication of CN210402081U publication Critical patent/CN210402081U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The utility model belongs to the technical field of electronic circuits, in particular to an IO port multiplexing circuit and electronic equipment, which comprises a controller, a display module and an input module, wherein the controller is provided with a Com port and a plurality of Seg ports, the display module comprises a plurality of indicator lamps, the anode of each indicator lamp is respectively and electrically connected with a corresponding Seg port, the cathode of each indicator lamp is respectively and electrically connected with the Com port, the input module comprises an encoder and a plurality of pull-up resistors R1, the encoder is provided with a plurality of ports A, a plurality of ports B and a plurality of grounding terminals, each port A and each port B are respectively and electrically connected with one end of a corresponding pull-up resistor R1, the other end of each pull-up resistor R1 is respectively and electrically connected with the Seg port connected with the indicator lamps, because the display module and the IO port of the input module multiplexing controller, thereby saving the IO port of the controller, and selecting the controller with a small number of IO ports and pins, the cost of hardware is reduced, the structure of the PCB is simplified, and the circuit design is simpler and more convenient.

Description

IO port multiplexing circuit and electronic equipment
Technical Field
The utility model belongs to the technical field of electronic circuit, specifically be an IO port multiplex circuit and electronic equipment.
Background
The encoder and the display module are a common human-computer interaction interface of the existing household appliance, the encoder is used for controlling the working state of the appliance, and the display module is used for showing the current working state condition of the appliance. In the conventional circuit design, a single chip microcomputer with a plurality of IO ports is generally required, and the encoder and the display module are respectively connected to the IO ports corresponding to the single chip microcomputer.
SUMMERY OF THE UTILITY MODEL
An object of the utility model is to overcome prior art's not enough, provide an IO port multiplexing circuit to improve the compatibility of circuit and reduce the hardware cost of circuit.
In order to solve the technical problem, the utility model discloses a following technical scheme:
an IO port multiplexing circuit comprises a controller, a display module and an input module, wherein the controller is provided with a Com port and a plurality of Seg ports, the display module comprises a plurality of indicator lamps, the anode of each indicator lamp is electrically connected with one corresponding Seg port, the cathode of each indicator lamp is electrically connected with the Com port, the input module comprises an encoder and a plurality of pull-up resistors R1, the encoder is provided with a plurality of ports A, a plurality of ports B and a plurality of grounding ends, each port A and each port B are electrically connected with one end of one corresponding pull-up resistor R1, and the other end of each pull-up resistor R1 is electrically connected with the Seg port connected with the indicator lamp.
Compared with the prior art, the utility model discloses a display module and input module multiplex controller's IO port to save the IO port of controller, and still can choose IO port and pin small in quantity's controller for use, with the cost that reduces hardware, and simplified the structure of PCB board, make circuit design more simple and convenient.
Further, the port a is a pulse output port. Preferably, the encoder is a rotary encoder with a push switch, and the port B corresponds to the push switch of the encoder.
Furthermore, the display module further comprises a plurality of resistors R2, and each indicator light is electrically connected with the corresponding Seg port through one resistor R2, so as to improve the practicability of the circuit and enable the indicator lights with more specifications to be used. Preferably, the indicator light is a light emitting diode.
Further, when the output level of the Seg port connected with the indicator light is 1, the indicator light is turned on, and otherwise, when the output level of the Seg port connected with the indicator light is 0, the indicator light is turned off.
Further, before the indicator light is turned on, the output level of the Seg port connected with the port a and the port B is 0, so as to cancel the pull-up resistor and turn off the encoder.
Further, the multiplexing circuit resets every S time to detect the encoder again and adjust the lighting condition of the indicator light.
The utility model discloses detection and the drive of pilot lamp to the encoder adopt the timesharing to go on, during operation, carry out the encoder detection earlier, the Com port output logic level 1 of controller, the Seg port output logic level 0 who does not connect pull-up resistance R1, the controller can read out the state that the encoder corresponds the port through corresponding Seg port this moment, and keep, after the encoder detection finishes, the controller will be connected with the Seg port of pull-up resistance R1 and set as output logic level 0, cancel the pull-up resistance, in order to carry out the switching of signal, and according to the data that detect from the encoder with the corresponding Seg port of the pilot lamp that needs to light as output logic level 1 can accomplish the drive of pilot lamp, otherwise, set corresponding Seg port as output logic level 0 and can extinguish corresponding pilot lamp, the utility model discloses reset every S time, when reseing, repeat above step, to re-detect the illumination of the encoder adjustment indicator. The above is the working principle of the multiplexing circuit of the encoder and the display module, and the number of the control indicator light displays can be increased by increasing the number of the Seg ports and the Com ports.
The utility model also provides an electronic equipment who uses above-mentioned IO port multiplex circuit, in a specific implementation mode, electronic equipment is domestic appliance, can save the IO port of controller from this to still can choose IO port and the controller that the pin is small in quantity for use, with the cost that reduces hardware, and simplified the structure of PCB board, make circuit design simpler and more convenient.
Drawings
Fig. 1 is a circuit diagram of an IO port multiplexing circuit.
Detailed Description
The following describes embodiments of the present invention with reference to the drawings.
Referring to fig. 1, the present embodiment provides an IO port multiplexing circuit, which includes a controller 1, a display module 2, and an input module 3, where the controller 1 is provided with a Com port and a plurality of Seg ports, and the controller 1 may be a single chip microcomputer.
Referring to fig. 1, the display module 2 includes a plurality of indicator lamps 21 and a plurality of resistors R2, an anode of each indicator lamp 21 is connected to a resistor R2, which is electrically connected to a Seg port through the resistor R2, and a cathode of each indicator lamp 21 is electrically connected to the Com port. By providing a resistor R2 between the Seg port and the corresponding indicator light 21 to improve the utility of the circuit, more standard indicator lights 21 can be used, preferably the indicator lights 21 are light emitting diodes.
Referring to fig. 1, the input module 3 includes an encoder 31 and a plurality of pull-up resistors R1, the encoder 31 has a plurality of ports a, a plurality of ports B, and a plurality of ground terminals, each of the ports a and the ports B is electrically connected to one end of a corresponding one of the pull-up resistors R1, and the other end of each of the pull-up resistors R1 is electrically connected to the Seg port to which the indicator light 21 is connected.
When the Seg port output level connected to the indicator light 21 is 1, the indicator light 21 is turned on, whereas when the Seg port output level connected to the indicator light 21 is 0, the indicator light 21 is turned off. Before the indicator light 21 is turned on, the Seg port output level connected to the port a and the port B is 0 to cancel the pull-up resistor 32 and turn off the encoder 31. The multiplexing circuit is reset every S times, which in one embodiment is 125 microseconds.
Referring to fig. 1, in a specific embodiment, the plurality of Seg ports include Seg1, Seg2, Seg3, and Seg4, the plurality of indicator lights 21 include LEDs 1, LEDs 2, LEDs 3, and LEDs 4, and the plurality of pull-up resistors R1 include pull-up resistors R11Pull-up resistor R12And a pull-up resistor R13The plurality of resistors R2 includes a resistor R21Resistor R22Resistor R23And a resistor R24The port a of the encoder 31 is provided with two ports, including the pulse output port a1 and the pulse output port a2, the port B is provided with one port, the grounding end is provided with two ports, including the port C and the port D, specifically, the encoder 31 is the rotary encoder 31 with the push switch, and the above-mentioned port B corresponds to the push switch of the encoder 31.
The circuit connection mode of the encoder 31 is as follows:
pull-up resistor R11One end of the sensor is connected to Seg4, and the other end is connected to a pulse output port A1 of the encoder 31.
Pull-up resistor R12One end of the sensor is connected to Seg3, and the other end is connected to a pulse output port A2 of the encoder 31.
Pull-up resistor R13One end is connected to Seg2 and the other end is connected to port B of encoder 31.
The circuit connection mode of the display module 2 is as follows:
resistor R21One end of the LED 3978 is connected to Seg1, the other end is connected to the anode of LED1, and the cathode of LED1 is connected to the Com port.
Resistor R22One end of the LED 3978 is connected to Seg2, the other end is connected to the anode of LED2, and the cathode of LED2 is connected to the Com port.
Resistor R23One end of the LED 3978 is connected to Seg3, the other end is connected to the anode of LED3, and the cathode of LED3 is connected to the Com port.
Resistor R24One end of the LED 3978 is connected to Seg4, the other end is connected to the anode of LED4, and the cathode of LED4 is connected to the Com port.
The utility model discloses detection and the drive of pilot lamp 21 to encoder 31 adopt the timesharing to go on, in operation, encoder 31 detects first, Seg1 port output logic level 0, Seg2 port, Seg3 port and Seg4 port are the mode of input band pull-up resistance, controller 1 can read out the state of encoder 31 port A1, A2 and B through Seg2 port, Seg3 port and Seg4 port at this moment, and keep, after encoder 31 detects, controller 1 sets Seg2 port, Seg3 port and Seg4 port as output logic level 0, cancel pull-up resistance 32, in order to carry out the switching of signal, and according to the data that detects from encoder 31 will need the corresponding Seg port of pilot lamp 21 that lights up as output logic level 1 can accomplish the drive of pilot lamp 21, otherwise, set corresponding Seg port as output logic level 0 can extinguish corresponding pilot lamp 21, the utility model resets every other time, upon reset, the above steps are repeated to re-detect the lighting condition of the encoder 31 adjustment indicator lamp 21. The above is the operation principle of the multiplexing circuit of the encoder 31 and the display module 2, and the number of displays of the control indicator light 21 can be increased by increasing the number of Seg ports and Com ports. Compared with the prior art, the utility model discloses a display module 2 and 3 IO ports of multiplexing controller 1 of input module to save controller 1's IO port, and still can choose IO port and the little controller 1 of pin quantity for use, with the cost that reduces hardware, and simplified the structure of PCB board, make circuit design more simple and convenient.
In a specific implementation manner, the electronic device is a household appliance, such as an electric kettle, a tea boiler, an electric baking pan, and the like. Therefore, IO ports of the controller 1 can be saved, and the controller 1 with the small number of IO ports and pins can be selected, so that the cost of hardware is reduced, the structure of the PCB is simplified, and the circuit design is simpler and more convenient.
Variations and modifications to the above-described embodiments may occur to those skilled in the art, in light of the above teachings and teachings. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and changes to the present invention should fall within the protection scope of the claims of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims (10)

  1. An IO port multiplexing circuit, comprising:
    the controller is provided with a Com port and a plurality of Seg ports;
    the display module comprises a plurality of indicator lamps, the anode of each indicator lamp is electrically connected with one corresponding Seg port, and the cathode of each indicator lamp is electrically connected with the Com port;
    the input module comprises an encoder and a plurality of pull-up resistors R1, the encoder is provided with a plurality of ports A, a plurality of ports B and a plurality of grounding ends, each port A and each port B are respectively and electrically connected with one end of the corresponding pull-up resistor R1, and the other end of each pull-up resistor R1 is respectively and electrically connected with the Seg port connected with an indicator light.
  2. 2. The IO port multiplexing circuit of claim 1, wherein: the port A is a pulse output port.
  3. 3. The IO port multiplexing circuit of claim 1, wherein: the encoder is a rotary encoder with a press switch, and the port B corresponds to the press switch of the encoder.
  4. 4. The IO port multiplexing circuit according to any one of claims 1 to 3, wherein: the display module further comprises a plurality of resistors R2, and each indicator light is electrically connected with the corresponding Seg port through one resistor R2.
  5. 5. The IO port multiplexing circuit according to any one of claims 1 to 3, wherein: the indicator light is a light emitting diode.
  6. 6. The IO port multiplexing circuit according to any one of claims 1 to 3, wherein: and when the output level of the Seg port connected with the indicator light is 1, the indicator light is switched on, otherwise, when the output level of the Seg port connected with the indicator light is 0, the indicator light is switched off.
  7. 7. The IO port multiplexing circuit of claim 6, wherein: before the indicator light is conducted, the output level of a Seg port connected with the port A and the port B is 0, so that the pull-up resistor is cancelled, and the encoder is disconnected.
  8. 8. The IO port multiplexing circuit of claim 7, wherein: and the multiplexing circuit is reset every S time.
  9. 9. An electronic device, characterized in that: comprising the IO port multiplexing circuit of any one of claims 1 to 8.
  10. 10. The electronic device of claim 9, wherein: the electronic equipment is a household appliance.
CN201921905097.5U 2019-11-06 2019-11-06 IO port multiplexing circuit and electronic equipment Active CN210402081U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201921905097.5U CN210402081U (en) 2019-11-06 2019-11-06 IO port multiplexing circuit and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201921905097.5U CN210402081U (en) 2019-11-06 2019-11-06 IO port multiplexing circuit and electronic equipment

Publications (1)

Publication Number Publication Date
CN210402081U true CN210402081U (en) 2020-04-24

Family

ID=70343286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201921905097.5U Active CN210402081U (en) 2019-11-06 2019-11-06 IO port multiplexing circuit and electronic equipment

Country Status (1)

Country Link
CN (1) CN210402081U (en)

Similar Documents

Publication Publication Date Title
CN102111933A (en) Led drive circuit, phase control dimmer, led illumination fixture, led illumination device, and led illumination system
CN108882459A (en) A kind of brightness regulating circuit and system of UI indicator light
CN105792456B (en) LED drive circuit and LED luminance control method for display device for domestic electric appliance
CN201307949Y (en) Single-wire serial transmission drive chip and application circuit
CN210402081U (en) IO port multiplexing circuit and electronic equipment
CN213126552U (en) Light emitting diode control circuit and display device
CN101409965A (en) Circuit for controlling remote-control indicating lamp
CN207947928U (en) A kind of control system of color lamp
CN101330788B (en) LED luminous element for integration bidirectional redundancy control apparatus
CN209876620U (en) Light-emitting lamp strip and lampblack absorber
CN101877923B (en) Led drive circuit
CN212157841U (en) Control device of indicator lamp and electrical equipment
CN221652812U (en) Dimming control circuit set by using switch and switch dimming LED lamp circuit
CN101650899A (en) LED unit panel and LED display device
CN207650341U (en) A kind of component failure analysis system
CN206563891U (en) Cooking utensil
CN216752180U (en) Lamp control circuit and electrical equipment
CN221151600U (en) Light prompt circuit, prompt device and electronic equipment
CN201134945Y (en) Press key and display circuit for electromagnetic electric cooker
CN117612479B (en) Selection circuit, LED display device and LED lamp strip
CN219678712U (en) LED lamp control circuit and lamp
CN214315631U (en) Brightness adjusting circuit and electric heating appliance
CN211982187U (en) LED drive circuit of fan
CN216905375U (en) LED induction control circuit and LED induction night lamp socket
CN210535325U (en) Display control circuit and device

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant