ML610Q111/ML610Q112 User’s Manual
Chapter 10 PWM
FEUL610Q111
10-23
10.2.20 PWME Control Register 1 (PWECON1)
Address: 0F937H
Access: R/W
Access size: 8 bits
Initial value: 00H
7
6
5
4
3
2
1
0
PWECON1
PESTAT
PEFLG
PESDST
PETGEN
PERUN
R/W
R
R
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
PWECON1 is a special function register (SFR) to control PWME.
[Description of Bits]
•
PERUN
(bit 0)
The PERUN bit is used to control count stop/start of PWME.
PERUN
Description
0
Stops counting. (initial value)
1
Starts counting.
•
PETGEN
(bit 1)
The PETGEN bit is used to control count stop/start and emergency stop by the external input of PWME.
An interrupt occurs when the count stops by the external input.
PETGEN
Description
0
Disables the count stop/start and the emergency stop by the external input. (initial
value)
1
Enables the count stop/start and the emergency stop by the external input.
•
PESDST
(bit 5)
The PESDST bit indicates that an emergency stop interrupt has occurred.
By writing “1” to the PESDST, the PESDST becomes “0”.
PESDST
Description
0
An emergency stop interrupt has not occurred. (initial value)
1
An emergency stop interrupt has occurred.
•
PEFLG
(bit 6)
The PEFLG bit is used to read the output flag of PWME.
PEFLG
Description
0
PWME output flag = “0” (initial value)
1
PWME output flag = “1”
•
PESTAT
(bit 7)
The PESTAT bit indicates “counting stopped” or “counting in progress” of PWME.
PESTAT
Description
0
Counting stopped. (initial value)
1
Counting in progress.
Note
:
When the PWM count is stopped by the external trigger and PERUN bit shows “0”, make sure to start the next operation
after PESTAT bit shows “0” as the PWM count is stopped.
For confirmation of the interrupt, see 10.3.4 “Interrupt of PWM”.
Содержание 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 ...