AN1146 STMicroelectronics, AN1146 Datasheet - Page 8

no-image

AN1146

Manufacturer Part Number
AN1146
Description
I2C COMMUNICATION BETWEEN ST52X301 AND EEPROM
Manufacturer
STMicroelectronics
Datasheet
AN1146 - APPLICATION NOTE
8/14
4.2.1 ‘Read_data’ block
To read the eigth bit data sent from the memory, ST52x301 performs a cycle scanned by a variable
‘ cont ’: at each step ‘cont’ is incremented from 0 to 7 and one bit of the data is received into pin P0
(block ‘Receive0’) after the rising edge of the clock SCL (pin P8 of ST52x301).
The block ‘ bit_data ’ allows to build the data byte contained in the addressed location from each bit
received from the memory (See Appendix 2 for assembler code”).
4.2.2 ‘Send_ack’ block
In accordance with the I
the pin P0 high, before sending the STOP condition.
Fig. 10 - Read_data block
Fig. 11 - Send_ack block
2
C communicating protocol, at the end of the data byte receipt, ST52x301 puts

Related parts for AN1146