AN1525 STMicroelectronics, AN1525 Datasheet - Page 6

no-image

AN1525

Manufacturer Part Number
AN1525
Description
I2C COMMUNICATION BETWEEN ST52X520 AND EEPROM
Manufacturer
STMicroelectronics
Datasheet
AN1525 - APPLICATION NOTE
Figure 9. EXTERNAL INTERRUPT WINDOW
2
4.2 I
C Interrupt Window
2
The routine of the interrupt window of the I
C peripheral (represented in figure 10) manages all the phases
that are necessary for the correct reading and writing sequence. As can be seen in Figure 8, each time a
2
START condition begins or data begins, the I
C peripheral of the microcontroller sends an interrupt re-
quest that will have to be managed by the user (EVx events).
4.2.1 Common steps in reading and writing.
2
2
When the I
C peripheral of the microcontroller has sent the START condition, the I
C routine will be called.
Block RD_SR1_SR2 is the first block that will be executed (this will occur at every call of the routine). The
2
Status Register of the I
C peripheral is read in this block (SR1-other than the Status Register SR2, which
can be used to manage eventual transmission or reception erros, errors which are not managed in this
example) via the instruction SR1 = _inpReg_07 (and SR2=_inpReg_08).
2
Figure 10. I
C INTERRUPT WINDOW
6/12

Related parts for AN1525