beautypg.com

high speed output mode, Preliminary, High speed output mode – Rainbow Electronics T89C51CC02 User Manual

Page 107

background image

Rev.A - May 17, 2001

107

Preliminary

T89C51CC02

16.5. High Speed Output Mode

In this mode the CEX output (on port 1) associated with the PCA module will toggle each time a match occurs
between the PCA counter and the module’s capture registers. To activate this mode the TOG, MAT, and ECOM
bits in the module’s CCAPMn SFR must be set.

Figure 108. PCA High speed Output Mode

CH

CL

CCAPnH

CCAPnL

ECOMn

CCAPMn, n = 0 to 1

0xDA to 0xDE

CAPNn MATn

TOGn PWMn ECCFn

CAPPn

16 bit comparator

Match

CF

CR

CCON

0xD8

CCF1

CCF0

PCA IT

Enable

CEXn

PCA counter/timer

“1”

“0”

Write to

CCAPnL

Reset

Write to

CCAPnH