English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (154/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
Programmable counter array (PCA) with PWM
UPSD33xx
Table 98. PCA0 and PCA1 registers
SFR address
PCA0 PCA1
Register name
RW
PCA0
PCA1
Register function
A2
BA
PCACL0
PCACL1 RW The low 8 bits of PCA 16-bit counter.
A3
BB
PCACH0 PCACH1 RW The high 8 bits of PCA 16-bit counter.
Control register
A4
BC
PCACON0 PCACON1 RW – Enable PCA, Timer Overflow flag ,
PCA Idle mode, and Select clock
source.
Status register, Interrupt Status flags
A5
A5
PCASTA
N/A
RW
– Common for both PCA Block 0 and 1.
A9,
BD, TCMMODE0 TCMMODE3
TCM mode
AA,
BE,
TCMMODE1
TCMMODE4
RW
– Capture, Compare, and Toggle Enable
Interrupts
AB
BF TCMMODE2 TCMMODE5
– PWM Mode Select.
) AC
t(s AD
C1
C2
CAPCOML0
CAPCOMH0
CAPCOML3
CAPCOMH3
RW
Capture/Compare registers of
TCM0/TCM3
uc AF
d B1
C3
C4
CAPCOML1
CAPCOMH1
CAPCOML4
CAPCOMH4
RW
Capture/Compare registers of
TCM1/TCM4
ro B2
P B3
C5
C6
CAPCOML2
CAPCOMH2
CAPCOML5
CAPCOMH5
RW
Capture/Compare registers of
TCM2/TCM5
te The 8-bit register to program the PWM
le B4
C7
PWMF0
PWMF1 RW frequency. This register is used for
o programmable, 8-bit PWM mode only.
Obs FB
FC
CCON2
CCON3
RW
Specify the pre-scaler value of PCA0
or PCA1 clock input
Obsolete Product(s) - 26.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.
Table 99. CCON2 register (SFR 0FBh, Reset Value 10h)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
–
–
–
PCA0CE PCA0PS3 PCA0PS2 PCA0PS1 PCA0PS0
154/272
Doc ID 9685 Rev 7