TC1784
General Purpose Timer Array (GPTA
®
v5)
User´s Manual
21-50
V1.1, 2011-05
GPTA
®
v5, V1.14
The previous examples show that the result bit to select for observation (R
3
) corresponds
to the comparator window’s size (k = 3).
Considering the case in which the period is not a multiple of 2, choose a comparator
window whose width is between 1 and 2 times the timer period:
2
k
< Period
≤
2
×
2
k
(21.2)
In no case may the comparator window be equal to or greater than twice the period.
k represents the Result bit to select.
How to Proceed
•
Unsigned greater/equal compare:
SCO bit field = 0F
H
(15
d
)
Thereby, the sign bit of the result is selected to drive TGE flag.
This setting is valid for all possible periods. The observation window always matches the
period.
•
Signed greater/equal compare:
Depending on the period, the appropriate k is selected, so that:
Period = M - m + 1 (= Max - Min + 1)
(21.3)
2
k
< Period
≤
2
×
2
k
(21.4)
SCO bit field = 0 to 0E
H
(0 to 14
d
)
Thereby, the result bit R
k
is selected to drive TGE flag.
This setting is possible for periods greater than 512.
Содержание 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 ...