SN8P275X Series
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 107
Version 0.7
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 overflow
and TC0IRQ set
TC0C = TC0R
0xFF
TC0C Value
0x00
PWM0 Output
1
2
3
4
5
6
7
Period
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.
Note: TC0C and TC0R can be 0xFF in pure PWM output. If PWM function is operating with TC0 interrupt,
TC0C and TC0R can’t be set as 0xFF and the available range is 0x00~0xFE.