TC1784
Program Memory Unit (PMU)
User´s Manual
5-18
V1.1, 2011-05
PMU, V1.47
to protect against inadvertent writes. Some commands which do not directly control
Flash array operations are implemented as single cycle commands.
All command cycles are write (store) cycles to the Flash. During command cycles, the
low order 16 bits of the address bus (A15–A0) define the Flash command address, and
only command cycles with addresses to sectors, pages and wordlines also use the Flash
address bits A21–A16. Additionally, the command addresses are mapped into the total
address space of the controller by using base addresses dedicated to the Flash bank to
be operated on (see
“Address Mapping” on Page 5-26
).
The write data of a command cycle define the 8-bit operation code or security pattern in
case of unlock cycles, the 32-bit password for protection disable cycles, or it represents
the 64 or 32-bit data to be programmed. Improper command cycles or interrupted
command sequences are indicated by the sequence error flag in the Flash status
register.
Note: User code, that writes command sequences to the Program Flash, should not be
executed from the internal Flash; it shall be located in other internal or external
program memory, e.g. in the scratchpad SPRAM. But user code, that writes
command sequences to the Data Flash, can be located in and executed from the
Program Flash.
Note: The write cycles, belonging to a command sequence, may be buffered on its way
to the Flash in store/write buffers. To maintain data coherency (strictly in-order
sequence of command cycles is mandatory) and to guarantee immediate transfer
of the command cycles to the PMU, all write cycles to the Flash must access the
Flash in its non-cached address space. Additionally, it is recommended to include
a dummy read (ld.w) instruction to a PMU register (e.g. PMU_ID) after the last
write cycle of a command sequence to flush the write buffers.
Additional hints are available in chapter
“Application Hints and Guidelines” on
, possible error conditions and their reporting in FSR are summarized in
Programming Control
Programmed Flash bits deliver a ‘1’ value. The Flash module provides a page assembly
mechanism for all program (data write) operations in Program Flash and Data Flash.
This assembly mechanism requires to assemble 256 bytes (Data Flash: 128 bytes) in a
page assembly buffer before this assembly buffer is being written to Flash in one
program cycle.
Page write operations are executed by load/store command sequences, comprising the
following three steps:
1. Start with the ‘Enter Page Mode’ command. This command’s address determines in
its high order address bits also the bank of Flash (Program Flash or Data Flash bank)
to be programmed.
Содержание TC1784
Страница 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Страница 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Страница 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...