数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN1782 数据表(PDF) 3 Page - STMicroelectronics

部件名 AN1782
功能描述  STR71X I2C COMMUNICATION WITH M24CXX EEPROM
PDF  7 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN1782 数据表(HTML) 3 Page - STMicroelectronics

  AN1782 Datasheet HTML 1Page - STMicroelectronics AN1782 Datasheet HTML 2Page - STMicroelectronics AN1782 Datasheet HTML 3Page - STMicroelectronics AN1782 Datasheet HTML 4Page - STMicroelectronics AN1782 Datasheet HTML 5Page - STMicroelectronics AN1782 Datasheet HTML 6Page - STMicroelectronics AN1782 Datasheet HTML 7Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 3 / 7 page
background image
3/7
I2C COMMUNICATION BETWEEN STR71X AND M24CXX EEPROM
– Wait: then, it waits until the write operation is finished,
– Read: finally it reads the data already written.
3.2.1 Write Operation
Before starting the communication, the I2C bus must be in the free state (SCL and SDA must
be HIGH). The write sequence is started by getting control of the bus. This action, which puts
the bus in busy state, is performed by setting the START bit in the Control Register (CR) in
order to generate a START Condition. Then the slave address is written in the Data Register
(DR) with the R/Wbit=0. This causes the address to be sent to the slave. The address trans-
mission check is done by looping on the ENDAD flag in Status Register2 (SR2). This flag is
cleared by writing 0x20 in the Control Register (CR).
Then the master starts sending the data byte by writing it in the Data Register (DR). To
transmit a new data byte, the address or the data byte previously transmitted has to be com-
pleted correctly. The previous transmission check is done by looping on the BTF flag in Status
Register 1 (SR1). This flag is cleared by writing the next byte to be sent in the Data Register.
The first byte to be sent is the start address of the destination of the data.
A maximum of 16 bytes can be written to the M24C08 in a single write cycle.
The write sequence is ended by generating a STOP condition, by setting the STOP bit in the
Control Register (CR). This action releases the bus.
The following flowchart shows the different steps of the write cycle.
Figure 2. Write Operation Flowchart
Begin
End
Generate START Condition
Send Slave Address((R/W)bit=0)
Generate STOP Condition
Send String
Send the EEPROM’s internal
address to write to



Html Pages

1 2 3 4 5 6 7


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com