|
C517A Datasheet, PDF (39/72 Pages) Siemens Semiconductor Group – 8-Bit CMOS Microcontroller | |||
|
◁ |
C517A
For starting an operation, registers MD0 to MD5 and ARCON must be written to in a certain
sequence according table 7 and 8. The order the registers are accessed determines the type of the
operation. A shift operation is started by a final write operation to SFR ARCON.
Table 7
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
Abbrevations :
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
Table 8
Programming athe MDU for a Shift or Normalize Operation
Operation
First write
Last write
First read
Last read
Normalize, Shift Left, Shift Right
MD0
MD1
MD2
MD3
ARCON
least significant byte
.
.
most significant byte
start of conversion
MD0
MD1
MD2
MD3
least significant byte
.
.
most significant byte
Semiconductor Group
37
|
▷ |