English
Language : 

UPSD3422_06 Datasheet, PDF (176/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
Programmable counter array (PCA) with PWM
uPSD34xx
Table 93. PCA0 and PCA1 Registers
SFR Address
Register Name
PCA0
PCA1
PCA0
PCA1
A2
BA
PCACL0
PCACL1
A3
BB
PCACH0
PCACH1
A4
BC
PCACON0
PCACON1
A5
A5
PCASTA
N/A
A9,
BD,
TCMMODE0 TCMMODE3
AA,
BE,
TCMMODE1 TCMMODE4
AB
BF
TCMMODE2 TCMMODE5
AC
C1
CAPCOML0 CAPCOML3
AD
C2
CAPCOMH0 CAPCOMH3
AF
C3
CAPCOML1 CAPCOML4
B1
C4
CAPCOMH1 CAPCOMH4
B2
C5
CAPCOML2 CAPCOML5
B3
C6
CAPCOMH2 CAPCOMH5
B4
C7
PWMF0
PWMF1
FB
FC
CCON2
CCON3
RW
Register Function
RW
The low 8 bits of PCA 16-bit
counter.
RW
The high 8 bits of PCA 16-bit
counter.
Control Register
RW – Enable PCA, Timer Overflow
flag , PCA Idle Mode, and
Select clock source.
Status Register, Interrupt Status
flags
RW
– Common for both PCA Block 0
and 1.
TCM Mode
RW
– Capture, Compare, and Toggle
Enable Interrupts
– PWM Mode Select.
RW
Capture/Compare registers of
TCM0
RW
Capture/Compare registers of
TCM1
RW
Capture/Compare registers of
TCM2
The 8-bit register to program the
RW
PWM frequency. This register is
used for programmable, 8-bit
PWM Mode only.
RW
Specify the pre-scaler value of
PCA0 or PCA1 clock input
27.2
PCA Clock Selection
● The clock input to the 16-bit up counter in the PCA block is user-programmable. The
three clock sources are:
● PCA Prescaler Clock (PCA0CLK, PCA1CLK)
● Timer 0 Overflow
● External Clock, Pin P4.3 or P4.7
The clock source is selected in the configuration register PCACON. The Prescaler output
clock PCACLK is the fOSC divided by the divisor which is specified in the CCON2 or CCON3
Register. When External Clock is selected, the maximum clock frequency should not exceed
fOSC/4.
176/293