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

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
452
Caution
(a) Example: Pulse width or period measurement of the TIGny input
Capture setting method:
(1)
(2)
(3)
(4)
Capture operation:
(1)
(2)
(3)
Using CCFGny:
When using GCCny as a capture register, use the procedure below.
<1> After INTCCGny (edge detection interrupt) generation, read the
<2> Check if the corresponding CCFGny bit of the TMGSTn register is set.
<3> If the CCFGny bit is set, the counter was cleared from the previous
CCFGny is set when GCCny is read. So, after GCCny is read, the value of
CCFGny should be read. Using the procedure above, the value of CCFGny
corresponding to GCCny can be read normally.
If two or more overflows occur between captures, a software-based measure
needs to be taken to count overflow interrupts (INTTMGn0, INTTMGn1).
Preliminary User’s Manual U17566EE1V2UM00
signal (free run)
When using one of the TOGn1 to TOGn4 pins, select the corresponding
counter with the TBGnm bit. When TIGn0 is used, the corresponding
counter is TMGn0. When TIGn5 is used, the corresponding counter is
TMGn1.
Select a count clock cycle with the CSE12 to CSE10 bits (TMGn1) or
CSE02 to CSE02 bits (TMGn0).
Select a valid TIGny edge with the IEGny1 and IEGny0 bits. A rising
edge, falling edge, or both edges can be selected.
Start timer operation by setting POWERn bit and TMGn0E bit for TMGn0
or TMGn1E bit for TMGn1.
When a specified edge is detected, the value of the counter is stored in
GCCny and an edge detection interrupt (INTCCGny) is output.
When the counter overflows, an overflow interrupt (INTTMGn0 or
INTTMGn1) is generated.
If an overflow has occurred between capture operations, the CCFGny flag
is set when GCCny is read. Correct capture data by checking the value of
CCFGny.
corresponding GCCny register.
captured value.
16-bit Multi-Purpose Timer G (TMG)

Related parts for upd70f3422gj-gae-qs-ax