This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

6678 i2c prescaler set in evmc66x_i2c.h

I'm using evm6678l board , I read the "evmc66x_i2c.c" and "evmc66x_i2c.h" ,

In evmc66x_i2c.h: 

"// I2C prescalar set to 16 to get module freq (1000MHz/6)/17 = 9.8 MHz"

"#define I2C_PRESCALER (16)"   

It calculate the module clock using   "module freq (1000MHz/6)/17 = 9.8 MHz" ,  I think the 1000MHZ is the system clock of the 6678DSP, But where is the "/6" comes from? 

If it is the value of PLL1 divider,  which header file does this "6" exist in? or In which header file does the PLL1 set exist in?

Thank you 

Regards

Fantastone

  •  It calculate the module clock using   "module freq (1000MHz/6)/17 = 9.8 MHz" ,  I think the 1000MHZ is the system clock of the 6678DSP, But where is the "/6" comes from? 

    If it is the value of PLL1 divider,  which header file does this "6" exist in? or In which header file does the PLL1 set exist in?

    Please refer the section 7.6 Main PLL and PLL Controller in data manual(Figure 7-9 Main PLL and PLL Controller).

    SYSCLK7: 1/6-rate clock for slow peripherals (GPIO, UART, Timer, I2C, SPI, EMIF16, etc.) and sources the SYSCLKOUT output pin.

    It uses PLLDIV7.

    Thank you.