hi,
i'm new using pic32 and i'm doing my first project with it. I'm using pic32mx320F128H as a master and a HMC5883L as a slave. Problem is when i try to read the values from the HMC5883 the bit I2C1STATbits.RBF is always 0(i made my own i2c fucntion so to find the error i just used printf ), Is it possible that the slave isnt well connected to the micro controller? i'm using ports RG2 and RG3 for SCL and SDA as it is said in the chipkituno32 datasheet, and a 4k7 pull-up resistor.
thanks in advance
i'm new using pic32 and i'm doing my first project with it. I'm using pic32mx320F128H as a master and a HMC5883L as a slave. Problem is when i try to read the values from the HMC5883 the bit I2C1STATbits.RBF is always 0(i made my own i2c fucntion so to find the error i just used printf ), Is it possible that the slave isnt well connected to the micro controller? i'm using ports RG2 and RG3 for SCL and SDA as it is said in the chipkituno32 datasheet, and a 4k7 pull-up resistor.
thanks in advance