C8051F360/1/2/3/4/5/6/7/8/9
9.4.3. General Purpose Registers ...................................................................... 87
9.4.4. Bit Addressable Locations........................................................................ 87
9.4.5. Stack ....................................................................................................... 87
9.4.6. Special Function Registers....................................................................... 88
9.4.7. Register Descriptions ............................................................................. 102
9.5. Power Management Modes ............................................................................ 104
9.5.1. Idle Mode................................................................................................ 105
9.5.2. Stop Mode .............................................................................................. 105
9.5.3. Suspend Mode ....................................................................................... 105
10. Interrupt Handler .................................................................................................. 107
10.1.MCU Interrupt Sources and Vectors............................................................... 107
10.2.Interrupt Priorities ........................................................................................... 108
10.3.Interrupt Latency............................................................................................. 108
10.4.Interrupt Register Descriptions ....................................................................... 109
10.5.External Interrupts .......................................................................................... 115
11. Multiply And Accumulate (MAC0) ....................................................................... 117
11.1.Special Function Registers............................................................................. 117
11.2.Integer and Fractional Math............................................................................ 118
11.3.Operating in Multiply and Accumulate Mode .................................................. 119
11.4.Operating in Multiply Only Mode .................................................................... 119
11.5.Accumulator Shift Operations......................................................................... 119
11.6.Rounding and Saturation................................................................................ 120
11.7.Usage Examples ............................................................................................ 120
11.7.1.Multiply and Accumulate Example ......................................................... 120
11.7.2.Multiply Only Example............................................................................ 121
11.7.3.MAC0 Accumulator Shift Example ......................................................... 121
12. Reset Sources....................................................................................................... 128
12.1.Power-On Reset ............................................................................................. 129
12.2.Power-Fail Reset/VDD Monitor ...................................................................... 130
12.3.External Reset ................................................................................................ 131
12.4.Missing Clock Detector Reset ........................................................................ 131
12.5.Comparator0 Reset ........................................................................................ 131
12.6.PCA Watchdog Timer Reset .......................................................................... 132
12.7.Flash Error Reset ........................................................................................... 132
12.8.Software Reset ............................................................................................... 132
13. Flash Memory ....................................................................................................... 135
13.1.Programming the Flash Memory .................................................................... 135
13.1.1.Flash Lock and Key Functions ............................................................... 135
13.1.2.Erasing Flash Pages From Software ..................................................... 136
13.1.3.Writing Flash Memory From Software.................................................... 136
13.1.4.Non-volatile Data Storage ...................................................................... 137
13.2.Security Options ............................................................................................. 138
13.2.1.Summary of Flash Security Options....................................................... 139
13.3.Flash Write and Erase Guidelines .................................................................. 140
13.3.1.VDD Maintenance and the VDD Monitor ............................................... 140
4
Rev. 1.0