C8051F336/7/8/9
12.2.CIP-51 Register Descriptions ........................................................................... 78
13.Memory Organization............................................................................................. 81
13.1.Program Memory.............................................................................................. 82
13.1.1.MOVX Instruction and Program Memory ................................................. 82
13.2.Data Memory.................................................................................................... 83
13.2.1.Internal RAM ............................................................................................ 83
13.2.1.1.General Purpose Registers ............................................................. 83
13.2.1.2.Bit Addressable Locations ............................................................... 83
13.2.1.3.Stack ............................................................................................ 84
13.2.2.External RAM........................................................................................... 84
14.Special Function Registers ................................................................................... 85
15.Interrupts................................................................................................................. 89
15.1.MCU Interrupt Sources and Vectors................................................................. 90
15.1.1.Interrupt Priorities..................................................................................... 90
15.1.2.Interrupt Latency ...................................................................................... 90
15.2.Interrupt Register Descriptions......................................................................... 91
15.3.External Interrupts /INT0 and /INT1.................................................................. 96
16.Flash Memory ......................................................................................................... 98
16.1.Programming The Flash Memory..................................................................... 98
16.1.1.Flash Lock and Key Functions................................................................. 98
16.1.2.Flash Erase Procedure ............................................................................ 98
16.1.3.Flash Write Procedure ............................................................................. 99
16.2.Non-volatile Data Storage ................................................................................ 99
16.3.Security Options ............................................................................................. 100
16.4.Flash Write and Erase Guidelines.................................................................. 102
16.4.1.V Maintenance and the V monitor ................................................. 102
DD
DD
16.4.2.PSWE Maintenance............................................................................... 102
16.4.3.System Clock ......................................................................................... 103
17.Power Management Modes ................................................................................. 107
17.1.Idle Mode........................................................................................................ 107
17.2.Stop Mode ...................................................................................................... 108
17.3.Suspend Mode ............................................................................................... 108
18.Reset Sources....................................................................................................... 110
18.1.Power-On Reset............................................................................................. 111
18.2.Power-Fail Reset / VDD Monitor .................................................................... 112
18.3.External Reset................................................................................................ 113
18.4.Missing Clock Detector Reset ........................................................................ 113
18.5.Comparator0 Reset ........................................................................................ 114
18.6.PCA Watchdog Timer Reset .......................................................................... 114
18.7.Flash Error Reset ........................................................................................... 114
18.8.Software Reset............................................................................................... 114
19.Oscillators and Clock Selection.......................................................................... 116
19.1.System Clock Selection.................................................................................. 117
19.2.Programmable Internal High-Frequency (H-F) Oscillator............................... 118
19.2.1.Internal Oscillator Suspend Mode.......................................................... 118
4
Rev. 0.2