поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

DSPIC30F датащи(PDF) 29 Page - Microchip Technology

номер детали DSPIC30F
подробное описание детали  General Purpose and Sensor Families High-Performance Digital Signal Controllers
PDF  248 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DSPIC30F датащи(HTML) 29 Page - Microchip Technology

Back Button DSPIC30F Datasheet HTML 25Page - Microchip Technology DSPIC30F Datasheet HTML 26Page - Microchip Technology DSPIC30F Datasheet HTML 27Page - Microchip Technology DSPIC30F Datasheet HTML 28Page - Microchip Technology DSPIC30F Datasheet HTML 29Page - Microchip Technology DSPIC30F Datasheet HTML 30Page - Microchip Technology DSPIC30F Datasheet HTML 31Page - Microchip Technology DSPIC30F Datasheet HTML 32Page - Microchip Technology DSPIC30F Datasheet HTML 33Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 29 / 248 page
background image
 2004 Microchip Technology Inc.
Preliminary
DS70083G-page 27
dsPIC30F
2.4
Divide Support
The dsPIC 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 operations, 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.sw
- 16/16 signed divide
5.
DIV.uw
- 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 quotient for all divide instructions is stored in W0,
and the remainder in W1. DIV and DIVF can specify
any W register for both the 16-bit dividend and divisor.
All other divides can specify any W register for the
16-bit divisor, but the 32-bit dividend must be in an
aligned W register pair, such as W1:W0, W3:W2, etc.
The non-restoring divide algorithm requires one cycle
for an initial dividend shift (for integer divides only), one
cycle per divisor bit, and a remainder/quotient correc-
tion cycle. The correction cycle is the last cycle of the
iteration loop but must be performed (even if the
remainder is not required) because it may also adjust
the quotient. A consequence of this is that DIVF will
also produce a valid remainder (though it is of little use
in fractional arithmetic).
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 instruc-
tion as shown in Table 2-1 (REPEAT will execute the tar-
get 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.sw or
DIV.s
Signed divide: Wm/Wn
→ W0; Rem → W1
DIV.ud
Unsigned divide: (Wm+1:Wm)/Wn
→ W0; Rem → W1
DIV.uw or
DIV.u
Unsigned divide: Wm/Wn
→ W0; Rem → W1



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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