English
Language : 

C509-L_97 Datasheet, PDF (156/290 Pages) Siemens Semiconductor Group – 8-Bit CMOS Microcontroller
On-Chip Peripheral Components
C509-L
6.4.3 Multiplication/Division
The general mechanism to start an MDU activity has been described above. The following
description of the write and read sequences adds to the information given in the table below where
the write and read operations necessary for a multiplication or division are listed.
Table 6-10
Programming the MDU for Multiplication and Division
Operation
First Write
Last Write
First Read
Last Read
32Bit/16Bit
MD0
MD1
MD2
MD3
MD4
MD5
D’endL
D’end
D’end
D’endH
D’orL
D’orH
MD0
MD1
MD2
MD3
MD4
MD5
QuoL
Quo
Quo
QuoH
RemL
RemH
16Bit/16Bit
MD0 D’endL
MD1 D’endH
MD4 D’orL
MD5
MD0
MD1
D’orH
QuoL
QuoH
MD4 RemL
MD5 RemH
16Bit x 16Bit
MD0 M’andL
MD4 M’orL
MD1 M’andH
MD5
MD0
MD1
M’orH
PrL
MD2
MD3 PrH
Abbreviations :
D'end
D'or
M'and
M'or
Pr
Rem
Quo
...L
...H
: Dividend, 1st operand of division
: Divisor, 2nd operand of division
: Multiplicand, 1st operand of multiplication
: Multiplicator, 2nd operand of multiplication
: Product, result of multiplication
: Remainder
: Quotient, result of division
: means, that this byte is the least significant of the 16-bit or 32-bit operand
: means, that this byte is the most significant of the 16-bit or 32-bit operand
Write Sequence
The first and the last write operation in phase one are fixed for every calculation of the MDU. All
write operations inbetween determine the type of MDU calculation.
– A write-to-MD0 is the first transfer to be done in any case. This write resets the MDU and
triggers the error flag mechanism (see below).
– The next two or three write operations select the calculation type (32bit/16bit, 16bit/16bit,
16bit x 16bit)
The last write-to-MD5 finally starts the selected MUL/DIV operation
Read Sequence
– Any read-out of the MDx registers should begin with MD0
– The last read from MD5 (division) or MD3 (multiplication) determines the end of a whole
calculation and releases the error flag mechanism.
Semiconductor Group
6-78
1997-10-01