Contents
Preface ...................................................................................................................................... 15
1 Introduction ...................................................................................................................... 19
1.1 Overview .................................................................................................................... 20
1.1.1 CPU and Memory ................................................................................................ 23
1.1.2 Clocks and Power Management ................................................................................ 23
1.1.3 Peripherals ........................................................................................................ 23
1.1.4 Radio ............................................................................................................... 25
1.2 Applications ................................................................................................................ 25
2 8051 CPU .......................................................................................................................... 27
2.1 8051 CPU Introduction .................................................................................................... 28
2.2 Memory ..................................................................................................................... 28
2.2.1 Memory Map ...................................................................................................... 28
2.2.2 CPU Memory Space ............................................................................................. 30
2.2.3 Physical Memory ................................................................................................. 30
2.2.4 XDATA Memory Access ......................................................................................... 36
2.2.5 Memory Arbiter ................................................................................................... 36
2.3 CPU Registers ............................................................................................................. 37
2.3.1 Data Pointers ...................................................................................................... 37
2.3.2 Registers R0–R7 ................................................................................................. 38
2.3.3 Program Status Word ............................................................................................ 38
2.3.4 Accumulator ....................................................................................................... 39
2.3.5 B Register ......................................................................................................... 39
2.3.6 Stack Pointer ...................................................................................................... 39
2.4 Instruction Set Summary ................................................................................................. 39
2.5 Interrupts .................................................................................................................... 43
2.5.1 Interrupt Masking ................................................................................................. 43
2.5.2 Interrupt Processing .............................................................................................. 47
2.5.3 Interrupt Priority ................................................................................................... 49
3 Debug Interface ................................................................................................................. 53
3.1 Debug Mode ............................................................................................................... 54
3.2 Debug Communication ................................................................................................... 54
3.3 Debug Commands ........................................................................................................ 56
3.3.1 Debug Configuration ............................................................................................. 58
3.3.2 Debug Status ...................................................................................................... 58
3.3.3 Hardware Breakpoints ........................................................................................... 59
3.4 Flash Programming ....................................................................................................... 60
3.4.1 Lock Bits ........................................................................................................... 60
3.5 Debug Interface and Power Modes ..................................................................................... 60
3.6 Registers .................................................................................................................... 62
4 Power Management and Clocks .......................................................................................... 63
4.1 Power Management Introduction ........................................................................................ 64
4.1.1 Active and Idle Mode ............................................................................................. 65
4.1.2 PM1 ................................................................................................................ 65
4.1.3 PM2 ................................................................................................................ 65
3
SWRU191C–April 2009–Revised January 2012 Contents
Submit Documentation Feedback
Copyright © 2009–2012, Texas Instruments Incorporated