3. PIT: Periodic Interrupt Timer ..................................................................................................................... 27
4. RTC/API: Real Time Clock/ Autonomous Periodic Interrupt ........................................................ 29
5. Timer Examples ................................................................................................................................................ 31
Chapter 5 eMIOS: Enhanced Modular I/O Subsystem ............................................................................. 32
1. Module Configuration ..................................................................................................................................... 33
2. Channel Configuration .................................................................................................................................... 34
1.1. Introduction .............................................................................................................................................. 34
1.2. GPIO: General Purpose Input/Output ............................................................................................ 36
1.3. SAIC: Single Action Input Capture .................................................................................................... 37
1.4. SAOC: Single Action Output Compare ............................................................................................. 37
1.5. IPWM: Input Pulse Width Measurement ....................................................................................... 38
1.6. IPM: Input Period Measurement ...................................................................................................... 38
1.7. DAOC: Double Action Output Compare .......................................................................................... 39
1.8. MC: Modulus Counter ............................................................................................................................ 40
1.9. MCB: Modulus Counter Buffered ...................................................................................................... 41
1.10. OPWFMB: Output Pulse Width and Frequency Modulation Buffered ......................... 41
1.11. OPWMCB: Center Aligned Output Pulse Width Buffered .................................................. 43
1.12. OPWMB: Output Pulse Width Modulation Buffered ............................................................ 44
1.13. OPWMT: Output Pulse Width Modulation with Trigger .................................................... 45
3. PWM Channel Initialisation .......................................................................................................................... 46
4. PWM Example .................................................................................................................................................... 46
Chapter 6 ADC: Analog-to-Digital Converter ............................................................................................... 48
1. Presentation of the ADC module ................................................................................................................ 48
1.1. Introduction .............................................................................................................................................. 48
1.2. Conversion ................................................................................................................................................. 49
1.3. ADC clock and conversion timing ..................................................................................................... 50
1.4. Pre-sampling ............................................................................................................................................. 51
1.5. Analog watchdog ..................................................................................................................................... 51
1.6. Low power consumption modes ...................................................................................................... 51
2. ADC Configuration ............................................................................................................................................ 52
2.1. Pad Configuration ................................................................................................................................... 52
2.2. General Registers .................................................................................................................................... 52
2.3. Conversion Registers ............................................................................................................................. 53
2.4. Interrupt Registers ................................................................................................................................. 54
2.5. Watchdog Registers ............................................................................................................................... 54