Page 1 of 1

PIC18F27Q10 I2C problem

Posted: Mon Sep 08, 2025 2:26 pm
by Sasi
Hello,

I would like to implement distance measurement using a PIC18F27Q10 MCU.
I have connected a VL53L0X sensor and an SSD1306 OLED display to a common I2C bus.

a.) I’ve observed that when I set the channel 1, there is no activity on the I2C bus at all.

b.) When I use channel 2, the display works, but the TOF sensor does not.
In the test project, when the TOF sensor Component Macro runs, the CLK line remains "LOW" level in idle state, which causes the protocol not to work.

I updated all component macros to the latest release before testing.
18F27Q10_I2C_test.fcfx
(19.46 KiB) Downloaded 4 times
I would be very happy if this could be resolved.
Regards,
Sasi

Re: PIC18F27Q10 I2C problem

Posted: Mon Sep 08, 2025 2:34 pm
by Sasi
I forgot to mention that I also tested the attached project with a PIC16F18875 MCU and it works fine with it.