Datasheet
DocID024647 Rev 1 35/138
RM0352 Embedded Flash memory
137
The APB actions that need to be performed are:
• Write ADDRESS register value of the word you want to write.
• Write DATA register with the value you want to program.
• Write PROGRAM command value to the COMMAND register.
MASS WRITE
One word can be programmed to every location in program memory.
The APB actions that need to be performed are:
• Write DATA register with the value you want to program.
• Write MASS WRITE command value to the COMMAND register.
MASS READ
Every location in program memory can be read with one command.
The APB actions that need to be performed are:
• Write DATA with the value you want to compare with (if READOK flag needs to be
checked). There is no need to write the DATA register to read the signature in the
LFSRVAL register).
• Write MASS READ command value to the COMMAND register.
READOK can be checked to see if all locations matched the DATA register value
(READOK = '1'), or if one or more locations mismatched (READOK = '0').
Every mass read will generate a readable signature (register LFSRVAL).
6.3.5 CONFIG register
The Flash can be read in one system clock cycle (the best for power consumption) when the
system clock is 16 MHz maximum, at lower frequencies the Flash is still functional. For
higher frequency, Table 22 shall be taken into account:
Table 21. Flash CONFIG register
Bit Name Description
0REGISTERED
0 = read access of 1 system clock.
1 = read access of 2 system clock with registered value.
1 REMAP Remap bit for top-level use.
2 RESERVED RESERVED
3 RESERVED RESERVED - Do not modify
5:4 WAIT[1:0] Wait states for high clock speed above 16 MHz
6 RESERVED RESERVED - Do not modify