
ML66517 Family User’s Manual
Contents
Contents – 6
10.3.2.3 Mode 1 Setting Example 1...........................................................................................................10-17
10.3.2.4 Mode 1 Setting Example 2...........................................................................................................10-18
10.3.2.5 Mode 2 Setting Example..............................................................................................................10-19
10.3.2.6 Mode 3 Setting Example..............................................................................................................10-20
10.3.2.7 Settings for Compare Out Module of Capture/Compare Timer ...................................................10-21
10.4 3-Phase PWM Operation.........................................................................................................................10-22
10.4.1 Operation of Each Section .................................................................................................................10-22
10.4.1.1 3-Phase PWM Counter (PW3C) Operation .................................................................................10-22
(1)
Up-counter mode .........................................................................................................................10-22
(2)
Up/down-counter mode ...............................................................................................................10-23
10.4.1.2 Timing of PWM Output Change..................................................................................................10-25
10.4.1.3 Dead Time Timer (DTMn: n = 1, 2, 3) Operation .......................................................................10-27
10.4.1.4 Timing of Output Pattern Switching ............................................................................................10-30
(1)
Output pattern switching by compare-match signal from compare out module of
capture/compare timer .................................................................................................................10-30
(2)
Output pattern switching by software ..........................................................................................10-32
10.4.1.5 Loading of Duty Setting Buffer Registers (PW3nBFR: n = U, V, W)
into Duty Setting Registers (PW3nR: n = U, V, W) by Software ................................................10-33
10.4.1.6 Changing Pin Output by
INACT Pin Input.................................................................................10-34
10.4.1.7 Relation between Duty Setting Registers (PW3nR: n = U, V, W),
3-Phase PWM Cycle Setting Register (PW3CYR) and Pin Output.............................................10-35
10.4.2 Operation Examples in Each Mode ...................................................................................................10-38
10.4.2.1 Mode 1 Operation Example 1 ......................................................................................................10-38
10.4.2.2 Mode 1 Operation Example 2 ......................................................................................................10-40
10.4.2.3 Mode 2 Operation Example .........................................................................................................10-41
10.4.2.4 Mode 3 Operation Example .........................................................................................................10-43
10.5
3-Phase PWM Interrupts ........................................................................................................................10-45
Chapter 11 PWM Function
11.1 Overview ...................................................................................................................................................11-1
11.2 PWM Configuration..................................................................................................................................11-1
11.3 PWM Register ...........................................................................................................................................11-2
11.3.1 Description of PWM Registers............................................................................................................11-3
(1)
PWM counters (PWC0, PWC1).....................................................................................................11-3
(2)
PWM cycle registers (PWCY0, PWCY1) .....................................................................................11-3
(3)
PWM registers (PWR0 to PWR3)..................................................................................................11-4
(4)
PWM control register 0 (PWCON0)..............................................................................................11-4
(5)
PWM control register 1 (PWCON1)..............................................................................................11-6
11.3.2 Example of PWM-related Register Settings........................................................................................11-7
8-bit PWM settings ........................................................................................................................11-7
16-bit PWM settings ......................................................................................................................11-8
11.4 PWM Operation ........................................................................................................................................11-9
11.4.1 PWM Operation During 8-Bit Mode...................................................................................................11-9
11.4.2 PWM Operation During 16-Bit Mode ...............................................................................................11-10
11.4.3 PWM Operation During High-Speed Mode ......................................................................................11-12
11.5 PWM Interrupts.......................................................................................................................................11-14
Chapter 12 Serial Port Functions
12.1 Overview ...................................................................................................................................................12-1
12.2 Serial Port Configuration ..........................................................................................................................12-1
12.3 Serial Port Registers ..................................................................................................................................12-2
12.4
SIO1 .........................................................................................................................................................12-3
12.4.1 SIO1 Configuration .............................................................................................................................12-3
12.4.2 Description of SIO1 Registers .............................................................................................................12-4
(1)
SIO1 transmit control register (ST1CON) .....................................................................................12-4