ADI AN-1009 Application Note: Reading and Writing the ADM106x EEPROM

Publisher:陈书记Latest update time:2013-04-26 Keywords:ADI  AN-1009  ADM106x  EEPROM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Block Erase, Block Read, and Block Write for the ADM106x EEPROM

  This application note describes how to perform block erase, block write, and block read of a single page (32 bytes) of the ADM106x EEPROM space. For the sake of explanation in this article, it is assumed that the EEPROM range to be erased, written, and read is 0xF8; 0x00 to 0xF8; 0x1F.

  0xF8; 0x00 to 0xF8; 0x1F Block erase of EEPROM space

  To perform a block erase of the EEPROM space, follow the steps below.

  1. Write 0x05 to Register 0x90 to enable EEPROM block erase.

  2. Perform all SMBus operations listed below.

  • Send slave address WRITE

  • Receive reply message

  • Send EEPROM high address (0xF8)

  • Receive reply message

  • Send EEPROM low address (0x00)

  • Receive reply message

  • Send STOP

  • Send slave address WRITE

  • Receive reply message

  • Send Page Erase command code (0xFE)

  • Receive reply message

  • Send STOP

  3. Repeat the procedure in step 2 for each EEPROM page to be erased. However, the lower address (Send EEPROM Lower Address) should be incremented by 32 bytes, for example: 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0, and 0xE0.

  4. Write 0x01 to Register 0x90 to disable EEPROM block erase.

  0xF8; 0x00 to 0xF8; 0x1F Block write of EEPROM space

  To perform a block write to the EEPROM space, perform the following steps.

  1. Perform all the actions listed below.

  • Send slave address WRITE

  • Receive reply message

  • Send EEPROM high address (0xF8)

  • Receive reply message

  • Send EEPROM low address (0x00)

  • Receive reply message

  • Send STOP

  • Send slave address WRITE

  • Receive reply message

  • Send a block write command (0xFC)

  • Receive reply message

  • Send the number of bytes to write (0x20)

  • Receive reply message

  • Send 32 bytes of data

  • Receive an Acknowledge message from the slave after each byte is sent

  • Send STOP

  2. Repeat the procedure in step 1 for each EEPROM page to be written. However, the lower address (Send EEPROM Lower Address) should be incremented by 32 bytes, for example: 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0, and 0xE0.

  0xF8; 0x00 to 0xF8; 0x1F Block read of EEPROM space

  To perform a block read of the EEPROM space, follow these steps.

  1. Write 0x01 to Register 0x90 to enable continuous update of the configuration registers.

  2. Perform all the actions listed below.

  • Send slave address WRITE

  • Receive reply message

  • Send EEPROM high address (0xF8)

  • Receive reply message

  • Send EEPROM low address (0x00)

  • Receive reply message

  • Send STOP

  • Send slave address WRITE

  • Receive reply message

  • Send a block read command (0xFD)

  • Receive reply message

  • Send slave address READ

  • Receive reply message

  • Receive the number of data bytes to read (0x20)

  • Send host reply message

  • Receive 32 bytes of data

  • Send a host acknowledgement message after each byte received

  • Send STOP

  3. Repeat the procedure in step 2 for each EEPROM page to be read. However, the lower address (Send EEPROM Lower Address) should be incremented by 32 bytes, for example: 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0, and 0xE0.

Keywords:ADI  AN-1009  ADM106x  EEPROM Reference address:ADI AN-1009 Application Note: Reading and Writing the ADM106x EEPROM

Previous article:How to Control Stray Inductance in IGBT Inverter Design
Next article:How to reasonably construct a DAC 1ppm analog-to-digital conversion precision instrument design solution?

Recommended ReadingLatest update time:2024-11-15 10:49

The key to choosing is trade-offs. ADI's two high-performance power technologies explain how to overcome multi-dimensional performance challenges
In an electrified society, power supplies are ubiquitous. Different types of power supply technologies play an important role from the initial power generation side to the terminal chip. The design of the power supply system in a highly integrated electronic product even accounts for 50% of the total design. Various p
[Power Management]
The key to choosing is trade-offs. ADI's two high-performance power technologies explain how to overcome multi-dimensional performance challenges
IIC realizes reading and writing of EEPROM (24C02)
Overview: The EEPROM chip model is 24C02. The total capacity of the chip is 256 bytes. The chip is connected to the outside through the IIC bus. Experimental function: Use the KEY1 button to control the writing of 24C02, and use another button KEY0 to control the reading of 24C02. Hardware circuit: IIC configu
[Microcontroller]
IIC realizes reading and writing of EEPROM (24C02)
Vehicle Tracking System: Under Control Anytime, Anywhere
车辆跟踪系统 非常适合监视一辆汽车或整个车队。跟踪系统由自动跟踪硬件和用于收集数据(如果需要的话,还有数据传输)的软件组成。2015年,全球车队管理市场的规模为80亿美元,预计到2022年将超过220亿美元,从2016年到2023年,年复合增长率将超过20%(数据来源:Global Market Insights)。拉美、中东和非洲对商用车辆的需求在上升,这对 车辆跟踪系统 而言也是一种潜在的增长机会。在欧洲、北美等发达地区,预计物联网(IoT)技术与车辆的集成会促使 车辆跟踪系统 采用率的提高,尽管集成的高成本减缓了这一过程。此外,预计同一时期亚洲车辆跟踪市场的规模将显著增长,日本、印度和中国是起主要驱动作用的国家。这些新兴市
[Automotive Electronics]
Vehicle Tracking System: Under Control Anytime, Anywhere
Come! Take you to the scene of this year's Asian Bluetooth Headset Exhibition
The autumn breeze is pleasant and the fruits are fragrant, and ADI is busy participating in offline exhibitions! At the (Autumn) Asian Bluetooth Headset Exhibition held in Shenzhen, ADI brought a new generation of low-power active noise reduction chips developed by ADI China Business Unit, with multiple key performanc
[Embedded]
Come! Take you to the scene of this year's Asian Bluetooth Headset Exhibition
AVR external expansion EEPROM C programming complete decryption (all programs, timing explanation)
//==============Header file=================// #include "24C16.h" //==============================================================================================// //Function name: init_24C16 //Function function: I2C pin initialization. //Input parameters: none. //Output parameters: none. //Return value: none. //e
[Microcontroller]
8051 emulates IIC operation of EEPROM
Note: The content of this article is the same as the idea of ​​STM32 emulating IIC to operate EEPROM, which is a program ported to different platforms. First, the contents of the EEPROM.h file: #ifndef _eeprom_h_ #define _eeprom_h_ #include reg52.h //Include header file, generally no need to change, the hea
[Microcontroller]
Analog Devices, the world's second largest analog chip manufacturer, issued a letter: Prices will increase by 10-20% starting in February next year.
According to ITN reports on December 29, Analog Devices (ADI), the world's second largest analog chip manufacturer, recently issued a price increase notice to its agents in China, stating that it expects that starting from February next year, some product lines will increase in price by 10- 20%. ADI stated in the pric
[Semiconductor design/manufacturing]
A brief discussion on ADI's complete solution for smart grid
China State Grid announced that it will build a nationwide smart grid by 2020, and has invested 4 trillion yuan in basic design and construction. The implementation of this grand plan will involve a wide range of related fields such as new energy power generation, new energy grid access, large-capacity energy storage,
[Analog Electronics]
A brief discussion on ADI's complete solution for smart grid
Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号