AnsweredAssumed Answered

About I2C_DutyCycle and I2C_OwnAddress1

Question asked by shen.eugene on Jan 14, 2012
Latest reply on Feb 15, 2012 by Clive One
I2C_InitStructure.I2C_DutyCycle = I2C_DutyCycle_2;
I2C_InitStructure.I2C_OwnAddress1 = 0x33;

/** @defgroup I2C_duty_cycle_in_fast_mode
  * @{
  */

#define I2C_DutyCycle_16_9              ((uint16_t)0x4000) /*!< I2C fast mode Tlow/Thigh = 16/9 */
#define I2C_DutyCycle_2                 ((uint16_t)0xBFFF) /*!< I2C fast mode Tlow/Thigh = 2 */
#define IS_I2C_DUTY_CYCLE(CYCLE) (((CYCLE) == I2C_DutyCycle_16_9) || \
                                  ((CYCLE) == I2C_DutyCycle_2))


I'd like to know when I should choose I2C_DutyCycle_16_9. And the value of the I2C_OwnAddress1 could be any 7-bit or 10-bit address, couldn't it?

Outcomes