Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A control method for iic bus unlocking

A control method and unlocking technology, applied in the direction of program control, computer control, general control system, etc., can solve the problems that the control unit cannot communicate with the storage unit, and the air conditioner cannot operate normally, so as to reduce the after-sales complaint rate and improve the reading accuracy rate, cost-increasing effect

Active Publication Date: 2022-02-01
NINGBO AUX ELECTRIC +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The purpose of the present invention is to solve the problem that the control unit cannot communicate with the storage unit after the IIC bus is locked, so that the air conditioner cannot operate normally

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
  • A control method for iic bus unlocking
  • A control method for iic bus unlocking
  • A control method for iic bus unlocking

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0057] The IIC bus in this embodiment includes 9 always pulses, with figure 2 It is the timing diagram of the IIC bus.

[0058] When the device is running, if the control unit MCU just sends the 9th clock pulse, SCL is at high level at this time, and the storage unit EEPROM pulls down SDA to prepare for ACK response. Under normal circumstances, after the 9th clock pulse is sent by the MCU, SCL becomes low, EEPROM can release SDA as high level.

[0059] However, if the MCU is reset during the 9th clock pulse and the EEPROM is still working normally, the SCL will always be high when the MCU is reset. At this time, EEPROM will not wait until SCL becomes low level, EEPROM will continue to respond and cannot release SDA, and SDA is always low level; after the MCU is reset, it is found that SDA is always low and it is considered occupied, and it will always wait EEPROM releases SDA high. At this point, MCU and EEPROM wait for each other, and the IIC bus enters a deadlock state. ...

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 control method for unlocking an IIC bus. This method is used to unlock the IIC lock caused by the process of the control unit reading the storage unit. The method comprises the steps of: configuring the SCL and SDA pins on the control unit as GPIO mode; setting the unlocking sequence on the IIC bus, and making the storage unit release the SDA by running and circulating the unlocking sequence for N times; configuring the SCL on the control unit , The SDA pin is in IIC mode; initialize the control unit and storage unit. Therefore, by setting the unlocking sequence, the IIC bus can be effectively unlocked to avoid the situation that the MCU cannot read the EEPROM data due to the IIC bus being locked.

Description

technical field [0001] The invention relates to the technical field of air conditioners, in particular to a control method for unlocking an IIC bus. Background technique [0002] The parameter values ​​processed during the operation of the air conditioner are generally stored in the memory chip, and the memory chips commonly used at present are generally EEPROMs of various capacities. The EEPROM data is usually read by the MCU when the main board of the air conditioner is powered on, and then the MCU controls the operation of the unit according to the parameters corresponding to the read EEPROM data. [0003] In practical application, during the process of MCU reading EEPROM data, the following situations will probabilistically cause the IIC bus to be locked: [0004] (1) Since the operating voltage ranges of the MCU chip and the EEPROM are often inconsistent, when the working voltage of the EEPROM is lower than that of the MCU chip, and the power supply voltage fluctuates ...

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): G05B19/042
CPCG05B19/0423G05B2219/21119
Inventor 李超
Owner NINGBO AUX ELECTRIC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products