upd70f3422gj-gae-qs-ax Renesas Electronics Corporation., upd70f3422gj-gae-qs-ax Datasheet - Page 462

no-image

upd70f3422gj-gae-qs-ax

Manufacturer Part Number
upd70f3422gj-gae-qs-ax
Description
32-bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet
Chapter 13
462
13.8 Match and Clear Mode
(1)
The match and clear mode is mainly used reduce the number of valid bits of
the counters (TMGn0, TMGn1).
Therefore the fixed assigned register GCCn0 (GCCn1) is used to compare its
value with the counter TMGn0 (TMGn1). If the values match, than an interrupt
is generated and the counter is cleared. Than the counter starts up counting
again.
Capture operation (match and clear)
Basic settings (m = 1 to 4):
(a) Example: Pulse width measurement or period measurement of the
Setting method:
(1)
(2)
(3)
(4)
(5)
Operation:
(1)
(2)
(3)
Preliminary User’s Manual U17566EE1V2UM00
TIGnm input signal
When using one of TOGn1 to TOGn4-pin, select the corresponding
counter with the TBGnm bit. When CCSGn0 = 1, TI0 cannot be used.
When CCSGn5 = 1, TIGn5 cannot be used.
Select a count clock cycle with the CSE12 to CSE10 (TMGn1) bits or
CSE02 to CSE00 (TMGn0) bits.
Select a valid TIGnm edge with the IEGnm1 and IEGnm0 bit. A rising
edge, falling edge, or both edges can be selected.
Set an upper limit on the value of the counter in GCCn0 or GCCn5.
Start timer operation by setting POWERn bit and TMGn0E bit (or
TMGn1E bit).
When a specified edge is detected, the value of the counter is stored in
GCCnm, and an edge detection interrupt (INTCCGnm) is output.
When the value of GCCn0 or GCCn5 matches the value of the counter,
INTCCGn0 (INTCCGn5) is output, and the counter is cleared. This
operation is referred to as "match and clear".
If a match and clear event has occurred between capture operations, the
CCFGny flag is set when GCCny is read. Correct capture data by
checking the value of CCFGny.
SWFGnm
CCSGnm
CCSGn0
CCSGn5
TBGnm
Bit
Value
X
1
1
0
0
16-bit Multi-Purpose Timer G (TMG)
Remark
match and clear mode
disable TOGnm
Capture mode for GCCnm
assign counter
for GCCnm
0: TMGn0
1: TMGn1

Related parts for upd70f3422gj-gae-qs-ax