I2C Communication with other than designated pins

Home Forums Microcontrollers PIC Microcontroller I2C Communication with other than designated pins

Tagged: , , , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15777
    goutham
    Participant

    I am using PIC 18F87k90. Is it possible to do serial I2C communication with other than SDA and SCL pins. Can I use PGD and PGC pins ?

    #15804
    Ligo George
    Keymaster

    I think the controller doesn’t have any option to change the SCL, SDA lines to PGD, PGC. So only option remaining is to use Software I2C.

    1. In your code you can program PGD, PGC lines as GPIO.
    2. You need to make SCL, SDA lines as Inputs (High Impedance state) when you need to drive it HIGH.
    3. You need to make SCL, SDA lines are Output LOW, when you need to drive it LOW.
    4. Basically you need to write entire I2C HIGH LOW signals using GPIO registers.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
>