English
Language : 

P89V51RB2_09 Datasheet, PDF (50/80 Pages) NXP Semiconductors – 8-bit 80C51 5 V low power 16/32/64 kB flash microcontroller with 1 kB RAM
NXP Semiconductors
P89V51RB2/RC2/RD2
8-bit microcontrollers with 80C51 core
Table 41.
Bit
2
1
0
CCAPMn - PCA modules compare/capture register (address CCAPM0 0DAH,
CCAPM1 0DBH, CCAPM2 0DCH, CCAPM3 0DDH, CCAPM4 0DEH) bit description
Symbol
Description
TOGn
Toggle. When TOGn = 1, a match of the PCA counter with this
module’s compare/capture register causes the CEXn pin to toggle.
PWMn
Pulse Width Modulation mode. PWMn = 1 enables the CEXn pin to be
used as a pulse width modulated output.
ECCFn
Enable CCF Interrupt. Enables compare/capture flag CCFn in the
CCON register to generate an interrupt.
Table 42. PCA module modes (CCAPMn register)
ECOMn CAPPn CAPNn MATn TOGn PWMn
0
0
0
0
0
0
x
1
0
0
0
0
x
0
1
0
0
0
x
1
1
0
0
0
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
0
0
1
1
0
0
1
x
0
ECCFn
0
x
x
x
x
x
0
x
Module function
no operation
16-bit capture by a positive-edge trigger on
CEXn
16-bit capture by a negative-edge trigger on
CEXn
16-bit capture by any transition on CEXn
16-bit software timer
16-bit high-speed output
8-bit PWM
Watchdog timer
6.9.1 PCA capture mode
To use one of the PCA modules in the capture mode (Figure 23) either one or both of the
CCAPM bits CAPN and CAPP for that module must be set. The external CEX input for the
module (on port 1) is sampled for a transition. When a valid transition occurs the PCA
hardware loads the value of the PCA counter registers (CH and CL) into the module’s
capture registers (CCAPnL and CCAPnH).
P89V51RB2_RC2_RD2_5
Product data sheet
Rev. 05 — 12 November 2009
© NXP B.V. 2009. All rights reserved.
50 of 80