I2C0_CONSET = I2C_CONSET_I2EN;
#ifdef FC1025
// the Microchip 24FC1025 can handle a 1 Mhz clock
- // PCLK / (i2c_clock * 2), with 48 Mhz PCLK that's 24...
- // for AltusMetrum, 14.7456 Mhz xtal, it's 29.4912, use 30.
- I2C0_SCLL = 30;
- I2C0_SCLH = 30;
+ // PCLK / (i2c_clock * 2), with 12 Mhz xtal and 48 Mhz PCLK that's 24...
+ I2C0_SCLL = 24;
+ I2C0_SCLH = 24;
#else
I2C0_SCLL = 240;
I2C0_SCLH = 240;