Introduction ......................................................................................................................................................................... 1
1. About this document .......................................................................................................................................... 1
2. About of embedded programming ............................................................................................................... 2
3. Associated documents ....................................................................................................................................... 3
Chapter 1 ....................................................................................................... 4
1. ME: Mode Entry Modules ................................................................................................................................. 4
1.1. Introduction ................................................................................................................................................. 4
1.2. Enabling modes .......................................................................................................................................... 5
1.3. Configuring modes .................................................................................................................................... 5
1.4. Configuring peripherals .......................................................................................................................... 6
1.5. Device mode selection ............................................................................................................................. 7
2. CGM: Clock Generation Module ..................................................................................................................... 8
2.1. Clock Architecture ..................................................................................................................................... 8
2.2. Clock Out ........................................................................................................................................................ 9
2.3. Sysclk ........................................................................................................................................................... 10
2.4. FMPLL .......................................................................................................................................................... 11
3. A device initialisation procedure ............................................................................................................... 13
4. SWT: Software Watchdog Timer ................................................................................................................ 14
Chapter 2 SIUL: System Integration Unit Line ............................................................................................ 15
1. Introduction ........................................................................................................................................................ 15
2. Pad configuration ............................................................................................................................................. 15
3. GPIO: General Purpose Input/Output ...................................................................................................... 17
4. External interrupts .......................................................................................................................................... 19
Chapter 3 INTC: Interrupt Controller ............................................................................................................. 21
1. Introduction ........................................................................................................................................................ 21
2. INTC configuration (Software mode) ...................................................................................................... 23
2.1. Enabling interrupt requests ............................................................................................................... 23
2.2. Configuring hardware ISRs ................................................................................................................. 23
2.3. Configuring software ISRs ................................................................................................................... 24
2.4. Enabling nested interruptions ........................................................................................................... 24
3. Hardware mode INTC ..................................................................................................................................... 24
Chapter 4 Timer Modules .................................................................................................................................... 26
1. Introduction ........................................................................................................................................................ 26
2. STM: System Timer Module ......................................................................................................................... 27