AN1328 STMicroelectronics, AN1328 Datasheet - Page 8

no-image

AN1328

Manufacturer Part Number
AN1328
Description
I2C COMMUNICATION PROTOCOL WRITTEN IN FUZZYSTUDIOTM4.0 FOR ST52X430
Manufacturer
STMicroelectronics
Datasheet
AN1328 - APPLICATION NOTE
Figure 10. The “Read” subroutine
The Read_Byte subroutine is described and commented in the FUZZYSTUDIO™4.0 project " By-
teRead.fs4 " you can download from our web site.
6. TIMES
Here are reported the times need to perform a write and read cycle.
and
These times are intended from the START to STOP commands. They has been measured using a logic
data analyzer with the micro working at 4.91MHz frequency (oscillator frequency).
Note that the write cycle time does not include the t
for doing its internal operation after receiving a STOP command. This time depends only by the memory
device and it can be 10 ms in the worst case.
7. CONCLUSION
In this application note the basics to realize an I
The structure of the two routines to write and read the byte to/from the memory was planned to be recalled
easily in a user program without doing significant changes on it. As the procedures have been written in
FUZZYSTUDIO
features of the I
8/9
2
TM
C protocol is easy to be developed starting from the described code.
T_write = 2.24 ms
T_read = 3.02 ms
4.0, they result very easy to be understood and any extension implementing the other
2
C communication protocol are provided.
w
(internal write cycle) time needed to the memory

Related parts for AN1328