DAS
3.1.6 - 18/09/2017
|
For LIS, SPATRAM, GASCODNG1
LSB
OOP(0) –> Peltier
OOP(1) –> FAN
OOP(2) –> HG
OOP(3) –> QJ
OOP(4) –> SPARE
OOP(5) –> SPARE
OOP(6) –> SPARE
OOP(7) –> SPARE
MSB
++++++++++++++++++++++++++++++++++++++++++++++
For TROPOGAS
LSB
OOP(0) –> Peltier
OOP(1) –> FAN
OOP(2) –> HG
OOP(3) –> QJ
OOP(4) –> Peltier Power Supply
OOP(5) –> Hires Power Supply
OOP(6) –> SPARE
OOP(7) –> SPARE
MSB
++++++++++++++++++++++++++++++++++++++++++++++
if(mod)
OOP_AMSx |= 0x01; bit 0 , 00000001, dec = 1
else
OOP_AMSx &= 0xFE; // 11111110, dec = 254
------------------------------------------—
if(mod)
OOP_AMSx |= 0x02; bit 1 , 00000010, dec = 2
else
OOP_AMSx &= 0xFD; // 11111101, dec = 253
------------------------------------------—
if(mod)
OOP_AMSx |= 0x04; bit 2 , 00000100, dec = 4
else
OOP_AMSx &= 0xFB; // 11111011, dec = 251
------------------------------------------—
if(mod)
OOP_AMSx |= 0x08; bit 3 , 00001000, dec = 8
else
OOP_AMSx &= 0xF7; // 11110111, dec = 247
------------------------------------------—
if(mod)
OOP_AMSx |= 0x10; bit 4 , 00010000, dec = 16
else
OOP_AMSx &= 0xEF; // 11101111, dec = 239
------------------------------------------—
if(mod)
OOP_AMSx |= 0x20; bit 5 , 00100000, dec = 32
else
OOP_AMSx &= 0xDF; // 11011111, dec = 223
------------------------------------------—
if(mod)
OOP_AMSx |= 0x40; bit 6 , 01000000, dec = 64
else
OOP_AMSx &= 0xBF; // 10111111, dec = 191
------------------------------------------—
if(mod)
OOP_AMSx |= 0x80; bit 7 , 10000000, dec = 128
else
OOP_AMSx &= 0x7F; // 01111111, dec = 127
------------------------------------------—
with x =1,2,3 –> AMS address