
C8051F020/1/2/3
4
Rev. 1.4
10. VOLTAGE REFERENCE (C8051F021/3)..........................................................................93
11. COMPARATORS..................................................................................................................95
12. CIP-51 MICROCONTROLLER........................................................................................101
12.1.Instruction Set................................................................................................................102
12.1.1. Instruction and CPU Timing................................................................................102
12.1.2. MOVX Instruction and Program Memory...........................................................102
12.2.Memory Organization ...................................................................................................107
12.2.1. Program Memory.................................................................................................107
12.2.2. Data Memory.......................................................................................................108
12.2.3. General Purpose Registers...................................................................................108
12.2.4. Bit Addressable Locations...................................................................................108
12.2.5. Stack
.................................................................................................................108
12.2.6. Special Function Registers...................................................................................109
12.2.7. Register Descriptions...........................................................................................113
12.3.Interrupt Handler...........................................................................................................116
12.3.1. MCU Interrupt Sources and Vectors ...................................................................116
12.3.2. External Interrupts ...............................................................................................116
12.3.3. Interrupt Priorities................................................................................................118
12.3.4. Interrupt Latency..................................................................................................118
12.3.5. Interrupt Register Descriptions............................................................................119
12.4.Power Management Modes...........................................................................................125
12.4.1. Idle Mode.............................................................................................................125
12.4.2. Stop Mode............................................................................................................125
13. RESET SOURCES ..............................................................................................................127
13.1.Power-on Reset..............................................................................................................128
13.2.Power-fail Reset ............................................................................................................128
13.3.External Reset................................................................................................................129
13.4.Software Forced Reset...................................................................................................129
13.5.Missing Clock Detector Reset.......................................................................................129
13.6.Comparator0 Reset........................................................................................................129
13.7.External CNVSTR Pin Reset.........................................................................................129
13.8.Watchdog Timer Reset..................................................................................................129
13.8.1. Enable/Reset WDT..............................................................................................130
13.8.2. Disable WDT.......................................................................................................130
13.8.3. Disable WDT Lockout.........................................................................................130
13.8.4. Setting WDT Interval...........................................................................................130
14. OSCILLATORS...................................................................................................................135
14.1.External Crystal Example..............................................................................................138
14.2.External RC Example....................................................................................................138
14.3.External Capacitor Example..........................................................................................138
15. FLASH MEMORY..............................................................................................................139
15.1.Programming The FLASH Memory .............................................................................139
15.2.Non-volatile Data Storage.............................................................................................140
15.3.Security Options............................................................................................................140
16. EXTERNAL DATA MEMORY INTERFACE AND ON-CHIP XRAM.......................145