Toggle switch state detection circuit, method and device

A toggle switch, state detection technology, applied in the field of electronics, can solve the problem of occupying chip hardware resources and so on
CN109932647AActive Publication Date: 2019-06-25SICHUAN HONGMEI INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
SICHUAN HONGMEI INTELLIGENT TECH CO LTD
Publication Date
2019-06-25

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The present invention provides a toggle switch state detection circuit, method and device. The circuit comprises: toggle switch sets with a first quantity, output ports with a first quantity, detection ports with a second quantity, pull-up resistors with a second quantity, and diodes corresponding to the toggle switches. The second quantity is the maximum toggle switching number of the toggle switch sets; one end of each pull-up resistor is connected with a first voltage, and the other end of each pull-up resistor is connected with each detection port; one end of each toggle switch is connected with the detection port, and the other end of each toggle switch is connected with the positive pole of the corresponding diode; the detection ports connected with different toggle switches in the same set are different; the negative pole of each diode is connected with one output port; when the toggle switches corresponding to two diodes belong to the same set, the output ports connected with the toggle switches are the same, or else, the output ports connected with the toggle switches are different; and the on-off state of the line connected with any one output port is controllable. Basedon the on-off control of the line connected with each output port, the switching state of each toggle switch is determined according to the level at each detection port. Therefore, the scheme can reduce the arrangement number of the I / O ports.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field

[0001] The present invention relates to the field of electronic technology, in particular to a toggle switch state detection circuit, method and device. Background technique

[0002] There are various types of existing toggle switch state detection circuits.

[0003] At present, it is commonly used that a single switch is connected to a single I / O (input / output) port in switch detection.

[0004] In this way, when the number of toggle switches is large, more I / O ports need to be set, which will occupy a lot of chip hardware resources. Summary of the invention

[0005] The invention provides a toggle switch state detection circuit, method and device, which can reduce the number of I / O ports.

[0006] In order to achieve the above objectives, the present invention is achieved through the following technical solutions:

[0007] In the first aspect, the present invention provides a toggle switch state detection circuit, including:

[0008] A first number of toggle switch gro...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More