16.03.2015 Views

P89V51RB2/RC2/RD2 8-bit 80C51 5 V low power 16/32 ... - NetMedia

P89V51RB2/RC2/RD2 8-bit 80C51 5 V low power 16/32 ... - NetMedia

P89V51RB2/RC2/RD2 8-bit 80C51 5 V low power 16/32 ... - NetMedia

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NXP Semiconductors<br />

<strong>P89V51RB2</strong>/<strong>RC2</strong>/<strong>RD2</strong><br />

8-<strong>bit</strong> microcontrollers with <strong>80C51</strong> core<br />

CF CR - CCF4 CCF3 CCF2 CCF1 CCF0<br />

CCON<br />

(D8H)<br />

write to<br />

CCAPnL<br />

write to<br />

CCAPnH<br />

0 1<br />

reset<br />

enable<br />

CCAPnH<br />

CCAPnL<br />

<strong>16</strong>-BIT COMPARATOR<br />

match<br />

(to CCFn)<br />

PCA<br />

interrupt<br />

CH<br />

CL<br />

PCA timer/counter<br />

toggle<br />

CEXn<br />

- ECOMn<br />

CAPPn CAPNn MATn TOGn PWMn ECCFn<br />

0 0 1 0 0<br />

CCAPMn, n = 0 to 4<br />

(DAH to DEH)<br />

002aaa540<br />

Fig 25. PCA high-speed output mode<br />

6.9.4 PWM mode<br />

All of the PCA modules can be used as PWM outputs (Figure 26). Output frequency<br />

depends on the source for the PCA timer.<br />

CCAPnH<br />

CCAPnL<br />

0<br />

enable<br />

8-BIT COMPARATOR<br />

CL < CCAPnL<br />

CEXn<br />

CL ≥ CCAPnL<br />

CL<br />

PCA timer/counter<br />

1<br />

- ECOMn<br />

CAPPn CAPNn MATn TOGn PWMn ECCFn<br />

CCAPMn, n = 0 to 4<br />

(DAH to DEH)<br />

1 0 0 0 0 1 1<br />

002aaa541<br />

Fig 26. PCA PWM mode<br />

<strong>P89V51RB2</strong>_<strong>RC2</strong>_<strong>RD2</strong>_4<br />

All of the modules will have the same frequency of output because they all share one and<br />

only PCA timer. The duty cycle of each module is independently variable using the<br />

module’s capture register CCAPnL. When the value of the PCA CL SFR is less than the<br />

© NXP B.V. 2007. All rights reserved.<br />

Product data sheet Rev. 04 — 1 May 2007 53 of 80

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!