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.

Command<br />

sequence<br />

(6) List of Command Sequences<br />

First bus<br />

cycle<br />

Under development<br />

Table 17-18 Flash Memory Access from the Internal CPU<br />

Second bus<br />

cycle<br />

Third bus<br />

cycle<br />

Fourth bus<br />

cycle<br />

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

Fifth bus<br />

cycle<br />

Sixth bus<br />

cycle<br />

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

Seventh bus<br />

cycle<br />

Addr. Addr. Addr. Addr. Addr. Addr. Addr.<br />

Data Data Data Data Data Data Data<br />

Read<br />

0xXX - - - - - -<br />

0xF0 - - - - - -<br />

Read/Reset<br />

0x54XX 0xAAXX 0x54XX RA - - -<br />

0xAA 0x55 0xF0 RD - - -<br />

ID-Read<br />

0x54XX 0xAAXX 0x54XX IA 0xXX - -<br />

0xAA 0x55 0x90 0x00 ID - -<br />

Automatic page 0x54XX 0xAAXX 0x54XX PA PA PA PA<br />

programming<br />

(note)<br />

0xAA 0x55 0xA0<br />

PD0 PD1<br />

PD2 PD3<br />

Automatic chip 0x54XX 0xAAXX 0x54XX 0x54XX 0xAAXX 0x54XX -<br />

erase 0xAA 0x55 0x80 0xAA 0x55 0x10 -<br />

Auto<br />

0x54XX 0xAAXX 0x54XX 0x54XX 0xAAXX BA -<br />

Block erase (note) 0xAA 0x55 0x80 0xAA 0x55 0x30 -<br />

Protection bit 0x54XX 0xAAXX 0x54XX 0x54XX 0xAAXX 0x54XX PBA<br />

programming 0xAA 0x55 0x9A 0xAA 0x55 0x9A 0x9A<br />

Protection bit 0x54XX 0xAAXX 0x54XX 0x54XX 0xAAXX 0x54XX PBA<br />

erase 0xAA 0x55 0x6A 0xAA 0x55 0x6A 0x6A<br />

Supplementary explanation<br />

• RA: Read address<br />

• RD: Read data<br />

• IA: ID address<br />

• ID: ID data<br />

• PA: Program page address<br />

PD: Program data (32 bit data)<br />

After the fourth bus cycle, enter data in the order of the address for a page.<br />

• BA: Block address<br />

• PBA: Protection bit address<br />

• 0x54xx: Substitutable by 0x55xx<br />

(Note 1) Always set "0" to the address bits [1:0] in the entire bus cycle. (Recommendable setting<br />

values to bits [7:2] are ”0”.)<br />

(Note 2) Bus cycles are "bus write cycles" except for the second bus cycle of the Read command,<br />

the fourth bus cycle of the Read/reset command, and the fifth bus cycle of the ID-Read<br />

command. Bus write cycles are executed by 32-bit data transfer commands. The address<br />

[31:16] in each bus write cycle should be the target flash memory address [31:16] of the<br />

command sequence. Use "Addr." in the table for the address [15:0].<br />

Flash Memory Operation

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

Saved successfully!

Ooh no, something went wrong!