摘要 |
PROBLEM TO BE SOLVED: To decrease the circuit scale. SOLUTION: A control circuit 1 stores a value 1 (value for rounding) in a register CRY. Then the control circuit 1 outputs the values A (=(A7 ... A0 of eight bits of a register A, the values B (=B(B7... B0 )) of eight bits of a register B, and the value of one bit of the register CRY to an adding element 21. The adding element 21 calculates the sum (A+B+1) of those values, and outputs the value of the least significant bit (LSB) of the arithmetic result of nine bits to the register CRY and the value (C7 ... C0 ) of the high-order eight bits as a mean value C to the register C. Thus, the mean value C (=(A+B+1)|1) of the two 8-bit data A and B is calculated (|: one-bit shift to the LSB side). |