AT24xx EEPROM driving method and device

A driving method and structure technology, applied in the computer field, can solve the problems of AT24xxEEPROM driver programming inconsistency, code redundancy, etc., and achieve the effects of convenient maintenance and upgrading, good adaptability, and simplified implementation

Active Publication Date: 2019-04-19
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, each type of chip I2C interface driver is written independently. When our products use different types of chips, it is necessary to adapt the specified type of chip driver.
Moreover, from the software design point of view, these AT24xx series EEPROM hardware designs have a great similarity, and the independent writing of the drivers will inevitably lead to redundant code design.
In addition, since the EEPROM of the AT24xx series has been put into the market for a long time, and Linux has undergone great changes during this period, especially the introduction of the ARM (Advanced RISC Machine, reduced instruction set machine) architecture After the tree, the matching method of the driver has shifted to DTS (Device Tree Source, device tree source code), while the early chip driver still uses the traditional legacy (legacy) method, which leads to the emergence of the same series of AT24xx EEPROM in the driver writing method Not the same

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
  • AT24xx EEPROM driving method and device
  • AT24xx EEPROM driving method and device
  • AT24xx EEPROM driving method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Embodiments of the present disclosure are described below. It is to be understood, however, that the disclosed embodiments are merely examples and that other embodiments may take various alternative forms. The figures are not necessarily to scale; some features may be exaggerated or minimized to show details of particular components. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a representative basis for teaching one skilled in the art to variously employ the present invention. As will be understood by persons of ordinary skill in the art, various features shown and described with reference to any one figure can be combined with features shown in one or more other figures to create embodiments not explicitly shown or described . Combinations of features shown provide representative embodiments for typical applications. However, various combinations and modifications of the features consist...

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 provides an AT24xx EEPROM driving method, which comprises the following steps of: instantiating an I2C driving core structure body, and registering the structure body into an I2C core; Encapsulating a local private structure body, calling a device enumeration function defined in a core structure body to initialize and store the local private structure body so as to prepare related software and hardware resources; And registering an upper layer-oriented operation function set through a device enumeration function, and calling a read-write function through the upper layer-orientedoperation function set to carry out read-write operation on the I2C interface of the AT24xx EEPROM. According to the method, universal driving for the AT24xx series EEPROM is realized, and meanwhile,multiple matching modes are supported, so that the EEPROM has better adaptability.

Description

technical field [0001] The present invention generally relates to the computer field, and more specifically, relates to an AT24xx EEPROM (Electrically Erasable Programmable Read-Only Memory) driving method and device. Background technique [0002] There are many EEPROM models of the AT24xx series, and the application scenarios are also very wide. However, the I2C interface driver of each type of chip is written independently. When our products use different types of chips, it is necessary to adapt the chip driver of the specified type. Moreover, from the perspective of software design, these AT24xx series EEPROM hardware designs have a great similarity, and separate and independent driver writing will inevitably lead to redundant code design. In addition, because the EEPROM of the AT24xx series has been put into the market for a long time, and Linux has undergone great changes during this period, especially the introduction of the ARM (Advanced RISC Machine, reduced instruc...

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): G06F13/16G06F13/38G06F13/40G06F13/42
CPCG06F13/1694G06F13/382G06F13/4072G06F13/4282G06F2213/0016
Inventor 王鹏
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products