STMicroelectronics RM0365 Reference Manual page 822

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0365
Bit 15 NACK: NACK generation (slave mode)
The bit is set by software, cleared by hardware when the NACK is sent, or when a STOP
condition or an Address matched is received, or when PE=0.
Note: Writing '0' to this bit has no effect.
Bit 14 STOP: Stop generation (master mode)
The bit is set by software, cleared by hardware when a Stop condition is detected, or when PE
= 0.
In Master Mode:
Note: Writing '0' to this bit has no effect.
Bit 13 START: Start generation
This bit is set by software, and cleared by hardware after the Start followed by the address
sequence is sent, by an arbitration loss, by a timeout error detection, or when PE = 0. It can
also be cleared by software by writing '1' to the ADDRCF bit in the I2C_ICR register.
– If the I2C is already in master mode with AUTOEND = 0, setting this bit generates a
– Otherwise setting this bit will generate a START condition once the bus is free.
Note: Writing '0' to this bit has no effect.
Bit 12 HEAD10R: 10-bit address header only read direction (master receiver mode)
Note: Changing this bit when the START bit is set is not allowed.
Bit 11 ADD10: 10-bit addressing mode (master mode)
Note: Changing this bit when the START bit is set is not allowed.
Bit 10 RD_WRN: Transfer direction (master mode)
Note: Changing this bit when the START bit is set is not allowed.
0: an ACK is sent after current received byte.
1: a NACK is sent after current received byte.
This bit is used in slave mode only: in master receiver mode, NACK is automatically
generated after last byte preceding STOP or RESTART condition, whatever the NACK
bit value.
When an overrun occurs in slave receiver NOSTRETCH mode, a NACK is
automatically generated whatever the NACK bit value.
When hardware PEC checking is enabled (PECBYTE=1), the PEC acknowledge value
does not depend on the NACK value.
0: No Stop generation.
1: Stop generation after current byte transfer.
0: No Start generation.
1: Restart/Start generation:
Repeated Start condition when RELOAD=0, after the end of the NBYTES transfer.
The START bit can be set even if the bus is BUSY or I2C is in slave mode.
This bit has no effect when RELOAD is set. In 10-bit addressing mode, if a NACK is
received on the first part of the address, the START bit is not cleared by hardware and
the master will resend the address sequence, unless the START bit is cleared by
software
0: The master sends the complete 10 bit slave address read sequence: Start + 2 bytes 10bit
address in write direction + Restart + 1st 7 bits of the 10 bit address in read direction.
1: The master only sends the 1st 7 bits of the 10 bit address, followed by Read direction.
0: The master operates in 7-bit addressing mode,
1: The master operates in 10-bit addressing mode
0: Master requests a write transfer.
1: Master requests a read transfer.
DocID025202 Rev 7
Inter-integrated circuit (I2C) interface
822/1080
834

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RM0365 and is the answer not in the manual?

Questions and answers

Table of Contents