
Fail-Safe Features
XMC4000 Family
Table of Contents
Application Guide 4 V1.0, 2013-04
Table of Contents
Voltage Supervision ..............................................................................................................................................6
1Voltage Supervision...........................................................................................................................7
1.1 Introduction...........................................................................................................................................7
1.2 Embedded Voltage Regulator..............................................................................................................7
1.3 Power-on Reset....................................................................................................................................7
1.4 PORST pin...........................................................................................................................................8
1.4.1 Power Validation ..................................................................................................................................9
1.4.2 Supply Watchdog...............................................................................................................................11
1.5 Supply Voltage Brown-out Detection .................................................................................................12
1.6 Hibernate Domain Power Management.............................................................................................13
1.6.1 Temporary Loss of VDDP Supply.........................................................................................................13
1.6.2 Prevention of Premature Coin Battery Discharging ...........................................................................13
Clock Supervision ...............................................................................................................................................15
2Clock Supervision............................................................................................................................16
2.1 Introduction.........................................................................................................................................16
2.2 Fail-safe System Clock ......................................................................................................................16
2.3 Backup Clock Source.........................................................................................................................17
2.3.1 High Precision Oscillator Watchdog Trap ..........................................................................................17
2.3.2 System PLL Loss-of-Lock Trap..........................................................................................................18
2.3.3 System PLL Loss-of-Lock Recovery..................................................................................................18
2.3.4 Emergency Mode...............................................................................................................................18
2.3.5 Fail-safe Clock Ratio Configuration....................................................................................................21
2.4 Fail-safe USB Clock...........................................................................................................................21
2.4.1 USB PLL Loss-of-Lock Trap ..............................................................................................................22
2.5 Fail-safe RTC Clock...........................................................................................................................22
2.5.1 RTC Clock Watchdog Trap................................................................................................................23
2.5.2 Emergency Mode Clock for RTC .......................................................................................................23
Memory Integrity..................................................................................................................................................24
3Memory Integrity Protection ...........................................................................................................25
3.1 Introduction.........................................................................................................................................25
3.2 Principle of Parity Check Operation...................................................................................................25
3.3 Parity Error on System SRAMs..........................................................................................................26
3.4 Parity Error on Peripheral Module SRAMs ........................................................................................26
3.5 System Reset Upon Parity Error........................................................................................................26
Fail-safe Flash......................................................................................................................................................27
4Fail-Safe Flash..................................................................................................................................28
4.1 Introduction.........................................................................................................................................28
4.2 Error Correction Codes (ECC) ...........................................................................................................28
4.2.1 Single-bit Error ...................................................................................................................................29
4.2.2 Double-bit Error..................................................................................................................................29
4.3 Reset During Flash Operation............................................................................................................29
4.3.1 Boot Fallback Mode (ABM) ................................................................................................................31
4.4 Flash Clock.........................................................................................................................................31
4.5 Wear-leveling .....................................................................................................................................31
4.6 Flash Write and OTP Protection ........................................................................................................32
4.6.1 Configuring Flash Protection in the UCB ...........................................................................................32
4.6.2 Write and OTP Protection Status.......................................................................................................33
4.7 Service Request Generation..............................................................................................................33
4.7.1 Interrupt Control .................................................................................................................................33