ML610Q111/ML610Q112 User’s Manual
Chapter 10 PWM
FEUL610Q111
10-42
10.3.4 Interrupt of PWM
Interrupts of PWM contain the following four types:
•
Period match interrupt
•
Duty match interrupt
•
Count stop interrupt by external input
•
Emergency stop interrupt
Figure 10-7 shows how to identify these interrupts when continuous mode and one-shot mode. For emergency stop
interrupt, confirm that PnSDST bit of the PWnCON1 register is set to “1” regardless of the mode.
*1
: In some settings such as when the set period is short, and when the PWM clock is selected where
PWnC cannot be read, interrupts cannot be identified.
*2
: They can be identified only when PnEXCL bit of the PWnCON2 register is set to 0.
Figure 10-7 Identifying PWM Interrupt
Read
PnRUN bit
•When continuous mode is selected
(PnRUN=0)
(PnRUN=1)
Read
PWnC register
*1
(PWnC > PWnD)
(PWnC
≤
PWnD)
Count stop interrupt by
external input
Period matched interrupt
Duty matched interrupt
Read
PnRUN bit
•When one shot mode is selected
(PnRUN=0)
(PnRUN=1)
Read
PWnC register
(PWnC
≠
0)
(PWnC = 0)
Count stop interrupt by
external input
*2
Period matched interrupt
Duty matched interrupt
Содержание ML610Q111
Страница 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Страница 14: ...Chapter 1 Overview ...
Страница 26: ...Chapter 2 CPU and Memory Space ...
Страница 34: ...Chapter 3 Reset Function ...
Страница 38: ...Chapter 4 MCU Control Function ...
Страница 53: ...Chapter 5 Interrupts INTs ...
Страница 81: ...Chapter 6 Clock Generation Circuit ...
Страница 95: ...Chapter 7 Time Base Counter ...
Страница 103: ...Chapter 8 Timers ...
Страница 145: ...Chapter 9 Watchdog Timer ...
Страница 153: ...Chapter 10 PWM ...
Страница 199: ...Chapter 11 Synchronous Serial Port ...
Страница 212: ...Chapter 12 UART ...
Страница 240: ...Chapter 13 I2 C Bus Interface Master ...
Страница 254: ...Chapter 14 I2 C Bus Interface Slave ...
Страница 269: ...Chapter 15 Port A ...
Страница 279: ...Chapter 16 Port B ...
Страница 291: ...Chapter 17 Port C ...
Страница 303: ...Chapter 18 Port D ...
Страница 312: ...Chapter 19 Port AB Interrupts ...
Страница 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Страница 335: ...Chapter 21 Voltage Level Supervisor ...
Страница 342: ...Chapter 22 Analog Comparator ...
Страница 353: ...Chapter 23 Data Flash Memory ...
Страница 373: ...Chapter 24 On chip Debug ...
Страница 375: ...Appendixes ...
Страница 393: ...Appendix E ...
Страница 398: ...Revision History ...