User data, Prosec t2n – Toshiba T2N User Manual

Page 191

Advertising
background image

3. User Data

178

PROSEC T2N

    

Register

Bit positions

    

    

    

Processable numerical ranges and expression formats are shown
in the following Table.

The numerical value when two complementary expressions are
added together is a value in which the lower 16 bits are all 0.

Example)

In calculation, the 2’s complements of a numerical value can be
found by the operation of inverting each bit of that numerical
value and adding 1.

Example)

(3)

BCD
BCD is the abbreviation of Binary Coded Decimal. BCD
expresses 1 digit (0 - 9) of a decimal number by 4 bits of a binary
number. Therefore, 1 register can express the numerical value of
a 4-digit decimal number.

10

3

10

2

10

1

10

0

0111 1111 1111 1111

(Binary) = 32767

(bit inversion)

1000 0000 0000 0001

(Binary)

(add 1)

0000 0000 0000 0000

(Binary) = – 32767

0111 1111 1111 1111

(Binary) = 322767

1000 0000 0000 0001

(Binary) = 322767

1

0000 0000 0000 0000

Numerical Value

(Decimal)

Binary Expression

Hexadecimal

Expression

32767

0111 1111 1111 1111

7FFF

32766

0111 1111 1111 1110

7FFE

1

0000 0000 0000 0001

0001

1

0000 0000 0000 0000

0001

– 1

1111 1111 1111 1111

FFFF

– 32767

1000 0000 0000 0001

8001

– 32768

1000 0000 0000 0000

8000

(MSB)

(LSB)

F

E

D

C

B

A

9

8

7

6

5

4

3

2

1

0

Advertising