Auto Page CPX-3600 Especificaciones Pagina 165

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 243
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 164
ST72321xx-Auto I2C bus interface (I2C)
Doc ID 13829 Rev 1 165/243
16.7.2 I
2
C status register 1 (SR1)
1STOP
Generation of a Stop condition
This bit is set and cleared by software. It is also cleared by hardware in master
mode.
Note: This bit is not cleared when the interface is disabled (PE = 0).
In Master mode
0: No stop generation
1: Stop generation after the current byte transfer or after the current Start condition
is sent. The STOP bit is cleared by hardware when the Stop condition is sent.
In Slave mode
0: No stop generation
1: Release the SCL and SDA lines after the current byte transfer (BTF = 1). In this
mode the STOP bit has to be cleared by software.
0ITE
Interrupt enable
This bit is set and cleared by software and cleared by hardware when the interface
is disabled (PE = 0).
0: Interrupts disabled
1: Interrupts enabled
Refer to Figure 69 and Tabl e 82 for the relationship between the events and the
interrupt.
SCL is held low when the ADD10, SB, BTF or ADSL flags or an EV6 event (see
Figure 68) is detected.
Table 83. CR register description (continued)
Bit Name Function
SR1 Reset value: 0000 0000 (00h)
76543210
EVF ADD10 TRA BUSY BTF ADSL M/SL SB
RO RO RO RO RO RO RO RO
Table 84. SR1 register description
Bit Name Function
7EVF
Event flag
This bit is set by hardware as soon as an event occurs. It is cleared by software
reading SR2 register in case of error event or as described in Figure 68. It is also
cleared by hardware when the interface is disabled (PE = 0).
0: No event
1: One of the following events has occurred:
- BTF = 1 (Byte received or transmitted)
- ADSL = 1 (Address matched in Slave mode while ACK = 1)
- SB = 1 (Start condition generated in Master mode)
- AF = 1 (No acknowledge received after byte transmission)
- STOPF = 1 (Stop condition detected in Slave mode)
- ARLO = 1 (Arbitration lost in Master mode)
- BERR = 1 (Bus error, misplaced Start or Stop condition detected)
- ADD10 = 1 (Master has sent header byte)
- Address byte successfully transmitted in Master mode
Vista de pagina 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 242 243

Comentarios a estos manuales

Sin comentarios