SN8P2604
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 88
Version 1.1
8.4.4 PWM1 DUTY CHANGING NOTICE
In PWM mode, the system will compare TC1C and TC1R all the time. When TC1C<TC1R, the PWM will output logic
“High”, when TC1C
≧
TC1R, the PWM will output logic “Low”. If TC1C is changed in certain period, the PWM duty will
change immediately. If TC1R is fixed all the time, the PWM waveform is also the same.
TC1C overflow
and TC1IRQ set
TC1C = TC1R
0xFF
TC1C Value
0x00
PWM1 Output
1
2
3
4
5
6
7
Period
Above diagram is shown the waveform with fixed TC1R. In every TC1C overflow PWM output “High, when TC1C
≧
TC1R PWM output ”Low”.
Note: Setting PWM duty in program processing must be at the new cycle start.