Supercharge Your Innovation With Domain-Expert AI Agents!

A detection method of automobile switch signal

A technology of switch signal and detection method, which is applied in the direction of measuring electricity, measuring devices, measuring electrical variables, etc., can solve the problems of increasing cost, complex circuit structure, damage to CPU, etc., and achieve interference suppression, IO port protection, and good anti-interference Effect

Active Publication Date: 2018-01-23
XIAMEN YAXON NETWORKS CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Although the scheme proposed by this patent can also be used in the detection circuit of the automotive switching signal, the detection circuit provided by it has no effective measures to protect it, and the resistance is directly introduced into the IO port of the CPU, which may damage the CPU, and the circuit structure is complicated. ,increase cost

Method used

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
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described in conjunction with the accompanying drawings and specific embodiments.

[0026] A kind of detection method of automobile switching value signal of the present invention is realized by arranging detection circuit between CPU and the interface of automobile output switching value signal, such as figure 1 As shown, the detection circuit includes diode D1, diode D2, transistor Q1, transistor Q2, resistor R1, resistor R2, resistor R3, resistor R4, resistor R5, resistor R6 and capacitor C1, the negative end of diode D1 and one end of resistor R4 Connection, the other end of the resistor R4 is connected to the collector of the transistor Q2, the base of the transistor Q2 is connected in series with the resistor R6, and the emitter of the transistor Q2 is grounded; the positive end of the diode D1 is connected to one end of the resistor R2 and the positive end of the diode D2, and the positive end of the resistor R2 The other end...

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

PUM

No PUM Login to View More

Abstract

A method for detecting a switch signal of an automobile, comprising: step 1: establishing a detection circuit; step 2: connecting the detection circuit to the CPU: the negative end of the diode D1 is used as an input terminal to receive the switch signal INPUT of the automobile; the transistor Q1 The collector of the transistor Q2 is connected to the IO port of the CPU to input the TTL level signal OUTPUT to the CPU; the base of the triode Q2 is connected to the IO port of the CPU after connecting the resistor R6 in series to receive the timing scanning signal PULL_DOWN of the CPU; Step 3: The CPU generates Regularly scan the signal PULL_DOWN to control whether the INPUT at the input end is connected to the ground by the pull-down resistor R4, and read the value of the IO port every time a switch is made, and then compare it with the OUTPUT read last time: if the OUTPUT read twice is the same , then: CPU reads that OUTPUT is 1, then judges that INPUT is low level; reads OUTPUT is 0, then INPUT is high level; When OUTPUT is judged to be high level; when there is no pull-down resistor, judge OUTPUT to be low level.

Description

technical field [0001] The invention belongs to a state detection circuit, in particular to a detection circuit of an automobile switch signal. Background technique [0002] At present, there are three states in the switch signal detection on the car: high level (connected to the positive pole of the car battery), low level (grounded, connected to the negative pole of the battery), and floating, and there are two effective states: high active and low active. There are several traditional solutions for the switch signal detection of automobiles: using optocoupler isolation conversion, diode isolation conversion and AD acquisition, etc., and these traditional solutions can only be aimed at only one effective state (that is, a circuit can only be used alone) Detect high effective or low effective), and the IO of a CPU can only recognize two states, and it is impossible to achieve high effective or low effective and compatible solutions at the same time. Among them, the resista...

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G01R31/00
Inventor 叶志聪蔡运文吴振达陈茹涛肖振隆
Owner XIAMEN YAXON NETWORKS CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More