ML610Q111/ML610Q112 User’s Manual
Chapter 10 PWM
FEUL610Q111
10-17
10.2.14 PWMD Control Register 2 (PWDCON2)
Address: 0F928H
Access: R/W
Access size: 8/16 bits
Initial value: 00H
7
6
5
4
3
2
1
0
PWDCON2
PDOST
PDTRM1
PDTRM0
PDEXCL
PDST1
PDST0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
PWDCON2 is a special function register (SFR) to control PWMD.
Rewrite PWDCON2 while the PWMD is stopped (PDSTAT, PDTGEN and PDRUN of the PWDCON1 is “0”).
[Description of Bits]
•
PDST1, PDST0
(bits 1, 0)
The PDST1 and PDST0 bits are used to select the start/stop mode of the PWMD counter.
PDST1
PDST0
Description
Counter operation using the external input
0
0
Do not operate (initial value)
0
1
Start counting
1
0
Stop counting
1
1
Start/stop counting
•
PDEXCL
(bit 2)
The PDEXCL bit is used to select whether or not to clear the PWMD counter when stopped by the external input (PDST1
is set to ”1”). Set PDEXCL to "1" to clear the counter when stopped by the external input.
PDEXCL
Description
0
Does not clear the counter when it is stopped by the external trigger. (initial value)
1
Clears the counter when it is stopped by the external trigger.
•
PDTRM1, PDTRM0
(bits 5, 4)
The PDTRM1 and PDTRM0 bits are used to select the count start/stop mode of PWMD.
This is valid only when the external input start and stop are selected.
PDTRM1
PDTRM0
Description
Rising edge
Falling edge
0
0
Start/stop (initial value)
—
0
1
Stop
Start
1
0
Start
Stop
1
1
—
Start/stop
Note
:
When the timer interrupt (TM9INT/TMBINT/TMFINT) is selected for the external input with the PWDCON3 register, be
sure to select the rising edge start and the rising edge stop (set PDTRM1 to ”0” and PDTRM0 ”0”). Do not use other
settings (The operation cannot be guaranteed because they may cause the count start/stop at timings other than
interrupts).
•
PDOST
(bit 7)
The PDOST bit is used to select continuous mode/one shot mode of the PWMD.
PDOST
Description
0
Continuous mode (initial value)
1
One shot mode
Содержание 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 ...