I2C clock pullled low
Posted: Mon Feb 10, 2025 2:50 pm
Hey everyone
I am using Flowcode 10 and I would like to exchange data between two PIC18F66K22 via I2C.
One PIC18F66K22 acts as a I2C Master and is currently communicating with a port expander (PI4IOE5V96248) at address 0x64 and a PWM-Chip at address 0x64 using the "PWM 16CH 12Bit (PCA9685)" component in Flowcode.
This basic setup with the Master PIC18F66K22 plus port expander and PWM-Chip works perfectly fine.
As soon as I initialise the I2C Slave on the second PIC18F66K22, SCL is pulled from 5V to 0V. SDA is not affected and is constantly 5V (if there is no communication of course).
If the Master is not initialised but the Slave is, SCL remains on 5V so the problem seems to be between the two identical PIC18F66K22.
As the Master is working with the other components I assume that the Slave is the issue.
I checked the configuration bits (which are the same for both PIC18F66K22) as well as the hardware and both are fine. Also I tried using different addresses for the slave but to no avail.
Could there be anything wrong with the configuration bits or does anyone have any idea as to why this setup doesn't work?
Help is greatly appreciated.
I am using Flowcode 10 and I would like to exchange data between two PIC18F66K22 via I2C.
One PIC18F66K22 acts as a I2C Master and is currently communicating with a port expander (PI4IOE5V96248) at address 0x64 and a PWM-Chip at address 0x64 using the "PWM 16CH 12Bit (PCA9685)" component in Flowcode.
This basic setup with the Master PIC18F66K22 plus port expander and PWM-Chip works perfectly fine.
As soon as I initialise the I2C Slave on the second PIC18F66K22, SCL is pulled from 5V to 0V. SDA is not affected and is constantly 5V (if there is no communication of course).
If the Master is not initialised but the Slave is, SCL remains on 5V so the problem seems to be between the two identical PIC18F66K22.
As the Master is working with the other components I assume that the Slave is the issue.
I checked the configuration bits (which are the same for both PIC18F66K22) as well as the hardware and both are fine. Also I tried using different addresses for the slave but to no avail.
Could there be anything wrong with the configuration bits or does anyone have any idea as to why this setup doesn't work?
Help is greatly appreciated.