TMP92CZ26A

92CZ26A-630

3.26.2 Description of Operation

(1) Calculation mode
The MAC has the f ollowing three types of calculatio n mode. The calculation m ode to be used
is specified in MACCR<MOPMD1:0>. MACCR<MSMD> is used to select unsigned or signed
mode. The operation of each calculation mode is explained below.
(a) 64 + 32 × 32 mode
In this mode, the contents of the MACMA register and the MACMB register are
multiplied and the resu lt is added to the contents o f the MACOR reg ister. Then, the result
is stored back in the MACO R register.
(b) 64 32 × 32 mode
In this mode, the contents of the MACMA register and the MACMB register are
multiplied a nd the resu lt is subtract ed from th e contents of the MACO R regi ster. Then, the
result is stored back in th e MACOR register.
(c) 32 × 32 64 mode
In this mode, the contents of the MACMA register and the MACMB register are
multiplied and the contents of the MACOR register are subtracted from the result. Then,
the result is stored back in the MACOR register.
31
MACMA
0
×
63
MACOR
31
MACMB
+
0 63
MACOR
0
31
MACMA
0
×
63
MACOR
31
MACMB
063
MACOR
0
31
MACMA
0
×
63
MACOR
31
MACMB
0
063
MACOR
0