RE: I2C Master on PIC24FJ64 Series
I've been trying to get my PIC24FJ64GB002 to work with I2C which is needed for reading sensor values for a semester project, and with less than a month left I'm tearning my hair out trying to solve this problem..
My issue is that I'm using I2C1 but I get absolutly not output at all.. If I'm trying to bitbang like suggested on robot-electronics.co.uk, nothing is happening on the bus, as it's constantly high. However if I remove my pull-up resistors (4k7) then the output seems to function correctly.. But then I can't use it for input..
Unfortunatly the errata doesn't mention any issues regarding I2C for this particulair microprocessor.
I haven't tried any of the workarounds nor tried the I2C2 module, but my question is what to do.. Basically I have several solutions:
1. Try the workarounds mentioned in here
2. Switch to I2C2 and check wether it works
3. Switch to a dsPIC33 instead
What seems to be the best solutions both in terms of speed and reliability? And has anyone had similiar issues that no output generated at all? A bus that is constantly high.