Content originally posted in LPCWare by HammingBird on Mon Apr 04 12:47:18 MST 2016
Hallo mister_T,
the "LPC8x_ROM_LPCXpresso.zip" does not work.
problem 1.
Problems Description : "fatal error : core_cmInstr.h:No such file or directory"
problem 2. in main prog you wrote :
"
sendI2CMaster(I2C_ADDR_7BIT, LM75_REG_CONF, LM75_POWERDOWN);
mrtDelay(5000);
sendI2CMaster(I2C_ADDR_7BIT, LM75_REG_CONF, LM75_POWERUP);
//tempValue = readI2CMaster(I2C_ADDR_7BIT, 2);//read from current address
tempValue = SendReadI2CMaster(I2C_ADDR_7BIT, LM75_REG_TEMP, 2);//read from given address
tempValue = (tempValue & 0x7F); "
But in "i2c.h" file the command "sendI2CMaster" is used for transmitting data. But how you used it for reading data from "LM75_REG_CONF" ?
how could I solve these problem ? I just want to see the i2c signal(scl, sda) on oscilloscope.