28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

154<br />

MultDiv,<br />

MULTDIV,<br />

Group Group<br />

No.<br />

MultDiv<br />

GENERAL<br />

Description<br />

MultDiv.Num1 0 -2 31 ..2 31 -1 RW<br />

EXTENDED REGISTER GROUPS<br />

49 The operation support full 64-bit precision in the<br />

multiplication and division. Also division by zero and<br />

overflow detection has been added. In case an<br />

overflow is detected result will be +-MAXINT. The<br />

division does automatic round <strong>of</strong>f.<br />

This group performs the following operation,<br />

MultDiv.<br />

Num1*<br />

MultDiv.<br />

Num2<br />

= MultDiv.<br />

Re sult,<br />

MultDiv.<br />

Remin<br />

der<br />

MultDiv.<br />

Denom<br />

FUNCTION<br />

An Internal calculation method that uses 64-bit precision.<br />

The calculations are made when a result variable is read.<br />

Automatic round<strong>of</strong>f is done by adding 50% <strong>of</strong> the Denominator to the Numerator<br />

before dividing.<br />

RELATED ITEMS<br />

MulDiv, DivMul instructions.<br />

EXAMPLE USAGE<br />

For all scaling purposes where 32-bit precision is inadequate.<br />

GROUP MEMBERS (GROUP 49)<br />

Group.Member Member<br />

No.<br />

Numerator #1 is a 32bit signed value, the numerator is<br />

formed by the product: MultDiv.Num1 * MultDiv.Num2.<br />

The product has 64-bit precision but is not available to read.<br />

MultDiv.Num2 1 -2 31 ..2 31 -1 RW<br />

Numerator #2 is a 32bit signed value, the numerator is<br />

formed by the product: MultDiv.Num1 * MultDiv.Num2.<br />

The product has 64-bit precision but is not available to read.<br />

MultDiv.Denom 2 -2 31 ..2 31 -1 RW<br />

Range Ability Default<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001

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

Saved successfully!

Ooh no, something went wrong!