ML610Q111/ML610Q112 User’s Manual
Chapter 10 PWM
FEUL610Q111
10-24
10.2.21 PWME Control Register 2 (PWECON2)
Address: 0F938H
Access: R/W
Access size: 8/16 bits
Initial value: 00H
7
6
5
4
3
2
1
0
PWECON2
PEOST
PETRM1
PETRM0
PEEXCL
PEST1
PEST0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
PWECON2 is a special function register (SFR) to control PWME.
Rewrite PWECON2 while the PWME is stopped (PESTAT, PETGEN and PERUN of the PWECON1 is “0”).
[Description of Bits]
•
PEST1, PEST0
(bits 1, 0)
The PEST1 and PEST0 bits are used to select the start/stop mode of the PWME counter.
PEST1
PEST0
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
•
PEEXCL
(bit 2)
The PEEXCL bit is used to select whether or not to clear the PWME counter when stopped by the external input (PEST1
is set to ”1”). Set PEEXCL to "1" to clear the counter when stopped by the external input.
PEEXCL
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.
•
PETRM1, PETRM0
(bits 5, 4)
The PETRM1 and PETRM0 bits are used to select the count start/stop mode of PWME.
This is valid only when the external input start and stop are selected.
PETRM1
PETRM0
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 PWECON3 register, be
sure to select the rising edge start and the rising edge stop (set PETRM1 to ”0” and PETRM0 ”0”). Do not use other
settings (The operation cannot be guaranteed because they may cause the count start/stop at timings other than
interrupts).
•
PEOST
(bit 7)
The PEOST bit is used to select continuous mode/one shot mode of the PWME.
PEOST
Description
0
Continuous mode (initial value)
1
One shot mode
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 ...