Method of ensuring operation of calculator
AssigneeToyota Jidosha Kabushiki Kaisha
InventorMasayuki Yokoyama
Life of this patent
Estimating the term…
Abstract
A method of ensuring operation of a calculator includes causing, by a CPU, the calculator to perform a predetermined operation verification calculation of which a correct value that is a resultant value in normal operation is set to ae predetermined value; acquiring, by the CPU, the resultant value of the calculation; referencing, by the CPU using a relative address referencing capability of the CPU, an address that is stored in an address acquired by adding the acquired resultant value to the starting address of the memory; and executing, by the CPU, a function stored at the referenced address.
Claims6
A method of ensuring operation of a microcomputer including a CPU, a memory, and calculator executed by the CPU,
- where the memory:
- (a) stores, at a first address, a function for normal operation that immediately returns to a caller, (b) stores, at a second address, a function for abnormal operation that performs a process for abnormal operation that causes a reset of the microcomputer without using the calculator, and (c) stores, in a predetermined range of addresses beginning with a starting address, a first address pointer that points to the first address and a plurality of second address pointers that each point to the second address, the first address pointer being stored at a first address within the predetermined range, and the second address pointers being stored at all addresses within the predetermined range other than the first address within the predetermined range, where the first address within the predetermined range of addresses is equal to a sum of a predetermined value and the starting address of the predetermined range of addresses the method comprising
- causing, by the CPU, the calculator to perform a predetermined operation verification calculation to produce a resultant value, wherein the operation verification calculation is configured such that the resultant value is equal to the predetermined value when the predetermined operation verification calculation is correctly performed by the calculator and the resultant value is not equal to the predetermined value when the predetermined operation verification calculation is incorrectly performed by the calculator;
- acquiring, by the CPU, the resultant value of the operation verification calculation performed by the calculator;
- determining, by the CPU, a determined address within the predetermined range of addresses by adding the acquired resultant value to the starting address of the predetermined range of addresses;
- retrieving whichever of the first address pointer and the second address pointer is stored at the determined address within the predetermined range of addresses;
- and
- executing, by the CPU, the function for normal operation stored at the first address when the first address pointer is retrieved, and the function for abnormal operation stored at the second address when the second address pointer is retrieved.
Dependencies are inferred from the claim text.