ML610Q111/ML610Q112 User’s Manual
Chapter 10 PWM
FEUL610Q111
10-36
10.2.33 PWMF Control Register 5 (PWFCON5)
Address: 0F977H
Access: R/W
Access size: 8 bits
Initial value: 00H
7
6
5
4
3
2
1
0
PWFCON5
PF2FLG
PF1FLG
PF0FLG
PFDISL1
PFDISL0
PFUD
R/W
R
R
R
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
PWFCON5 is a special function register (SFR) to control PWMF0 to 2.
[Description of Bits]
•
PFUD
(bit 0)
The PFUD bit is used to update the period register and the duty register during operation. When updating the period
register and the duty register during operation, write “1” to PFUD after setting values for the period register and the duty
register. By writing “1” to PFUD, values set for the period register and the duty register are transferred to the period
buffer and the duty buffer simultaneously. When the transfer completes, PFUD is cleared automatically.
PFUD
Description
0
The period register and the duty register are not updated during operation. (initial
value)
1
The period register and the duty register are updated during operation.
Note
:
If you write “1” to PFUD (to update register value), do so after reading PFUD and confirm that the value is “0” (update is
completed).
•
PFDISL1, PFDISL0
(bit 3 to 2)
The PFDISL1 and PFDISL0 bits are used to select PWM output which generates an interrupt cause when the duty match
interrupt is selected by PFIS1 and PFIS0 of PWFCON0 register.
PFDISL1
PFDISL0
Description
0
0
Generate an interrupt at duty match of PWMF0 (initial value)
0
1
Generate an interrupt at duty match of PWMF1
1
0
Generate an interrupt at duty match of PWMF2
1
1
Setting prohibited
The setting of this bit is enabled only when the PFIS1, PFIS0 of PWFCON0 register = “01”, “1x” (x=don't care).
•
PF2FLG, PF1FLG, PF0FLG
(bits 6 to 4)
The PF2FLG, PF1FLG, and PF0FLG bits are used to read the output flags of PWMF2 to 0.
PFnFLG
Description
0
PWMFn output flag = “0” (initial value)
1
PWMFn output flag = “1”
(n=2 to 0) The PF0FLG is the same as the PFFLG of PWFCON1.
Содержание 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 ...