I have to use Channel 11 (RB4) in my 18F4550 application as an analog A/D input. This then requires me to set ADCON1 = %00000011 which also makes all ANx channels analog except Channel 12. This therefore makes the two pins that are normally SCL/SDA also analog as Channels 10/12 respectively even though I don't want to use them as analog. I need to use the SCL/SDA interface to digitally control and read a DS1337 clock in my application. Is there any way to keep SCL/SDA available as digital I/O while using Channel 11 as an analog A/D input? It appears from the data sheet table for ADCON1 that this is not possible. I can't believe MICROCHIP would design these chips so that you can't simultaneously use the A/D channels associated with the RB pins while using the SCL/SDA for I2C bus!
Bookmarks