I2C for Compass GY 273 (HMC5883L) | Cypress Semiconductor
I2C for Compass GY 273 (HMC5883L)
Hi all, as refer to this topic http://www.cypress.com/forum/psoc-5-device-programming/i2c-hmc5883l-compass , I'm using the same module and trying to use the compass but have some troubles settings up I2C connection with the compass.
I have tried following scenario:
1) Use I2C_MasterSendStart() but the program stuck at I2C_WAIT_BYTE_COMPLETE loop
2) Use I2C_MasterWriteBuf() the program runs but I keep getting the same values even though I move the compass around.
3) Pull up resistor of around 5.5k
I have attached the archive file and looking forward your answers.
Some reference for compass: