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.
Summary of Contents for ML610Q111
Page 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Page 14: ...Chapter 1 Overview ...
Page 26: ...Chapter 2 CPU and Memory Space ...
Page 34: ...Chapter 3 Reset Function ...
Page 38: ...Chapter 4 MCU Control Function ...
Page 53: ...Chapter 5 Interrupts INTs ...
Page 81: ...Chapter 6 Clock Generation Circuit ...
Page 95: ...Chapter 7 Time Base Counter ...
Page 103: ...Chapter 8 Timers ...
Page 145: ...Chapter 9 Watchdog Timer ...
Page 153: ...Chapter 10 PWM ...
Page 199: ...Chapter 11 Synchronous Serial Port ...
Page 212: ...Chapter 12 UART ...
Page 240: ...Chapter 13 I2 C Bus Interface Master ...
Page 254: ...Chapter 14 I2 C Bus Interface Slave ...
Page 269: ...Chapter 15 Port A ...
Page 279: ...Chapter 16 Port B ...
Page 291: ...Chapter 17 Port C ...
Page 303: ...Chapter 18 Port D ...
Page 312: ...Chapter 19 Port AB Interrupts ...
Page 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Page 335: ...Chapter 21 Voltage Level Supervisor ...
Page 342: ...Chapter 22 Analog Comparator ...
Page 353: ...Chapter 23 Data Flash Memory ...
Page 373: ...Chapter 24 On chip Debug ...
Page 375: ...Appendixes ...
Page 393: ...Appendix E ...
Page 398: ...Revision History ...