Memory data protection circuit
First Claim
1. A memory data protection circuit provided in a one-chip microcomputer having a CPU, a ROM, a volatile memory, and a nonvolatile memory formed on a single chip, said memory data protection circuit comprising:
- a first bus line connected to said CPU, said volatile memory, said nonvolatile memory, and an input/output control circuit;
a second bus line connected to a ROM storing a system program;
a third bus line connected to a test-only memory storing a memory test program;
a security flag storage circuit to which a security flag consisting of a plurality of bits is inputted, into which said security flag is written on receipt of a control signal so that the logic level of said flag may change in one direction, and which stores the security flag in a state where the flag cannot be rewritten once the flag has been written;
a power-on reset circuit that outputs a power-on reset signal when the power supply for the one-chip microcomputer has been turned on;
a security flag monitor circuit that reads the security flag stored in said security flag storage circuit when receiving said power-on reset signal and recognizes the contents of the flag; and
a bus line control circuit which controls the connection of said first bus line, said second bus line and said third bus line according to the recognition result of said security flag monitor circuit, and which controls their connection so that a shift to the test mode may be possible, when said security flag indicates the test mode before shipment, controls their connection so that a shift to the test mode may be impossible, when said security flag indicates the normal operation mode after shipment, and controls their connection so that a shift to the test mode may be possible with said ROM being disconnected from said second bus line, when said security flag indicates the test mode after shipment.
1 Assignment
0 Petitions
Accused Products
Abstract
A memory data protection circuit is provided on a one-chip microcomputer having a CPU, ROM, volatile memory, and nonvolatile memory which together with an input/output control circuit are connected to each other via a first bus line. A security flag storage circuit receives a security flag consisting of a plurality of bits. In one state the security flag cannot be rewritten once it has been written. A security flag monitor circuit reads the security flag and when receiving the power-on reset signal recognizes the flag contents. A bus line control circuit controls the connections of the first bus line, a second bus line connected to the ROM, and a third bus line connected to a test-only memory in response to the security flag monitor circuit When the security flag indicates test mode before shipment, the bus line control circuit controls connections so a shift to the test mode may be possible; when it indicates normal operation mode after shipment, a shift to the test mode may be impossible; and when it indicates test mode after shipment, a shift to the test mode may be possible with the ROM disconnected from the second bus line.
-
Citations
6 Claims
-
1. A memory data protection circuit provided in a one-chip microcomputer having a CPU, a ROM, a volatile memory, and a nonvolatile memory formed on a single chip, said memory data protection circuit comprising:
-
a first bus line connected to said CPU, said volatile memory, said nonvolatile memory, and an input/output control circuit; a second bus line connected to a ROM storing a system program; a third bus line connected to a test-only memory storing a memory test program; a security flag storage circuit to which a security flag consisting of a plurality of bits is inputted, into which said security flag is written on receipt of a control signal so that the logic level of said flag may change in one direction, and which stores the security flag in a state where the flag cannot be rewritten once the flag has been written; a power-on reset circuit that outputs a power-on reset signal when the power supply for the one-chip microcomputer has been turned on; a security flag monitor circuit that reads the security flag stored in said security flag storage circuit when receiving said power-on reset signal and recognizes the contents of the flag; and a bus line control circuit which controls the connection of said first bus line, said second bus line and said third bus line according to the recognition result of said security flag monitor circuit, and which controls their connection so that a shift to the test mode may be possible, when said security flag indicates the test mode before shipment, controls their connection so that a shift to the test mode may be impossible, when said security flag indicates the normal operation mode after shipment, and controls their connection so that a shift to the test mode may be possible with said ROM being disconnected from said second bus line, when said security flag indicates the test mode after shipment. - View Dependent Claims (2, 3, 4)
-
-
5. A memory data protection circuit provided in a one-chip microcomputer having a CPU, a ROM, a volatile memory, and a nonvolatile memory formed on a single chip, said memory data protection circuit comprising:
-
a first bus line connected to said CPU, said volatile memory, said nonvolatile memory, and an input/output control circuit; a second bus line connected to a ROM storing a system program; a third bus line connected to a test-only memory storing a memory test program; a security flag storage circuit to which a security flag consisting of a plurality of bits is inputted, into which said security flag is written on receipt of a control signal so that the logic level of said security flag may change in one direction, and which stores the security flag in a state where the flag cannot be rewritten once the flag has been written; a power-on reset circuit that outputs a power-on reset signal when the power supply for the one-chip microcomputer has been turned on; a security flag monitor circuit that reads the security flag stored in said security flag storage circuit when receiving said power-on reset signal and recognizes the contents of the flag; and a bus line control circuit which controls the connection of said first bus line with said CPU according to the recognition result of said security flag monitor circuit and which, when said security flag indicates the test mode before shipment, disconnects said CPU completely from said first bus line and controls said input/output control circuit section so that access to all of the memories may be controlled directly from the input/output terminal to enable a shift to the test mode and which controls the connection so that a shift to the test mode may be impossible, when said security flag indicates the normal operation mode after shipment, and which controls the connection so that a shift to the test mode may be possible with said ROM being disconnected from said second bus line, when said security flag indicates the test mode after shipment. - View Dependent Claims (6)
-
Specification