TC1784
System Timer (STM)
User´s Manual
14-5
V1.1, 2011-05
STM, V1.41
14.2.2
Compare Register Operation
The content of the 56-bit STM can be compared against the content of two compare
values stored in the STM_CMP0 and STM_CMP1 registers. Service requests can be
generated on a compare match of the STM with the STM_CMP0 or STM_CMP1
registers.
Two parameters are programmable for the compare operation:
1. The width of the relevant bits in registers STM_CMP0/STM_CMP1 (compare width
MSIZEx) that is taken for the compare operation can be programmed from 1 to 32.
2. The first bit location in the 56-bit STM that is taken for the compare operation can be
programmed from 0 to 24.
These programming capabilities make compare functionality very flexible. It even makes
it possible to detect bit transitions of a single bit n (n = 0 to 24) within the 56-bit STM by
setting MSIZE = 0 and MSTART = n.
Figure 14-2 Compare Mode Operation
shows an example of the compare operation. In this example the following
parameters are programmed:
•
MSIZE0 = 10001
B
= 17
D
; MSTART0 = 01010
B
= 9
D
•
MSIZE1 = 00111
B
= 7
D
; MSTART1 = 00111
B
= 6
D
56-bit System Timer
Compare Register 0
Equal ?
Compare Match
Event with STM_CMP0
Register
MCA06186_mod
MSIZE0
MSTART0
MSIZEx
MSTARTx
= 0-31
= 0-24
MSIZE1
Equal ?
Compare Match
Event with STM_CMP1
Register
MSTART1
Compare Register 1
STM_CMP1
STM_CMP0
31
23
15
7
55
47
39
31
23
15
7
31
23
15
7
Содержание 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 ...