English
Language : 

UPSD3422_06 Datasheet, PDF (184/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
Programmable counter array (PCA) with PWM
uPSD34xx
Table 99.
Bit 7
EINTF
TCMMODE0 - TCMMODE5 (6 registers, reset value 00h)
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
E_COMP CAP_PE CAP_NE MATCH TOGGLE
PWM[1:0]
Bit
Symbol
Function
7
EINTF
1 - Enable the interrupt flags (INTF) in the Status Register to generate an
interrupt.
6
E_COMP 1 - Enable the comparator when set
5
CAP_PE 1 - Enable Capture Mode, a positive edge on the CEXn pin.
4
CAP_NE 1 - Enable Capture Mode, a negative edge on the CEXn pin.
3
MATCH 1 - A match from the comparator sets the INTF bits in the Status Register.
2
TOGGLE 1 - A match on the comparator results in a toggling output on CEXn pin.
01 Enable PWM Mode (x8), fixed frequency. Enable the CEXn pin as a
PWM output.
1-0
PWM[1:0]
10 Enable PWM Mode (x8) with programmable frequency. Enable the
CEXn pin as a PWM output.
11 Enable PWM Mode (x10 or x16), fixed frequency. Enable the CEXn pin
as a PWM output.
Table 100. TCMMODE register configurations
EINTF E_COMP CAP_PE CAP_NE MATCH TOGGLE PWM1 PWM0 TCM FUNCTION
0
0
0
0
0
0
0
0
No operation (reset
value)
0
1
0
0
0
0
0
1
8-bit PWM, fixed
frequency
8-bit PWM,
0
1
0
0
0
0
1
0 programmable
frequency
10-bit or 16-bit
0
1
0
0
0
0
1
1 PMW, fixed
frequency(1)
X
1
0
0
1
1
0
0 16-bit toggle
X
1
0
0
1
0
0
0
16-bit Software
Timer
X
X
0
1
0
0
0
0
16-bit capture,
negative trigger
X
X
1
0
0
0
0
0
16-bit capture,
positive trigger
X
X
1
1
0
0
0
0
16-bit capture,
transition trigger
Note: 1 10-bit PWM mode requires the 10B_PWM Bit in the PCACON Register set to '1.'
184/293