
ML610Q421/ML610Q422/ML610421 User’s Manual
Chapter 11 PWM
11 – 1
11. PWM
11.1 Overview
This LSI includes one channel of 16-bit PWM (Pulse Width Modulation).
The PWM output (PWM0) function is assigned to P43(Port 4) and P34(Port 3) as the tertiary function. For the
functions of port 4 and port3, see Chapter 21, “Port 4” and Chapter 20, “Port 3”.
11.1.1 Features
•
The PWM signals with the periods of approximately 488 ns (HTBCLK=4.096MHz) to 2s (@LSCLK=32.768kHz)
can be generated and output outside of the LSI.
•
The output logic of the PWM signal can be switched to the positive or negative logic.
•
At the coincidence of PWM signal period, duties, and period & duty, a PWM interrupt (PW0INT) occurs.
•
For the PWM clock, a low-speed clock (LSCLK), a high-speed time base clock (HTBCLK), and an external clock are
available.
11.1.2 Configuration
Figure 11 - 1 shows the configuration of the PWM circuit.
PW0PL:
PWM0 period register L
PW0PH:
PWM0 period register H
PW0PBUF:
PWM0 period buffer
PW0DL:
PWM0 duty register L
PW0DH:
PWM0 duty register H
PW0DBUF:
PWM0 duty buffer
PW0CL:
PWM0 counter register L
PW0CH:
PWM0 counter register H
PW0CON0:
PWM0 control register 0
PW0CON1:
PWM0 control register 1
Figure 11-1 Configuration of PWM Circuit
PW0CH/L
16
Data bus
PW0INT
LSCLK
PW0CON0
PW0CON1
R
Period
match
Comparator
HTBCLK
External clock
P44/T02P0CK
Write PW0CL
P0CK
Write PW0CH
Comparator
Output control
circuit
P43/PWM0
or
P34/PWM0
P0NEG
Duty
match
P0FLG
16
16
8
8
8
8
8
8
PW0PBUF
PW0DBUF
PW0PH/L
PW0DH/L
PW0CH
latch
Read PW0CL
Содержание ML610421
Страница 1: ...ML610Q421 ML610Q422 ML610421 User s Manual Issue Date Feb 9 2015 FEUL610Q421 06...
Страница 15: ...Chapter 1 Overview...
Страница 44: ...Chapter 2 CPU and Memory Space...
Страница 49: ...Chapter 3 Reset Function...
Страница 53: ...Chapter 4 MCU Control Function...
Страница 69: ...Chapter 5 Interrupts INTs...
Страница 93: ...Chapter 6 Clock Generation Circuit...
Страница 110: ...Chapter 7 Time Base Counter...
Страница 121: ...Chapter 8 Capture...
Страница 129: ...Chapter 9 1 kHz Timer 1kHzTM...
Страница 135: ...Chapter 10 Timers...
Страница 160: ...Chapter 11 PWM...
Страница 172: ...Chapter 12 Watchdog Timer...
Страница 180: ...Chapter 13 Synchronous Serial Port...
Страница 195: ...Chapter 14 UART...
Страница 216: ...Chapter 15 I2 C Bus Interface...
Страница 231: ...Chapter 16 NMI Pin...
Страница 237: ...Chapter 17 Port 0...
Страница 246: ...Chapter 18 Port 1...
Страница 252: ...Chapter 19 Port 2...
Страница 259: ...Chapter 20 Port 3...
Страница 270: ...Chapter 21 Port 4...
Страница 282: ...Chapter 22 Port A...
Страница 290: ...Chapter 23 Melody Driver...
Страница 304: ...Chapter 24 RC Oscillation Type A D Converter...
Страница 327: ...Chapter 25 Successive Approximation Type A D Converter...
Страница 338: ...Chapter 26 LCD Drivers...
Страница 371: ...Chapter 27 Battery Level Detector...
Страница 378: ...Chapter 28 Power Supply Circuit...
Страница 381: ...Chapter 29 On Chip Debug Function...
Страница 384: ...Appendixes...
Страница 435: ...Revision History...