Telemetry Module MT-102 User's Manual - BlueNote Communications
Telemetry Module MT-102 User's Manual - BlueNote Communications
Telemetry Module MT-102 User's Manual - BlueNote Communications
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
get Y:<br />
- unit number defines the number of digits after comma in resultant format.<br />
- tens number defines number of digits before comma , 0 – automatically<br />
+ 100 – sets delimiter to ‘,’ instead of ‘.’<br />
+ 200 – forces adding a sign before positive value.<br />
Furthermore, the function writes the resultant number's length in characters to AUX_RET1<br />
register.<br />
If the converted number is larger then allowed range, the function does not perform the<br />
conversion and raises an error flag.<br />
Examples:<br />
get X get Y store result AUX_RET1<br />
0 0 0 1<br />
123 0 123 3<br />
-1234 0 -1234 5<br />
12345 2 123.45 6<br />
123456 103 123,456 7<br />
123456 23 Error ---<br />
0 323 +00,000 7<br />
-15 323 -00,015 7<br />
-15 50 -00015 6<br />
Logical shift left<br />
Function shifts left bits in argument X. Number positions to shifts is defined by parameter Y.<br />
The bits that are shifted out are discarded, and zeros are shifted in. Get Y should be 0,<br />
otherwise operation will not be completed and error bit will be set. Error bit will be set also<br />
when bit set high (1) will be shifted out.<br />
Examples:<br />
get X get Y store result set if error<br />
0x0000 1 0x0000 0<br />
0x1234 -2 undefined 1<br />
0x0001 15 0x8000 0<br />
0x0003 15 REG=0x8000 1<br />
0x0003 15 DREG=0x00018000 0<br />
0x0003 31 REG=0x0000 1<br />
0x0003 31 DREG=0x80000000 1<br />
0x0001 32 0x0000 1<br />
0x0000 32 0x0000 0<br />
0x00010000 0 DREG=0x00010000 0<br />
0x00010000 0 REG=0x0000 1<br />
Logical shift right<br />
Function shifts right bits in argument X. Number positions to shifts is defined by parameter<br />
Y. The bits that are shifted out are discarded, and zeros are shifted in. Get Y should be 0,<br />
otherwise operation will not be completed and error bit will be set. Error bit will be set also<br />
when bit set high (1) will be shifted out.<br />
<strong>102</strong>