From 6fa7af38a539cb6605921c0b1f442416eaf678cf Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Thu, 14 Feb 2008 18:19:21 -0700 Subject: [PATCH] switching to 12 Mhz xtal so USB functions correctly --- i2c/i2cInt.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/i2c/i2cInt.c b/i2c/i2cInt.c index 24cb26d..016fd2b 100644 --- a/i2c/i2cInt.c +++ b/i2c/i2cInt.c @@ -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; -- 2.30.2