Download SN8P1919

Transcript
SN8P1919
8-Bit Micro-Controller with Charge pump Regulator, PGIA, 16-bit ADC
8.5.4 PWM0 DUTY CHANGING NOTICE
In PWM mode, the system will compare TC0C and TC0R all the time. When TC0C<TC0R, the PWM will output logic
“High”, when TC0C≧TC0R, the PWM will output logic “Low”. If TC0C is changed in certain period, the PWM duty will
change immediately. If TC0R is fixed all the time, the PWM waveform is also the same.
TC0C = TC0R
TC0C overflow
and TC0IRQ set
0xFF
TC0C Value
0x00
PWM0 Output
Period
1
2
3
4
5
6
7
Above diagram is shown the waveform with fixed TC0R. In every TC0C overflow PWM output “High, when
TC0C≧TC0R PWM output ”Low”.
’
Note: Setting PWM duty in program processing must be at the new cycle start.
SONiX TECHNOLOGY CO., LTD
Page 102
Preliminary Version 0.4