Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1782 Datasheet(PDF) 3 Page - STMicroelectronics

Part # AN1782
Description  STR71X I2C COMMUNICATION WITH M24CXX EEPROM
PDF  7 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1782 Datasheet(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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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