EasyManua.ls Logo

Microchip Technology dsPIC30F - Page 39

Microchip Technology dsPIC30F
738 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
© 2004 Microchip Technology Inc. DS70049C-page 2-21
Section 2. CPU
CPU
2
Figure 2-9: Integer and Fractional Representation of 0x4001
Figure 2-10: Integer and Fractional Representation of 0xC002
Different Representations of 0x4001
Integer:
-2
15
2
14
2
13
2
12
. . . .
0x4001 = 2
14
+ 2
0
= 16385
1.15 Fractional:
2
-15
0
2
-1
2
-2
2
-3
. . .
-2
0
2
0
0x4001 = 2
-1
+ 2
-15
= 0.500030518
Implied Radix Point
.
1 10000000000000
01 10000000000000
Different Representations of 0xC002
Integer:
-2
15
2
14
2
13
2
12
. . . .
0xC002 = -2
15
+ 2
14
+ 2
0
= -32768 + 16384 + 2 = -16382
1.15 Fractional:
2
-15
. 2
-1
2
-2
2
-3
. . .
-2
0
2
0
0xC002 = -2
0
+ 2
-1
+ 2
-14
= -1 + 0.5 + 0.000061035 = -0.499938965
Implied Radix Point
11 00000000000001
11 00000000000001

Table of Contents

Other manuals for Microchip Technology dsPIC30F