The specified duty is not output continuously in 1 cycle with this configuration.
The PWM output in question is configured to obtain a 14-bit resolution using 64 pulses.
The higher 14 bits of CR00 specify the total active time (sub-cycle).
This sub-cycle consists of 64 basic pulses. There are two types of basic pulses,
"n" basic A pulses and "m" basic B pulses,
and a total of 64 basic pulses is used. (A and B are explained below.)
](mi-pwm-2.gif)
If one sub-cycle includes n x A, then it includes m x B (= 64 - n).
m + n = 64
The number n is specified by the lower 6 bits of the 14 bits.
One basic pulse cycle (basic cycle A and basic cycle B)
is specified by the higher 8 bits (256 clocks) of CR00.
In this example, the basic cycle is 51.2μs.
Therefore, in the example you inquire about:
Sub-cycle = basic cycle (51.2μs) x 64 -> 3276.8μs
The waveform actually output is a waveform made up of a balanced mix of A and B.
However, the total included in the sub-cycle is the above-described number.
The difference between A (attribute) and B (basic) is as follows.
](mi-pwm-1.gif)
The basic pulse duty is specified by the higher 8 bits of CR00,
and the waveform specified by the higher 8 bits is basic B.
Basic A is a pulse that has a duty of one more clock than B.
In other words, it is a pulse one unit higher than the value specified by the higher 8 bits.
If the middle 6 bits of CR00 are 0, the sub-cycle consists entirely of basic B.
If the value of the middle 6 bits is 1, it consists of 1 basic A and 63 basic B;
if the value of the middle 6 bits is 63 (all 1), it consists of 63 basic A and 1 basic B.
The basic cycle (period of 256 clocks) is determined by the higher 8 bits of CR00,
but this yields an accuracy of only 8 bits.
By mixing the specified number of basic A indicated by the middle 6 bits,
14-bit PWM resolution is achieved.
(Supplement)
By splitting the pulse in this way,
the number of pulses in the entire (3276.8μs) period can be increased.
In other words, the PWM output waveform frequency element can be increased.
A low-pass filter is provided for this pin, but a higher frequency can shorten
the filter time constant.
This design allows the use of a part (capacitor) that is smaller to this extent.