P89LV51RD2BA PHILIPS [NXP Semiconductors], P89LV51RD2BA Datasheet - Page 53

no-image

P89LV51RD2BA

Manufacturer Part Number
P89LV51RD2BA
Description
8-bit 80C51 3 V low power 64 kB Flash microcontroller with 1 kB RAM
Manufacturer
PHILIPS [NXP Semiconductors]
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89LV51RD2BA
Manufacturer:
NXP
Quantity:
10
Part Number:
P89LV51RD2BA,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
P89LV51RD2BA.
Manufacturer:
PHI
Quantity:
1 300
Philips Semiconductors
9397 750 14342
Product data
Fig 26. PCA PWM mode.
-
ECOMn
7.8.4 Pulse width modulator mode
7.8.5 PCA Watchdog timer
1
enable
CAPPn
All of the PCA modules can be used as PWM outputs
depends on the source for the PCA timer.
All of the modules will have the same frequency of output because they all share one
and only PCA timer. The duty cycle of each module is independently variable using
the module’s capture register CCAPnL.When the value of the PCA CL SFR is less
than the value in the module’s CCAPnL SFR the output will be low, when it is equal to
or greater than the output will be high. When CL overflows from FF to 00, CCAPnL is
reloaded with the value in CCAPnH. this allows updating the PWM without glitches.
The PWM and ECOM bits in the module’s CCAPMn register must be set to enable
the PWM mode.
An on-board Watchdog timer is available with the PCA to improve the reliability of the
system without increasing chip count. Watchdog timers are useful for systems that
are susceptible to noise, power glitches, or electrostatic discharge. Module 4 is the
only PCA module that can be programmed as a Watchdog. However, this module can
still be used for other modes if the Watchdog is not needed.
diagram of how the Watchdog works. The user pre-loads a 16-bit value in the
compare registers. Just like the other compare modes, this 16-bit value is compared
to the PCA timer value. If a match is allowed to occur, an internal reset will be
generated. This will not cause the RST pin to be driven high.
user’s software then must periodically change (CCAP4H,CCAP4L) to keep a match
from occurring with the PCA timer (CH,CL). This code is given in the WATCHDOG
routine shown above.
In order to hold off the reset, the user has three options:
0
CAPNn
0
8-BIT COMPARATOR
PCA timer/counter
CCAPnH
CCAPnL
MATn
Rev. 04 — 02 December 2004
CL
0
TOGn
0
PWMn
CL CCAPnL
CL CCAPnL
1
P89LV51RB2/RC2/RD2
ECCFn
1
0
1
8-bit microcontrollers with 80C51 core
CCAPMn, n = 0 to 4
(DAH to DEH)
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
(Figure
Figure 26
26). Output frequency
CEXn
002aaa541
shows a
53 of 77

Related parts for P89LV51RD2BA