285
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
(3)
Capture operation
The TMC0 register has two capture/compare registers. These are the CCC00 register and the
CCC01 register.
A capture operation or a compare operation is performed according to the settings of both the
CMS1 and CMS0 bits of the TMCC01 register. If the CMS1 and CMS0 bits of the TMCC01 register
are set to "0", the register operates as a capture register.
A capture operation that captures and holds the TMC0 count value asynchronously relative to the
count clock (f
COUNT
) is performed synchronized with an external trigger.
An interrupt request (INTCCC00 or INTCCC01) (n = 0, 1) is generated by TICn0 or TICn1 signal
input and is used as an external trigger (capture trigger).
The valid edge of the capture trigger is set by valid edge selection register (SESC0).
The TMC0 count value during counting is captured and held in the capture register, synchronized
with that capture trigger signal. The capture register value is held until the next capture trigger is
generated.
(a) Example: capture for pulse cycle measurement
If one of the edges is set as the capture trigger, the input pulse cycle can be measured.
Figure 10-10:
Timing of capture for pulse cycle measurement (rising edge)
Remarks: 1. When the CE bit is 0, no capture operation is performed even if INTCCC01 is input.
2. Valid edge of TIC01: Rising edge.
TMC0
0
CE
TIC01
CCC00
(Capture register)
n
n
(Capture trigger)
(Capture trigger)
Содержание mPD703128
Страница 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 612: ......