English
Language : 

UPSD3422_06 Datasheet, PDF (177/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
uPSD34xx
Programmable counter array (PCA) with PWM
Table 94.
Bit 7
–
CCON2 register bit definition (SFR 0FBh, reset value 10h)
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
–
–
PCA0CE PCA0PS3 PCA0PS2 PCA0PS1 PCA0PS0
Bit
Symbol
R/W
Definition
PCA0 Clock Enable
4
PCA0CE
R/W 0 = PCA0CLK is disabled
1 = PCA0CLK is enabled (default)
PCA0 Prescaler
PCA0PS
3:0
[3:0]
R/W fPCA0CLK = fOSC / (2 ^ PCA0PS[3:0])
Divisor range: 1, 2, 4, 8, 16... 16384, 32768
Table 95.
Bit 7
–
CCON3 register bit definition (SFR 0FCh, reset value 10h)
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
–
–
PCA1CE PCA1PS3 PCA1PS2 PCA1PS1 PCA1PS0
Bit
Symbol
R/W
Definition
PCA1 Clock Enable
4
PCA1CE
R/W 0 = PCA1CLK is disabled
1 = PCA1CLK is enabled (default)
PCA1 Prescaler
PCA1PS
3:0
[3:0]
R/W fPCA1CLK = fOSC / (2 ^ PCA1PS[3:0])
Divisor range: 1, 2, 4, 8, 16... 16384, 32768
27.3
Operation of TCM modes
Each of the TCM in a PCA block supports four modes of operation. However, an exception is
when the TCM is configured in PWM Mode with programmable frequency. In this mode, all
TCM in a PCA block must be configured in the same mode or left to be not used.
27.4
Capture mode
The CAPCOM registers in the TCM are loaded with the counter values when an external pin
input changes state. The user can configure the counter value to be loaded by positive
edge, negative edge or any transition of the input signal. At loading, the TCM can generate
an interrupt if it is enabled.
27.5
Timer mode
The TCM modules can be configured as software timers by enable the comparator. The
user writes a value to the CAPCOM registers, which is then compared with the 16-bit
counter. If there is a match, an interrupt can be generated to CPU.
177/293