CMT2380F17
Rev0.1 | 173/347
www.cmostek.com
17 Programmable Counter Array (PCA0)
The CMT2380F17 is equipped with a Programmable Counter Array (PCA0), which provides more timing
capabilities with less CPU intervention than the standard timer/counters. Its advantages include reduced
software overhead and improved accuracy.
17.1
PCA Overview
The PCA consists of a dedicated timer/counter which serves as the time base for an array of Six
capture/compare/PWM modules and Two compare/PWM modules. Figure 17
–1 shows a block diagram of the
PCA. Notice that the PCA timer and modules are all 16-bits. If an external event is associated with a module,
that function is shared with the corresponding Port pin. If the module is not using the port pin, the pin can still
be used for standard I/O.
Module 0~5 can be programmed in any one of the following modes:
:
•
Rising and/or Falling Edge Capture
•
Software Timer (Compare)
•
High Speed Output (Compare Output)
•
Pulse Width Modulator Output (PWM)
•
Compare Output on PWM Match case (COPM)
Module 6~7 also support the upper modes except Rising and/or Falling Edge capture. All of these modes
will be discussed later in detail. However, let's first look at how to set up the PCA timer and modules.
Figure 17-1. PCA Block Diagram
17.2
PCA Timer/Counter
The timer/counter for the PCA is a auto-reload 16-bit timer consisting of registers CH and CL (the high
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...