498
Chapter 11
16-bit Timer/Event Counter T
User’s Manual U16580EE3V1UD00
11.6.4 One-shot
pulse
mode
When, in the one-shot pulse mode, the duty is set to the TTnCCR0 register, the output duty delay value
is set to the TTnCCR1 register, and bit TTnCE of the TTnCTL0 register is set to 1, external trigger input
(TTRGTn pin) wait results, with the counter remaining stopped at FFFFH. Upon detection of the valid
edge of external trigger input (TTRGTn pin), or when bit TTnEST of the TTnCTL0 register is set to 1,
count up starts. The TOTn1 pin becomes high level upon a match between the counter and TTnCCR1
register. Moreover, upon a match between the counter and TTnCCR0 register, the TOTn1 pin becomes
low level, and the counter is cleared to 0000H and then stops. The TOTn0 pin performs toggle output
during the count operation upon a match between the counter and the TTnCCR0 buffer register.
Moreover, upon a match between the counter and TTnCCR0 register during count operation, a
compare match interrupt (INTTTnCC0) is output, and upon a match between the counter and
TTnCCR1 buffer register, a compare match interrupt (INTTTnCC1) is output.
The TTnCCR0 and TTnCCR1 registers can be rewritten using the anytime write method, regardless of
the value of bit TTnCE.
Even if a trigger is input during the counter operation, it is ignored. Be sure to input the second trigger
when the counter is stopped at 0000H.
In the one-shot pulse mode, registers TTnCCR0 and TTnCCR1 have their function fixed as compare
registers, so the capture function cannot be used.
[One-shot pulse operation flow]
<1> TTnCTL1 register bits TTnMD3 to TTnMD0 = 0011B (One-shot pulse mode)
<2> TTnCCR0 register setting (duty setting), TTnIOC0 register bit TTnOE1 = 1 (TOTn1 pin output
enable)
<3> TTnCTL0 register bit TTnCE = 1 (counter operation enable): TOTn1 = Low-level output
<4> TTnCTL1 register bit TTnEST = 1 or TTRGTn pin edge detection (count-up start):
TOTn1 = Low-level output
<5> Match between counter value and TTnCCR1 buffer register: TOTn1 = High-level output
<6> Match between counter value and TTnCCR0 buffer register: TOTn1 = Low-level output,
count clear
<7> Count stop:
TOTn1 = Low-level output
<8> TTnCE = 0 (operation reset)
<1> to <2> can be in any order.
Caution:
In the one-shot pulse mode, the external event clock input (TEVTTn) is prohibited
(TTnCTL1.TTnEEE = 0).
Содержание MuPD70F3187
Страница 6: ...6 Preface User s Manual U16580EE3V1UD00 ...
Страница 16: ...16 User s Manual U16580EE3V1UD00 ...
Страница 28: ...28 User s Manual U16580EE3V1UD00 ...
Страница 32: ...32 User s Manual U16580EE3V1UD00 ...
Страница 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO ...
Страница 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO ...
Страница 192: ...192 Chapter 5 Memory Access Control Function μPD70F3187 only User s Manual U16580EE3V1UD00 MEMO ...
Страница 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO ...
Страница 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00 ...
Страница 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO ...
Страница 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 ...
Страница 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO ...
Страница 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO ...
Страница 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO ...
Страница 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO ...
Страница 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO ...
Страница 1052: ...1052 User s Manual U16580EE3V1UD00 ...
Страница 1053: ......