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 />

11. The 45th and 46th bytes transmitted are 01H, 00H.<br />

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

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

12. The 47th to 50th bytes, transmitted from the target board to the controller, indicate the<br />

start address of the on-chip flash memory, are 00H, 00H, 80H, and 3FH.<br />

13. The 51st to 54th bytes, transmitted from the target board to the controller, indicate the<br />

end address of the on-chip flash memory, i.e., FFH, FFH, 87H, and 3FH.<br />

14. The 55th to 56th bytes, transmitted from the target board to the controller, indicate the<br />

number of flash blocks available, are 06H, 00H.<br />

15. The 57th to 83rd bytes, transmitted from the target board to the controller, contain<br />

information about the flash blocks. Flash blocks of the same size are treated as a<br />

group. Information about the flash blocks indicate the start address of a group, the size<br />

of the blocks in that group (in halfwords) and the number of the blocks in that group.<br />

The 57th to 65th bytes are the information about the 16-kbyte blocks. The 66th to 74th<br />

bytes are the information about the 32-kbyte blocks. The 75th to 83rd bytes are the<br />

information about the 64-kbyte blocks. The 84th to 92nd bytes are the information<br />

about the 128-kbyte blocks. See Table 17-9 for the values of bytes transmitted.<br />

16. The 66th byte, transmitted from the target board to the controller, is a checksum value<br />

for the 5th to 92nd bytes. The checksum value is calculated by adding all these bytes<br />

together, dropping the carry and taking the two’s complement of the total sum.<br />

17. The 94th byte is the next command code.<br />

Flash Memory Operation

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

Saved successfully!

Ooh no, something went wrong!