发明名称 CALCULATING DEVICE AND CALCULATING METHOD
摘要 PROBLEM TO BE SOLVED: To provide a calculating device and method capable of quickly and highly precisely operating division with a denominator as 2 bytes or more by using an inexpensive MCU having a one byte divider. SOLUTION: This calculating device 1 is provided with an input part 2 for inputting a dividend A and a divisor B (A>B), a storage part for storing the dividend A and the divisor B inputted by the input part 2, and an arithmetic part 4 having a one byte divider 4a, a multiplier 4b, an adder/subtractor 4c, and a comparator 4d for calculating a quotient C of A/B. When it is judged that the divisor B stored in the storage part 3 is a value which is not less than 2 bytes by the comparator 4d, the arithmetic part 4 calculates a divisor B' of the dividend A whose valid number of digits is rounded off into one byte and a coefficient T for calculating the divisor B' by using the one byte divider 4a and the adder/subtractor, and then successively calculates an approximate value C' of the quotient C by using the one byte divider 4a, a difference A' between the dividend A and C'×B by using the multiplier 4b and the adder/ subtractor 4a, and a surplus C" of the quotient C corresponding to the difference A' by using the one byte divider 4a, and finally calculates the quotient C being the final solution by using the adder/subtractor 4c.
申请公布号 JP2003091413(A) 申请公布日期 2003.03.28
申请号 JP20010283638 申请日期 2001.09.18
申请人 ALPS ELECTRIC CO LTD 发明人 HAYASAKA SATORU
分类号 G06F7/537;G06F7/52;G06F7/535;G06F9/305 主分类号 G06F7/537
代理机构 代理人
主权项
地址