TC1784
System Timer (STM)
User´s Manual
14-6
V1.1, 2011-05
STM, V1.41
A compare operation with MSIZE not equal 0 always implies that the compared value as
stored in the CMP register is right-extended with zeros. This means that in the example
of
, the compare register content STM_CMP0[17:0] plus nine zero bits right-
extended is compared with STM[27:0] with STM[8:0] = 000
H
. In case of register
STM_CMP1, STM[14:0] with STM[5:0] = 00
H
are compared with STM_CMP1[8:0] plus
six zero bits right-extended.
14.2.3
Compare Match Interrupt Control
The compare match interrupt control logic is shown in
register has its compare match interrupt request flag (STM_ICR.CMPxIR) that is set by
hardware on a compare match event. The interrupt request flags can be set
(STM_ISSR.CMPxIRS) or cleared (STM_ISSR.CMPxIRR) by software. Note that setting
STM_ICR.CMPxIR by writing a 1 into STM_ISSR.CMPxIRS does not generate an
interrupt at STMIRx. The compare match interrupts from CMP0 and CMP1 can be further
directed by STM_ICR.CMPxOS to either output signal STMIR0 or STMIR1. The STMIR0
and STMIR1 outputs are each connected to interrupt service request control registers,
STM_SRC0 and STM_SCR1, respectively.
Figure 14-3 STM Interrupt Control
The compare match interrupt flags STM_ICR.CMPxIR are immediately set after an STM
reset operation, caused by a compare match event with the reset values of the STM and
the compare registers STM_CMPx. This setting of the CMPxIR flags does not directly
MCA06187_mod
Compare Match
Event from CMP 0
Register Set
CMP0
IR
CMP0
OS
CMP0
EN
CMP1
IR
CMP1
OS
CMP1
EN
Compare Match
Event from CMP 1
Register Set
³1
³1
0
1
STMIR0
STMIR1
STM_ICR Register
CMP0
IRR
CMP1
IRR
CMP1
IRS
CMP0
IRS
STM_ISRR Reg.
Set
Clear
Set
Clear
0
1
Содержание TC1784
Страница 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Страница 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Страница 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...