NO:
W90P710 Programming Guide
VERSION:
2.0
PAGE:
217
The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed, distributed or reproduced without permission
from Winbond.
Table No.: 2005-W90P710-11-A
us
Mhz
025
.
0
1
)
1
1
(
)
80
(
1
period
min
=
÷
+
÷
=
The maximum and minimum interval between two interrupts are acdcroding to the
period
max
,
period
min
and PWM Counter Register(
CNRx
) length. The maximum interval between two interrupts is
(65535)*(51.2us) since the length of CNR is 16bit. Please notice that the above calculation is based
on the PCLK=80MHz. Therefore, all of the values need to be recalculated when the PCLK is not
equal to 80Mhz.
19.4.2
Basic PWM timer operation and double buffering reload automatically
W90P710 PWM Timers have a double buffering function, enabling the reload value changed for
next timer operation without stopping current timer operation. Although new timer value is set, current
timer operation still operate successfully.
The counter value can be written into
CNR0
,
CNR1
,
CNR2
,
CNR3
and current counter value can
be read from
PDR0
,
PDR1
,
PDR2
,
PDR3
.
The auto-reload operation copies from
CNR0
,
CNR1
,
CNR2
,
CNR3
to down-counter when down-
counter reaches zero. If
CNR0~3
are set as zero, counter will be halt when counter count to zero. If
auto-reload bit is set as zero, counter will be stopped immediately.