Other Parts Discussed in Thread: HDC1000
Hi.
I am trying to comminucate to HDC1000 senor in I2C bus in the CC1350 sensortag board using Sensor Controller Studio v2.0
I took the code based on I2C Light sensor example, but something is not working in my code. I added a field to `output` struct that I use as counter for debug. I initialize this filed to 1 in Task Initialization code, then initialize it to 2 in Task execution code, just before i2cStart() function. When I run the Task Testing, I see that the field stays at '1', which means it does not even executing the first line of the Task Execution code.
What could be the cause for such issue?
Initialization code:
//Start the Task output.dbg = 1; fwScheduleTask(1);
Execution Code:
output.dbg += 1; i2cStart(); i2cTx(0x0043 | I2C_OP_READ); i2cTx(0xFE); // Pointer register i2cStop(); fwScheduleTask(1);
Mappings are:
I2C SCL - DIO4
I2C SDA - DIO5