欢迎访问ic37.com |
会员登录 免费注册
发布采购

C8051F363 参数 Datasheet PDF下载

C8051F363图片预览
型号: C8051F363
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用:
文件页数/大小: 288 页 / 2659 K
品牌: SILABS [ SILICON LABORATORIES ]
 浏览型号C8051F363的Datasheet PDF文件第114页浏览型号C8051F363的Datasheet PDF文件第115页浏览型号C8051F363的Datasheet PDF文件第116页浏览型号C8051F363的Datasheet PDF文件第117页浏览型号C8051F363的Datasheet PDF文件第119页浏览型号C8051F363的Datasheet PDF文件第120页浏览型号C8051F363的Datasheet PDF文件第121页浏览型号C8051F363的Datasheet PDF文件第122页  
C8051F360/1/2/3/4/5/6/7/8/9
11.2. Integer and Fractional Math
MAC0 is capable of interpreting the 16-bit inputs stored in MAC0A and MAC0B as signed integers or as
signed fractional numbers. When the MAC0FM bit (MAC0CF.1) is cleared to ‘0’, the inputs are treated as
16-bit, 2’s complement, integer values. After the operation, the accumulator will contain a 40-bit, 2’s com-
plement, integer value. Figure 11.2 shows how integers are stored in the SFRs.
MAC0A and MAC0B Bit Weighting
High Byte
-(2
15
)
2
14
2
13
2
12
2
11
2
10
2
9
2
8
2
7
2
6
2
5
Low Byte
2
4
2
3
2
2
2
1
2
0
MAC0 Accumulator Bit Weighting
MAC0OVR
-(2
39
)
2
38
2
33
2
32
MAC0ACC3 : MAC0ACC2 : MAC0ACC1 : MAC0ACC0
2
31
2
30
2
29
2
28
2
4
2
3
2
2
2
1
2
0
Figure 11.2. Integer Mode Data Representation
When the MAC0FM bit is set to ‘1’, the inputs are treated at 16-bit, 2’s complement, fractional values. The
decimal point is located between bits 15 and 14 of the data word. After the operation, the accumulator will
contain a 40-bit, 2’s complement, fractional value, with the decimal point located between bits 31 and 30.
MAC0A, and MAC0B Bit Weighting
High Byte
-1
2
-1
2
-2
2
-3
2
-4
2
-5
2
-6
2
-7
2
-8
2
-9
2
-10
Low Byte
2
-11
2
-12
2
-13
2
-14
2
-15
MAC0 Accumulator Bit Weighting
MAC0OVR
-(2
8
)
2
7
2
2
2
1
MAC0ACC3 : MAC0ACC2 : MAC0ACC1 : MAC0ACC0
2
0
2
-1
2
-2
2
-3
2
-27
2
-28
2
-29
2
-30
2
-31
MAC0RND Bit Weighting
High Byte
* -2
1
2
-1
2
-2
2
-3
2
-4
2
-5
2
-6
2
-7
2
-8
2
-9
2
-10
Low Byte
2
-11
2
-12
2
-13
2
-14
2
-15
* The MAC0RND register contains the 16 LSBs of a two's complement number. The MAC0N Flag can be
used to determine the sign of the MAC0RND register.
Figure 11.3. Fractional Mode Data Representation
118
Rev. 1.0