Patent ID: 7197343

Claim:
A portable electronic apparatus comprising: a casing; a communication device accommodated in said casing and having permanent magnets; and a direction measuring device accommodated in said casing for measuring a direction by utilizing geomagnetism, wherein said direction measuring device comprises: magnetic sensors for outputting signals corresponding to an external magnetic field, a temperature sensor for detecting a temperature, a corrector for estimating influence of the magnetic field of the permanent magnets upon the signals output from said magnetic sensors in accordance with the detected temperature, and correcting the signals output from said magnetic sensors in accordance with the estimated influence, and a direction determining device for determining a direction in accordance with the corrected signals, wherein said corrector measures at a first temperature the influence of the magnetic field of the permanent magnets contained in the signals output from said magnetic sensors, measures at a second temperature different from the first temperature the influence of the magnetic field of the permanent magnets contained in the signals output from said magnetic sensors, and estimates the influence of the magnetic field of the permanent magnets from the influence at the first temperature, the influence at the second temperature, and the present temperature detected with said temperature sensor; and wherein said corrector includes an initialization prompting device for prompting a user of the portable electronic apparatus to perform an operation of acquiring the influence at the second temperature when a difference between the first temperature and a temperature detected with said temperature sensor after measuring the influence at the first temperature becomes a predetermined temperature or higher.