Hi, I have configure the I2C clock on the GPIO18.
GPIO_setPinConfig(GPIO_18_I2CA_SCL);
GPIO_setPadConfig(18, GPIO_PIN_TYPE_PULLUP);
GPIO_setQualificationMode(18, GPIO_QUAL_ASYNC);
I have also configure the I2C_initMaster:
I2C_initMaster(I2CA_BASE, 100000000, 400000, I2C_DUTYCYCLE_33);
and connected digital Ocsilloscope to see that i get the correct clock frequency, but all i can see is very noisy wave with 20MHz frequency.
also this is part of my device init to config external oscillator:
//
// Set up PLL control and clock dividers
//
SysCtl_setClock(DEVICE_SETCLOCK_CFG);
//
// Make sure the LSPCLK divider is set to the default (divide by 4)
//
SysCtl_setLowSpeedClock(SYSCTL_LSPCLK_PRESCALE_4);
we have external oscillator of 20MHz that connected to X1.
I'm a bit at a lost as to what the problem is and why I can't get the clock for the I2C.
Do you have any advice on what am I doing wrong?