2010-12-09 09:11 AM
I2C not working
2011-05-17 05:17 AM
2011-05-17 05:17 AM
Hello alex,
I would point out the steps I needed to follow in order to make I2C work.2011-05-17 05:17 AM
WEll, now the I2C is in operational mode, but still not working quite right.
The clock line doesnt seem to generate a clock for starters, im trying to send a start signal, then the adress, then repeated start, then adrress again, etc. this is what im getting on the scope, and my code:2011-05-17 05:18 AM
WEll, now the I2C is in operational mode, but still not working quite right. The clock line doesnt seem to generate a clock
Check you have the right pins, and there is a pull up on the clock pin. Better yet, use the library and example code.2011-05-17 05:18 AM
These are the right pins, and both have pull up resistors.
I really need to build this on my own, and not use libraries for the purposes of my project. Any other solutions & suggestions will be appreciated!2011-05-17 05:18 AM
Are you allowed to use library code and examples to test the hardware?
If you can isolate the probem to either hardware, or software, progress may be easier and quicker.2011-05-17 05:18 AM
I really need to build this on my own....
How fantastically ironic. Ok, what is your clock rate for the APB1? I'd guess from the settings 8 MHz, but your comments suggest 36 MHz, so which is it?2011-05-17 05:18 AM
I really need to build this on my own....
How fantastically ironic.
hehe, by ''on my own'' I meant ''manually'', not alone, in the dark, without internet :) As for the clock rate, its 8 MHz, the comments for the I2C2_xxx registers are wrong for some reason. I took all the clock settings from the reference manual, it has an exapmle for setting the right clock rates for 100 kHz speed