Table of Contents
4 October 8, 2006
Preliminary
6. Syste m C o n tr o l... .. ....... .. .. ....... .. ....... .. .. ....... .. ...... ... .. ...... ... ...... .. ... ...... ... ...... .. ... ...... .. ............ 51
6.1 Functional Description .........................................................................................................................51
6.1.1 Device Identification............................................................................................................................. 51
6.1.2 Reset Control....................................................................................................................................... 51
6.1.3 Power Control ...................................................................................................................................... 54
6.1.4 Clock Control ....................................................................................................................................... 54
6.1.5 System Contro l .. ....... ...... ....... ...... ....... ...... ....... ...... ....... ................... ...... ....... ...... ....... .......................... 56
6.2 Initialization and Configuration............................................................................................................. 57
6.3 Register Map ....................................................................................................................................... 57
6.4 Register Descriptions........................................................................................................................... 58
7. Inte rn a l Me mory ....... ... ...... .. ....... .. ... ...... .. ....... .. .. ....... .. ....... .. .. ....... .. ....... .. .. ....... .. ....... .. .. ..... 93
7.1 Block Diagram ................ ....... ...... ....... ...... ....... ...... ....... ...... ................... ....... ...... ....... .......................... 93
7.2 Functional Description .........................................................................................................................93
7.2.1 SRAM Memory ............... ....... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ....... ....................................... 93
7.2.2 Flash Memory ........... ...... ....... ...... .................... ...... ....... ...... ...... ....... ...... ....... ...... ....... .......................... 94
7.3 Initialization and Configuration............................................................................................................. 95
7.3.1 Changing Flash Protection Bits ........................................................................................................... 95
7.3.2 Flash Programmi ng ............... ...... ....... ...... ....... ................... ...... ....... ...... ....... ...... ....... .......................... 96
7.4 Register Map ....................................................................................................................................... 96
7.5 Register Descriptions........................................................................................................................... 97
8. Gener al-Purpose Input/Outputs (GPIOs) ................. ........... ........... ........... ........... ...........107
8.1 Block Diagram ................ ....... ...... ....... ...... ....... ...... ....... ...... ................... ....... ...... ....... ........................ 108
8.2 Functional Description .......................................................................................................................109
8.2.1 Data Register Operation ....................................................................................................................109
8.2.2 Data Direction .................................................................................................................................... 110
8.2.3 Interrupt Operation............................................................................................................................. 110
8.2.4 Mode Control ..................................................................................................................................... 111
8.2.5 Pad Configuration.............................................................................................................................. 111
8.2.6 Identification....................................................................................................................................... 111
8.3 Initialization and Configuration........................................................................................................... 111
8.4 Register Map ..................................................................................................................................... 113
8.5 Register Descriptions......................................................................................................................... 114
9. General-Purpose Timers .................................................................................................. 145
9.1 Block Diagram ................ ....... ...... ....... ...... ....... ...... ....... ...... ................... ....... ...... ....... ........................ 146
9.2 Functional Description .......................................................................................................................146
9.2.1 GPTM Reset Conditio ns . ....... ...... ....... ...... ....... ...... ....... ................... ...... ....... ...... ....... ...... ..................146
9.2.2 32-Bit Timer Operating Modes........................................................................................................... 146
9.2.3 16-Bit Timer Operating Modes........................................................................................................... 148
9.3 Initialization and Configuration........................................................................................................... 152
9.3.1 32-Bit One-Shot/Periodic Timer Mode............................................................................................... 152
9.3.2 32-Bit Real-Time Clock (RTC) Mode.................................................................................................153
9.3.3 16-Bit One-Shot/Periodic Timer Mode............................................................................................... 153
9.3.4 16-Bit Input Edge Count Mode .......................................................................................................... 153
9.3.5 16-Bit Input Edge Timing Mode ......................................................................................................... 154
9.3.6 16-Bit PWM Mode.............................................................................................................................. 154
9.4 Register Map ..................................................................................................................................... 155
9.5 Register Descriptions......................................................................................................................... 156