16/32-Bit Single-Chip Microcontroller The on-chip Flash memory consists of up to 3 modules. Each module is organized in 4-Kbyte sectors. One 4-Kbyte sector of Flash module 0 is used internally to store operation control parameters and protection information. (The uppermost 4-Kbyte sector of segment 0 - C0'F000H to C0'FFFFH) Each sector can be separately write protected1), erased and programmed (in blocks of 128 Bytes). The complete Flash area can be read-protected. A user-defined password sequence temporarily unlocks protected areas. The Flash modules combine 128-bit read accesses with protected and efficient writing algorithms for programming and erasing. Memory Protection Unit (MPU) MPU protects user-specified memory areas from unauthorized read, write, or instruction fetch accesses. The MPU can protect the whole address space including the peripheral area. This completes establisched mechanisms such as the register security mechanism or stack overrun/underrun detection. Four Protection Levels support flexible system programming where operating system, low level drivers, and applications run on separate levels. Each protection level permits different access restrictions for instructions and/or data. Every access is checked (if the MPU is enabled) and an access violating the permission rules will be marked as invalid and leads to a protection trap. A set of protection registers for each protection level specifies the address ranges and the access permissions. Applications requiring more than 4 protection levels can dynamically re-program the protection registers. FLASH cтирается в 00.