ML610Q111/ML610Q112 User’s Manual
Chapter 10 PWM
FEUL610Q111
10-30
10.2.27 PWMF Counter Registers (PWFCH, PWFCL)
Address: 0F970H
Access: R/W
Access size: 8/16 bits
Initial value: 00H
7
6
5
4
3
2
1
0
PWFCL
PFC7
PFC6
PFC5
PFC4
PFC3
PFC2
PFC1
PFC0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
Address: 0F971H
Access: R/W
Access size: 8 bits
Initial value: 00H
7
6
5
4
3
2
1
0
PWFCH
PFC15
PFC14
PFC13
PFC12
PFC11
PFC10
PFC9
PFC8
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
PWFCL and PWFCH are special function registers (SFRs) that function as 16-bit binary counters.
When data is written to either PWFCL or PWFCH, PWFCL and PWFCH is set to “0000H”. The data that is written is
meaningless. Write data while the PWM is stopped(PFSTAT, PFTGEN and PFRUN of PWFCON1 are “0”).
When data is read from PWFCL, the value of PWFCH is latched. When reading PWFCH and PWFCL, use a word type
instruction or pre-read PWFCL.
The contents of PWFCH and PWFCL during PWMF0 to 2 operation cannot be read depending on the combination of the
PWM clock and system clock. Table 10-4 shows PWFCH and PWFCL read enable/disable for each combination of the
PWM clock and system clock.
Table 10-4 PWFCH and PWFCL Read Enable/Disable during PWMF Operation
PWM clock
PFCK
System clock
SYSCLK
PWFCH and PWFCL read enable/disable
LSCLK
LSCLK
Read enabled
LSCLK
HSCLK
Read enabled. However, to prevent the reading of undefined
data during counting, read consecutively PWFCH or PWFCL
twice until the last data matched the previous data.
HTBCLK
LSCLK
Read disabled
HTBCLK
HSCLK
Read enabled
PLLCLK
(16.384MHz)
LSCLK
Read disabled
HSCLK
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 ...