C8051F410/1/2/3
1.13. Programmable Counter Array
The Programmable Counter Array (PCA0) provides enhanced timer functionality while requiring less CPU
intervention than the standard 8051 counter/timers. The PCA consists of a dedicated 16-bit counter/timer
and six 16-bit capture/compare modules. The counter/timer is driven by a programmable timebase that
can select between seven sources: system clock, system clock divided by four, system clock divided by
twelve, the external oscillator clock source divided by 8, real-time clock source divided by 8, Timer 0 over-
flow, or an external clock signal on the External Clock Input (ECI) pin.
Each capture/compare module may be configured to operate independently in one of six modes: Edge-
Triggered Capture, Software Timer, High-Speed Output, Frequency Output, 8-Bit PWM, or 16-Bit PWM.
Additionally, PCA Module 5 may be used as a watchdog timer (WDT), and is enabled in this mode follow-
ing a system reset. The PCA Capture/Compare Module I/O and the External Clock Input may be routed to
Port I/O using the digital crossbar.
SYSCLK/12
SYSCLK/4
Timer 0 Overflow
ECI
SYSCLK
External Clock/8
smaRTClock/8
PCA
CLOCK
MUX
16-Bit Counter/Timer
Capture/Compare
Module 0
Capture/Compare
Module 1
Capture/Compare
Module 2
Capture/Compare
Module 3
Capture/Compare
Module 4
Capture/Compare
Module 5
CEX0
CEX1
CEX2
CEX3
CEX4
CEX5
ECI
Crossbar
Port I/O
Figure 1.12. PCA Block Diagram
34
Rev. 1.0