SM39A16M1
8-Bit Micro-controller
16KB with ISP Flash
& 1K+256B RAM embedded
6. Multiplication Division unit
This on-chip arithmetic unit provides 32-bit division, 16-bit multiplication, shift and normalize features. All operations are
unsigned integer operation.
Table 6-1 Multiplication Division Register
Mnemonic
PCON
ARCON
MD0
Description
Power control
Arithmetic
Control register
Multiplication/
Division
Register 0
Multiplication/
Division
Register 1
Multiplication/
Division
Register 2
Multiplication/
Division
Register 3
Multiplication/
Division
Register 4
Multiplication/
Division
Register 5
Direct
87H
EFh
E9h
Bit 7
SMO
D
MDEF
Bit 6
MD
UF
MD
OV
Bit 5
-
SLR
Bit 4
-
Bit 3
-
Bit 2
-
SC[4:0]
Bit 1
STOP
Bit 0
IDLE
RESET
40H
00H
00H
Multiplication Division Unit
MD0[7:0]
00H
MD1
EAh
MD1[7:0]
00H
MD2
EBh
MD2[7:0]
00H
MD3
ECh
MD3[7:0]
MD4
EDh
MD4[7:0]
00H
MD5
EEh
MD5[7:0]
00H
6.1
Operating registers of the MDU
The MDU is handled by eight registers, which are memory mapped as special function registers. The arithmetic unit
allows operations concurrently to and independent of the CPU‟s activity. Operands and results registers are MD0 to
MD5. Control register is ARCON. Any calculation of the MDU overwrites its operands.
Mnemonic: ARCON
7
6
5
MDEF MDOV
SLR
4
3
2
SC[4:0]
1
Address: EFh
0
Reset
00H
MDEF- Multiplocation Division Errot Flag.
The MDEF is an error flag. The error flag is read only. The error flag indicates an improperly performed
operation (when one of the arithmetic operations has been restarted or interrupted by a new operation).
The error flag mechanism is automatically enabled with the first write to MD0 and disabled with the
final read instruction from MD3 multiplication or shift/normalizing) or MD5 (division) in phase three.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M069
Ver C
SM39A16M1
7/31/2013
- 32 -