23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Under development<br />

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

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

(5) Flash control/ status register<br />

This resister is used to monitor the status of the flash memory and to indicate the protection status of<br />

each block.<br />

Table 17-16 Flash Control Register<br />

31 30 29 28 27 26 25 24<br />

bit Symbol - - - - - - - -<br />

FLCS Read/Write R<br />

0x4004_0520 After reset 0<br />

Function “0” is read.<br />

23 22 21 20 19 18 17 16<br />

bit Symbol - - BLPRO5 BLPRO4 BLPRO3 BLPRO2 BLPRO1 BLPRO0<br />

Read/Write R R R R R R R<br />

After reset 0 0 0 0 0 0 0<br />

Function<br />

“0” is read. Protection<br />

for Block<br />

5<br />

0: disabled<br />

1:enabled<br />

Protection<br />

for Block 4<br />

0: disabled<br />

1:enabled<br />

Protection<br />

for Block 3<br />

0: disabled<br />

1:enabled<br />

Protection<br />

for Block 2<br />

0: disabled<br />

1:enabled<br />

Protection<br />

for Block 1<br />

0: disabled<br />

1:enabled<br />

Protection<br />

for Block 0<br />

0: disabled<br />

1:enabled<br />

15 14 13 12 11 10 9 8<br />

bit Symbol - - - - - - - -<br />

Read/Write R<br />

After reset 0<br />

Function “0” is read.<br />

7 6 5 4 3 2 1 0<br />

bit Symbol - - - - - - - RDY/BSY<br />

Read/Write R R<br />

After reset 0 1<br />

“0” is read. Ready/Bus<br />

y<br />

0:Auto<br />

Function<br />

operating<br />

1:Auto<br />

operation<br />

terminated<br />

Bit 0: Ready/Busy flag bit<br />

The RDY/BSY output is provided as a means to monitor the status of automatic operation.<br />

This bit is a function bit for the CPU to monitor the function. When the flash memory is in<br />

automatic operation, it outputs "0" to indicate that it is busy. When the automatic operation<br />

is terminated, it returns to the ready state and outputs "1" to accept the next command. If<br />

the automatic operation has failed, this bit maintains the "0" output. By applying a<br />

hardware reset, it returns to "1."<br />

Bit [21:16]: Protection status bits<br />

Each of the protection bits (6 bits) represents the protection status of the corresponding<br />

block. When a bit is set to "1," it indicates that the block corresponding to the bit is<br />

protected. When the block is protected, data cannot be written to it.<br />

(Note) Please issue it after confirming the command issue is always a ready state. A<br />

normal command not only is sent when the command is issued to a busy<br />

inside but also there is a possibility that the command after that cannot be<br />

input. In that case, please return by system reset or the reset command.<br />

Flash Memory Operation

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

Saved successfully!

Ooh no, something went wrong!