English
Language : 

UPSD3422_06 Datasheet, PDF (182/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
Programmable counter array (PCA) with PWM
uPSD34xx
Table 96.
Bit 7
EN-ALL
PCA0 control register PCACON0 (SFR 0A4h, reset value 00h)
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
EN_PCA EOVFI PCAIDLE
–
–
CLK_SEL[1:0]
Bit
Symbol
Function
0 = No impact on TCM modules
7
EN-ALL 1 = Enable both PCA counters simultaneously (override the EN_PCA Bits)
This bit is to start the two 16-bit counters in the PCA. For customers who
want 5 PWM, for example, this bit can start all of the PWM outputs.
0 = PCA counter is disabled
6
EN_PCA 1 = PCA counter is enabled
EN_PCA Counter Run Control Bit. Set with software to turn the PCA
counter on. Must be cleared with software to turn the PCA counter off.
5
EOVFI 1 = Enable Counter Overflow Interrupt if overflow flag (OVF) is set
0 = PCA operates when CPU is in Idle Mode
4
PCAIDLE
1 = PCA stops running when CPU is in Idle Mode
3
–
Reserved
0 = Select 16-bit PWM
2
10B_PWM
1 = Select 10-bit PWM
00 Select Prescaler clock as Counter clock
CLK_SEL
1-0
01 Select Timer 0 Overflow
[1:0]
10 Select External Clock pin (P4.3 for PCA0) (MAX clock rate = fOSC/4)
Table 97. PCA1 control register PCACON1 (SFR 0BCh, reset value 00h)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
–
EN_PCA EOVFI PCAIDLE
–
–
CLK_SEL[1:0]
Bit
Symbol
Function
0 = PCA counter is disabled
6
EN_PCA 1 = PCA counter is enabled
EN_PCA Counter Run Control Bit. Set with software to turn the PCA
counter on. Must be cleared with software to turn the PCA counter off.
5
EOVFI 1 = Enable Counter Overflow Interrupt if overflow flag (OVF) is set
0 = PCA operates when CPU is in Idle Mode
4
PCAIDLE
1 = PCA stops running when CPU is in Idle Mode
3
–
Reserved
0 = Select 16-bit PWM
2
10B_PWM
1 = Select 10-bit PWM
00 Select Prescaler clock as Counter clock
CLK_SEL
1-0
01 Select Timer 0 Overflow
[1:0]
10 Select External Clock pin (P4.7 for PCA1) (MAX clock rate = fOSC/4)
182/293