Since the VEML6075 operates at 3.3 volts I am also using a voltage level translator.
I have pullup resistors connected on the 3.3 volt side and the 5 volt side. The resistors for the 3.3 volt side are part of the VEML6075 board. I tried disconnecting the resistors on the 5 volt side but the below results are the same.
This is most likely NOT a GCB problem. Its probably an electronics problem but any help would be appreciated.
I'm using the 18F4550 to read the I2C data coming from this VEML6075 UV Sensor https://www.sparkfun.com/products/14748. I'm using the HI2C functions of GCB.
Since the VEML6075 operates at 3.3 volts I am also using a voltage level translator.
I have pullup resistors connected on the 3.3 volt side and the 5 volt side. The resistors for the 3.3 volt side are part of the VEML6075 board. I tried disconnecting the resistors on the 5 volt side but the below results are the same.
If I connect my Digilent Analog Discovery 2 Logic Analyzer
https://store.digilentinc.com/digital-discovery-portable-usb-logic-analyzer-and-digital-pattern-generator/
to the I2C ports of this PIC (PORTB.0 and PORTB.1) the GCB I2C ADDRESS software reads an address of 0x20. BUT if I disconnect the logic analyzer the software freezes. WHY?
Have you tried powering the 18F4550 from 3V3 rather than 5V and eliminating the level converter?
Ummmmm. What software locks up?
Chris,
Great idea. Eliminating the level converter fixed it. Thanks!
Anobium, it was the GCB program that interrogates the device and reads back the devices I2C address.