18
'Calculate the Average reading value
Reading_B = MEMS_3 / 100
'Delay
Delay(0,100,msec)
'Read the thermistor
'half bridge measurement - SE5 AND EX1
BrHalf(THERM_1,1,mV2500,5,VX1,1,2500,0,1000,250,2.5,0.0)
'Calculate the temperature
THERM_2 = THERM_1 / 5000
THERM_3 = (2.5 - (THERM_2*1000) - THERM_1)/THERM_2
Reading_THERM = 1/(.0 (.0002369*LOG(THERM_3)) +
(.0000001019*(LOG(THERM_3)^3))) - 273.2
'2nd clock using C8
PortSet(8,1)
Delay(0,10,MSEC)
PortSet(8,0)
Delay(0,10,MSEC)
'Next sensor
Next
'Disable String
PortSet(1,0)
CallTable MEMS_EXAMPLE
NextScan
EndProg
Summary of Contents for 6160
Page 2: ......
Page 4: ......
Page 15: ...9 Figure 6 Sample Model 6160 or 6150 Calibration Sheet ...