Microcomputer capable of preventing writing errors in a non-volatile memory
First Claim
Patent Images
1. A microcomputer containing a non-volatile memory capable of reading and writing data, comprising:
- a CPU for executing program commands;
a flag which is set to a first logic value by the CPU based on a program command;
a voltage booster for boosting a power voltage and outputting a boosted voltage when the flag is set to the first logic value;
a detector for detecting the boosted voltage and outputting a second logic value when the detected voltage is lower than a predetermined level and a third logic value when the detected voltage is equal to or higher than the predetermined level;
a latch which is reset when the output of the detector is the second logic value and is released from being reset when the output of the detector is the third logic value; and
a memory controller for setting the non-volatile memory to a state wherein data can be written when the latch output is set to a logic value different from the logic value when the latch is reset.
6 Assignments
0 Petitions
Accused Products
Abstract
When data are to be written in an EEPROM (1), a CPU (2) sets a flag (12). A voltage booster (13) boosts the power voltage in compliance with the setting of the flag (12). A voltage boost detector (14) detects whether the output of the voltage booster (13) is in voltage boost state. If the output of the voltage booster (13) is not in voltage boost state, a latch (15) is reset and the EEPROM (1) is not permitted to switch to write mode. As a result, it is possible to prevent incorrect data writing in the EEPROM (1) even when the flag (12) has been incorrectly set.
-
Citations
13 Claims
-
1. A microcomputer containing a non-volatile memory capable of reading and writing data, comprising:
-
a CPU for executing program commands; a flag which is set to a first logic value by the CPU based on a program command; a voltage booster for boosting a power voltage and outputting a boosted voltage when the flag is set to the first logic value; a detector for detecting the boosted voltage and outputting a second logic value when the detected voltage is lower than a predetermined level and a third logic value when the detected voltage is equal to or higher than the predetermined level; a latch which is reset when the output of the detector is the second logic value and is released from being reset when the output of the detector is the third logic value; and a memory controller for setting the non-volatile memory to a state wherein data can be written when the latch output is set to a logic value different from the logic value when the latch is reset. - View Dependent Claims (2)
-
-
3. A microcomputer containing a non-volatile memory storing a plurality of program commands and capable of reading and writing data, comprising:
-
a CPU for executing program commands, the CPU having an address counter for sending an address instruction to the non-volatile memory; a flag which is set to a first logic value by the CPU based on a program command; a detector for outputting a logic value based on a power voltage state when the flag is set at the first logic value; a latch which is reset when the output of the detector is a second logic value and is released from being reset when the output of the detector is a third logic value; and a memory controller for setting the non-volatile memory to a state to permit writing of data when the latch output is set to a logic value different from the logic value when the latch is reset, wherein the CPU sets the address counter to a specific value based on the output of the detector when the flag is set to the first logic value, and wherein the CPU determines whether or not the flag is set correctly by decoding a program command read out from the non-volatile memory when the address counter is set to the specific value. - View Dependent Claims (4)
-
-
5. A microcomputer containing a non-volatile memory capable of reading and writing data, comprising:
-
a CPU for executing program commands; a flag which is set to a first logic value by the CPU based on a program command; a detector for outputting a logic value based on a power voltage state when the flag is set at the first logic value; a latch which is reset when the output of the detector is a second logic value and is released from being reset when the output of the detector is a third logic value; and a memory controller for setting the non-volatile memory to a state to permit writing of data when the latch output is set to a logic value different from the logic value when the latch is reset, wherein when the memory controller permits writing of data in the non-volatile memory, the CPU ignores output read out from the non-volatile memory. - View Dependent Claims (6)
-
-
7. A microcomputer containing a non-volatile memory capable of reading and writing data, comprising:
-
a flag set to a specific logic value when data are rewritten in the non-volatile memory; a voltage booster for boosting a power voltage when the flag is set to the specific logic value; and a detector for detecting whether or not the boosted power voltage exceeds a predetermined value; and a memory controller for permitting or inhibiting data writing in the non-volatile memory based on a detection result of the detector.
-
-
8. A microcomputer containing a non-volatile memory capable of reading and writing data, comprising:
-
a flag set to a specific logic value when data are rewritten in the non-volatile memory; a detector for detecting whether or not a power voltage exceeds a predetermined value when the flag is set to the specific logic value; and a memory controller for permitting or inhibiting data writing in the non-volatile memory based on a detection result of the detector, wherein after the flag is set to a specific logic value, the correctness of the flag setting is checked; and wherein the memory controller permits or inhibits data writing in the non-volatile memory based on the check result. - View Dependent Claims (9, 10, 11)
-
-
12. A microcomputer containing non-volatile memory capable of reading and writing data, comprising:
-
a CPU for performing program commands, the CPU having an address counter for sending an address instruction to the non-volatile memory; a flag which is set to a first logic value by the CPU based on a program command; a voltage booster for boosting a power voltage when the flag is set at the first logic value; a detector for detecting the boosted voltage and outputting a second logic value when the detected voltage is lower than a predetermined level and a third logic value when the detected voltage is equal to or higher than the predetermined level; a latch which is reset when the output of the detector is the second logic value and is released from being reset when the output of the detector is the third logic value; and a memory controller for setting the non-volatile memory to a state wherein data can be written when the latch output is set to a logic value different from the logic value when the latch is reset, wherein the CPU sets the address counter to a specific value based on the output of the detector when the flag is set to the first logic value, and wherein the CPU determines whether or not the flag is set correctly by decoding a program command read out from the non-volatile memory when the address counter is set to the specific value. - View Dependent Claims (13)
-
Specification