Panasonic MN101C77C, F77G user manual VII 28 16-bit High Precision PWM Output

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 288
Image 288

Chapter 7 16-bit Timer

„Count Timing of High Precision PWM Output (When compare register 2 is x'0000'l) (Timer 7) Here is the count timing as the compare register 2 is set to x'0000' ;

Count clock

TM7EN flag

Compare

N

register 1

Compare

0000

register 2

Binary

0000 0001N-1 N 0000 0001

counter

TM7IO output H (PWM output)

L

Figure 7-7-2 Count Timing of High Precision PWM Output

(When compare register 2 is x'0000')

When the TM7EN flag is stopped (at "0"), the PWM output signal is "H".

„Count Timing of High Precision PWM Output (at compare register 2 = compare register 1) (Timer 7) Here is the count timing as the compare register 2 is set the same value to the compare register 1 ;

Count clock

TM7EN flag

Compare

N

register 1

Compare

N

register 2

Binary

0000 0001N-1 N 0000 0001

counter

TM7IO output (PWM output)

Figure 7-7-3 Count Timing of High Precision PWM Output

(at compare register 2=compare register 1)

For the high precision PWM output, set the TMBCR flag of the TM7MD2 register to "1" to select the TM7OC1 compare match as a clear source of the binary counter and as a setup ("H" output) source of the PWM output. Also, set the T7PWMSL flag to "1" to select the TM7OC2 compare match as a reset ("L" output) source of the PWM output.

VII - 28 16-bit High Precision PWM Output

Page 288
Image 288
Panasonic MN101C77C, F77G user manual VII 28 16-bit High Precision PWM Output