switching to 12 Mhz xtal so USB functions correctly
authorBdale Garbee <bdale@gag.com>
Fri, 15 Feb 2008 01:19:21 +0000 (18:19 -0700)
committerBdale Garbee <bdale@gag.com>
Fri, 15 Feb 2008 01:19:21 +0000 (18:19 -0700)
i2c/i2cInt.c

index 24cb26d6d86908655a6bc5417a021fc915bbdd8c..016fd2b4523f613326e3f2f96c6ed13fa9b7bf38 100644 (file)
@@ -187,10 +187,9 @@ void i2cInit (void)
   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;