yefj
Advanced Member level 5
Hello,In an example code for I2C i have saw these two lines.
from chapter 11 page 280 of the reference manual of EFR32FG14 shown bellow we have the clock logic.
from page 488 shown bellow in the reference manual for I2C i need to use clock of at least 2MHz of HFPERCLK.
I cant see this type of clock but i see HFRCO which is 1M-38MHz as shown bellow.
from 11.3.2.1.3 we need to enable it in CMU_OSCENCMD by default its 19MHZ.
In page 328 as shown bellow i see how to enable it .
How do i reduce the default 19MHz to 2Mhz? (as needed for standart I2C)
Thanks.
Page 488
Code:
CMU_ClockEnable(cmuClock_HFLE, true);
// Starting LFXO and waiting until it is stable
CMU_OscillatorEnable(cmuOsc_LFXO, true, true);
from page 488 shown bellow in the reference manual for I2C i need to use clock of at least 2MHz of HFPERCLK.
I cant see this type of clock but i see HFRCO which is 1M-38MHz as shown bellow.
from 11.3.2.1.3 we need to enable it in CMU_OSCENCMD by default its 19MHZ.
In page 328 as shown bellow i see how to enable it .
How do i reduce the default 19MHz to 2Mhz? (as needed for standart I2C)
Thanks.
Page 488
Last edited: