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.
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
Figure 17-1. PCA Block Diagram
Rev0.1 | 173/347
CMT2380F17
www.cmostek.com
Need help?
Do you have a question about the CMT2380F17 and is the answer not in the manual?
Questions and answers