23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

<strong>TMPM330</strong> (rev 0.4)17-43<br />

<strong>TMPM330</strong><br />

predefined command write sequence, the flash memory will terminate the command execution<br />

and return to the read mode.<br />

(Note 1) Command sequences are executed from outside the flash memory area.<br />

(Note 2) Each bus write cycle must be sequentially executed by 32-bit data transmit command.<br />

While a command sequence is being executed, access to the flash memory is prohibited.<br />

Also, don't generate any interrupt (except debug exceptions when a DSU probe is<br />

connected).If such an operation is made, it can result in an unexpected read access to the<br />

flash memory and the command sequencer may not be able to correctly recognize the<br />

command. While it could cause an abnormal termination of the command sequence, it is<br />

also possible that the written command is incorrectly recognized.<br />

(Note 3) For the command sequencer to recognize a command, the device must be in the read<br />

mode prior to executing the command. Be sure to check before the first bus write cycle that<br />

the FLCS RDY/BSY bit is set to "1." It is recommended to subsequently execute a Read<br />

command.<br />

(Note 4) Upon issuing a command, if any address or data is incorrectly written, be sure to perform a<br />

software reset to return to the read mode again.<br />

(3) Reset<br />

Hardware reset<br />

A hardware reset is used to cancel the operational mode set by the command write<br />

operation when forcibly termination during auto programming/ erasing or abnormal<br />

termination during auto operations occurs. The flash memory has a reset input as the<br />

memory block and it is connected to the CPU reset signal. Therefore, when the RESET<br />

input pin of this device is set to VIL or when the CPU is reset due to any overflow of the<br />

watch dog timer, the flash memory will return to the read mode terminating any automatic<br />

operation that may be in progress. It should also be noted that applying a hardware reset<br />

during an automatic operation can result in incorrect rewriting of data. In such a case, be<br />

sure to perform the rewriting again.<br />

Refer to Section 17.2.1 "Reset Operation" for CPU reset operations. After a given reset<br />

input, the CPU will read the reset vector data from the flash memory and starts operation<br />

after the reset is removed.<br />

Flash Memory Operation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!