Electronic Components Datasheet Search
  English  ▼

X  

SAFC161PI Datasheet(PDF) 354 Page - Infineon Technologies AG

Part # SAFC161PI
Description  16-Bit Single-Chip Microcontroller
PDF  400 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  INFINEON [Infineon Technologies AG]
Direct Link  http://www.infineon.com
Logo INFINEON - Infineon Technologies AG

SAFC161PI Datasheet(HTML) 354 Page - Infineon Technologies AG

Back Button SAFC161PI Datasheet HTML 350Page - Infineon Technologies AG SAFC161PI Datasheet HTML 351Page - Infineon Technologies AG SAFC161PI Datasheet HTML 352Page - Infineon Technologies AG SAFC161PI Datasheet HTML 353Page - Infineon Technologies AG SAFC161PI Datasheet HTML 354Page - Infineon Technologies AG SAFC161PI Datasheet HTML 355Page - Infineon Technologies AG SAFC161PI Datasheet HTML 356Page - Infineon Technologies AG SAFC161PI Datasheet HTML 357Page - Infineon Technologies AG SAFC161PI Datasheet HTML 358Page - Infineon Technologies AG Next Button
Zoom Inzoom in Zoom Outzoom out
 354 / 400 page
background image
&3,
6\VWHP 3URJUDPPLQJ
User’s Manual
20-2
1999-08
Multiplication and Division
Multiplication and division of words and double words is provided through multiple cycle
instructions implementing a Booth algorithm. Each instruction implicitly uses the 32-bit
register MD (MDL = lower 16 bits, MDH = upper 16 bits). The MDRIU flag (Multiply or
Divide Register In Use) in register MDC is set whenever either half of this register is
written to or when a multiply/divide instruction is started. It is cleared whenever the MDL
register is read. Because an interrupt can be acknowledged before the contents of
register MD are saved, this flag is required to alert interrupt routines, which require the
use of the multiply/divide hardware, so they can preserve register MD. This register,
however, only needs to be saved when an interrupt routine requires use of the MD
register and a previous task has not saved the current result. This flag is easily tested by
the Jump-on-Bit instructions.
Multiplication or division is simply performed by specifying the correct (signed or
unsigned) version of the multiply or divide instruction. The result is then stored in register
MD. The overflow flag (V) is set if the result from a multiply or divide instruction is greater
than 16 bits. This flag can be used to determine whether both word halfs must be
transferred from register MD. The high portion of register MD (MDH) must be moved into
the register file or memory first, in order to ensure that the MDRIU flag reflects the correct
state.
The following instruction sequence performs an unsigned 16 by 16-bit multiplication:
SAVE:
JNB
MDRIU, START
;Test if MD was in use.
SCXT
MDC, #0010H
;Save and clear control register,
;leaving MDRIU set
;(only required for interrupted
;multiply/divide instructions)
BSET
SAVED
;Indicate the save operation
PUSH
MDH
;Save previous MD contents...
PUSH
MDL
;...on system stack
START:
MULU
R1, R2
;Multiply 16·16 unsigned, Sets MDRIU
JMPR
cc_NV, COPYL
;Test for only 16-bit result
MOV
R3, MDH
;Move high portion of MD
COPYL:
MOV
R4, MDL
;Move low portion of MD, Clears MDRIU
RESTORE:
JNB
SAVED, DONE
;Test if MD registers were saved
POP
MDL
;Restore registers
POP
MDH
POP
MDC
BCLR
SAVED
;Multiplication is completed,
;program continues
DONE:
...



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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