| 数据搜索系统,热门电子元器件搜索 |
|
I2CCON 数据表(PDF) 22 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
I2CCON 数据表(HTML) 22 Page - Microchip Technology |
|
22 / 210 page ![]() dsPIC30F2011/2012/3012/3013 DS70139G-page 22 © 2010 Microchip Technology Inc. 2.3 Divide Support The dsPIC DSC devices feature a 16/16-bit signed fractional divide operation, as well as 32/16-bit and 16/16-bit signed and unsigned integer divide opera- tions, in the form of single instruction iterative divides. The following instructions and data sizes are supported: 1. DIVF - 16/16 signed fractional divide 2. DIV.sd - 32/16 signed divide 3. DIV.ud - 32/16 unsigned divide 4. DIV.s - 16/16 signed divide 5. DIV.u - 16/16 unsigned divide The 16/16 divides are similar to the 32/16 (same number of iterations), but the dividend is either zero-extended or sign-extended during the first iteration. The divide instructions must be executed within a REPEAT loop. Any other form of execution (e.g., a series of discrete divide instructions) will not function correctly because the instruction flow depends on RCOUNT. The divide instruction does not automatically set up the RCOUNT value and it must, therefore, be explicitly and correctly specified in the REPEAT instruction, as shown in Table 2-1 (REPEAT executes the target instruction {operand value+1} times). The REPEAT loop count must be setup for 18 iterations of the DIV/DIVF instruction. Thus, a complete divide operation requires 19 cycles. TABLE 2-1: DIVIDE INSTRUCTIONS Note: The divide flow is interruptible; however, the user needs to save the context as appropriate. Instruction Function DIVF Signed fractional divide: Wm/Wn →W0; Rem →W1 DIV.sd Signed divide: (Wm+1:Wm)/Wn →W0; Rem →W1 DIV.s Signed divide: Wm/Wn →W0; Rem →W1 DIV.ud Unsigned divide: (Wm+1:Wm)/Wn →W0; Rem →W1 DIV.u Unsigned divide: Wm/Wn →W0; Rem →W1 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |