ST7FL15F1MAE STMICROELECTRONICS [STMicroelectronics], ST7FL15F1MAE Datasheet - Page 58

no-image

ST7FL15F1MAE

Manufacturer Part Number
ST7FL15F1MAE
Description
8-bit MCU for automotive with single voltage Flash/ROM memory, data EEPROM, ADC, 5 timers, SPI
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
ST7L15, ST7L19
DUAL 12-BIT AUTORELOAD TIMER 4 (cont’d)
11.2.3.4 Output Compare Mode
To use this function, load a 12-bit value in the
Preload DCRxH and DCRxL registers.
When the 12-bit upcounter CNTR1 reaches the
value stored in the Active DCRxH and DCRxL reg-
isters, the CMPFx bit in the PWMxCSR register is
set and an interrupt request is generated if the
CMPIE bit is set.
In Single Timer mode the output compare function
is performed only on CNTR1. The difference be-
tween both the modes is that in Single Timer
mode, CNTR1 can be compared with any of the
four DCR registers, and in Dual Timer mode,
CNTR1 is compared with DCR0 or DCR1 and
CNTR2 is compared with DCR2 or DCR3. In ROM
Figure 39. Block Diagram of Output Compare Mode (Single Timer)
58/138
1
(ATCSR2)
(ATCSR)
TRAN1
OVF
DCRx
PRELOAD DUTY CYCLE REG0/1/2/3
CNTR1
ACTIVE DUTY CYCLE REGx
COUNTER 1
CMP
INTERRUPT
devices, the CNTR2 counter is not used for this
comparison.
Notes:
1. The output compare function is only available
for DCRx values other than 0 (reset value).
2. Duty cycle registers are buffered internally. The
CPU writes in Preload Duty Cycle Registers and
these values are transferred to Active Duty Cycle
Registers after an overflow event if the corre-
sponding transfer bit (TRANx bit) is set. Output
compare is done by comparing these active DCRx
values with the counters.
OUTPUT COMPARE CIRCUIT
REQUEST
CMPIE
CMPFx (PWMxCSR)
(ATCSR)

Related parts for ST7FL15F1MAE