15.11.2014 Views

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

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The function copies data from source block 0x060…0x15F (XREG1…XREG256) to destination<br />

block 0x600…0x6FF (P2SND_B1…P2SND_B256)<br />

Read value from table<br />

This function takes the numerical value from table starting with (get X) register. The value<br />

from table cell defined by index register (get Y) is copied to store result register. Table cells<br />

are indexed from 0.<br />

store result = get X [get Y].<br />

The function rises error flag when copied value exceeds the range of destination register or<br />

cell address lays beyond the space.<br />

Example:<br />

get X (register)<br />

get Y (register)<br />

store result (register)<br />

= XREG10<br />

= REG1<br />

= DREG2<br />

If REG1 = 4, than function performs the operation:<br />

DREG2 = XREG14<br />

Write value to table<br />

The function writes numeric value to table starting with register (store result). The value<br />

from register (get X) is copied to table cell defined by index register (get Y). Table cells are<br />

indexed from 0.<br />

store result [get Y] = get X.<br />

The function rises error flag when copied value exceeds the range of destination register or<br />

cell address lays beyond the space.<br />

Example:<br />

get X (register)<br />

get Y (register)<br />

store result (register)<br />

= REG2<br />

= DREG1<br />

= XREG100<br />

If DREG1 = -5, than function performs the operation:<br />

XREG95 = REG2<br />

Difference between X and Y<br />

This function calculates the integer difference between X and Y, no matter which value is<br />

higher.<br />

Exceeding the valid range rises the error flag.<br />

store result (register) = integer value of (get X (register) - get Y (register))<br />

Copy bigger value<br />

The function verifies which value, X or Y is higher and copies the higher one.<br />

If get X > get Y<br />

If get X = get Y<br />

than store result = get X<br />

than store result = get Y<br />

Search for max value in table<br />

The function scans the table beginning with register (get X) for length defined by register<br />

(get Y). The highest value found in search is written to (store result) register.<br />

99

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!