ak7712a-vt AKM Semiconductor, Inc., ak7712a-vt Datasheet - Page 35

no-image

ak7712a-vt

Manufacturer Part Number
ak7712a-vt
Description
Built-in 20-bit Adc/dac Sophisticated Audio Dsp
Manufacturer
AKM Semiconductor, Inc.
Datasheet
ASAHI KASEI
4) ALU
ALU can execute 34-bit arithmetic operation and 24-bit arithmetic logical operation as follows.
ALU outputs three flags mentioned below, holds the last flag's state at ALU-NOP.
* SGF: This flag shows MSB(+4 bits) of ALU. SGF flag shows "0" when the result is zero or positive,
* OVF: This flag shows the overflow(exceeding the 0-th bit) of operated result of ALU. When overflow is
* ZRF: This flag shows "1" when the result of 24-bit(0 -23) calculation at ALU is "0".
The 20,18 and 16-bit rounding is prepared. 20-bit rounding execute the addition of "1" to -20th bit( if LSB = all "0"
then +0), and execute half-adjust. In the same way, 18-,16-bit rounding add "1" to -18th, -16th bit respectively. The
through +1 adds "1" to -24th bit, for the calculation data to be obtained as data rounded to 24-bit in advance, then
the execution step for rounding can be omitted. The location of addition point of "1" for 20-bit rounding is shown
below.
"<1" (B through +1) adds "1" to -25th bit of the input data. In the case that the calculated data is output on DBUS,
the data is rounded off to 24bits.
0180-E-02
/20, /18, /16
<<
< 1
| |
-
+
* 34-bit arithmetic operation
The data is output to DBUS as follows at overflow;
In addition, when the data exceed the overflow margin on the way of calculation, this flag is held on "1",
output the above data to DBUS.
,OP,CR*DR,
,OP,CR*DR,
,OP,CR*DR,IDR0=SH0 <1
,OP,
,OP,
,OP,
,OP,
and shows "1" when the result is negative.
occurred, it shows "1" else "0".
positive overflow: 7FFFFF(HEX) ,
: A-B
: A+B
: B through
: B through + 1
: the absolute value
: round
,IDR0=SH0 + LDR0 ,,,,
,IDR0=SH0 + LDR0 ,,,,
,
,
<List of ALU Command>
<Example program for 24-bit data output>
* 24-bit arithmetic logical operation
,,,,
,,,,
,,,,
,,,,ODR0,
,,,,
&
#
!
1-
1+
,
,
$
,
,
,
,
negative overflow: 800000(HEX).
;
;
;ODR0 is the rounded value of calculated data
;
;
;
;
- 35 -
: OR
: AND
: Exclusive-OR
: NOT
: A-1
: A+1
[AK7712A-VT]
1997/12

Related parts for ak7712a-vt