15 D6T MEMS Thermal Sensors User’s Manual (A284)
Example Temperature Values (PTAT, P0, P1, …, P15, and PEC in order from the left)
223 ,224,224,273,335,239,221,240,297 ,264,232,221,254,299,258,229,233 ,80
223 ,271,261,265,304,284,270,264,274 ,302,285,271,260,319,304,286,269 ,193
223 ,296,273,285,311,306,291,281,301 ,311,310,293,296,312,322,311,302 ,83
* With this example temperature program, only one set of measurements are retrieved.
* In the case of standard specifications, this sensor updates temperature data every 300 ms
or less. This operation is independent of any communication processing. Temperature
update timing cannot be controlled externally.
(Changed sections for the 1-channel D6T-1A-01/D6T-1A-02)
{
I2C_start();
I2C_send1( 0x14 , 0x4C ); // 14h = { 0Ah(Addr7) : Write(0b) }
I2C_repeatstart();
I2C_getx( 0x15 , readbuff , 5 ); // 15h = { 0Ah(Addr7):Read },5 = 2*(1+1)+1
I2C_stop();
If(!D6T_checkPEC(readbuff,4)){
return - 1; // error
}
tPTAT = 256*readbuff[1] + readbuff[0];
tP[0] = 256*readbuff[3] + readbuff[2];
tPEC = readbuff[4];
return 1;
}
* With this example temperature program, only one set of measurements are retrieved.
* In the case of standard specifications, this sensor updates temperature data every 100 ms
or less. This operation is independent of any communication processing. Temperature
update timing cannot be controlled externally.
PTAT = 22.3°C, P0 = 29.6°C, P1 = 27.3°C, P2 = 28.5°C, P3 = 31.1°C, etc.