cdop
YaBB Newbies
Posts: 6
|
Hi! I want my i2c bus on lower speed. In i2c.c it says: #define PRESCALE120M 12 // factor = 12, 120MHz/10MHz and later *pTWI_CLKDIV = CLKLOW(67) | CLKHI(33); // For 100KHz SCL speed: CLKDIV = (1/100KHz)/(1/10MHz) = 100 So if I wanted my bus on 10Khz, would I need to set PRESCALE120M to 120? Or is there any other way to set the i2c bus speed? Thanks, Mathias
|