Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for detecting I/O (input/output) interface faults in MCU (microprogrammed control unit)

A detection method and interface technology, applied in the direction of detecting faulty computer hardware, etc., can solve the problem of high and low level cannot be switched, and achieve the effect of reducing I/O usage, reducing price selection, and reliable and accurate detection.

Inactive Publication Date: 2015-03-11
SHENZHEN ZHENBANG TECH
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a detection method for I / O interface faults in MCU, aiming to solve the problem that the high and low levels of the control output cannot be switched in the existing detection in the prior art, and the detection input in the input mode will not change with the voltage of the external circuit while changing the problem

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for detecting I/O (input/output) interface faults in MCU (microprogrammed control unit)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] figure 1 Show the flow chart of the detection method of I / O interface failure in the MCU provided by the present invention, and its detailed description is as follows:

[0028] Step S1 , when detecting the MCU, first connect one end of a capacitor to the interface of the detected MCU, and the other end of the capacitor is grounded. Due to the hardware requirements of the MCU interface detection: consider the detection requirements in the hardware design, increase the capacitance, the capacitance should be as close to the interface as possible, not too far away, preferably at the solder joint position of the MCU interface, and the capacitance specification is "104".

[0029] Step S2, setting the corresponding I / O interface on the MCU as an output, and setting the output as a high level, and performing step S3. Take Atiny13A-MCU-PA0 port as an example: set DDRA=0X01; / / PA0 port of MCU as output, set PORTA=0X01; / / PA0 port output high level, to charge the capacitor.

[003...

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

The invention relates to a method for detecting I / O (input / output) interface faults in an MCU (microprogrammed control unit). The method comprises the following steps: A grounding a detected MCU interface through a capacitor; B setting the I / O interface corresponding to the MCU to be an output port and outputting a high level; C delaying preset time and then switching the I / O interface into an input mode; D judging and detecting whether the I / O interface inputs the high level or not; E setting the I / O interface to be an output interface and outputting a low level; F delaying preset time, and then switching the I / O interface into an input mode; G judging and detecting whether the I / O interface inputs the low level or not. I / O does not adopt redundancy I / O detection; the use of I / O is reduced; the price model selection of the MCU is reduced; the detection is relatively reliable and accurate; the detection range is relatively wide; conversion between the high level and the low level is finished by control output in monitoring by virtue of a charge and discharge capacitor; the detection input is changed along with voltage change of an external circuit in the input mode.

Description

technical field [0001] The invention belongs to the field of bus interfaces, in particular to a method for detecting I / O interface faults in an MCU. Background technique [0002] At present, the public has increased safety requirements for various electronic products, and there are many technologies for how to improve the safety of electronic control products, among which is the technology of I / O fault safety detection for the interface I / O of the control unit MCU. Among them, MCU refers to the control center of electronic products; I / O failure refers to the short circuit and open circuit of the control interface of the control unit; safety detection refers to the detection of fault information that will cause safety accidents at some I / O interfaces that affect safety , and eliminate failure safety hazards. [0003] At present, the detection technology for the I / O interface is to monitor through redundant I / O ports. Use the four I / O interfaces of PG1 / PG2 / P06 / P07 in the MCU...

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 Applications(China)
IPC IPC(8): G06F11/22
Inventor 宋志超陈志杰
Owner SHENZHEN ZHENBANG TECH