501
Chapter 11
16-bit Timer/Event Counter T
User’s Manual U16580EE3V1UD00
11.6.5 PWM
mode
When, in the PWM mode, the duty is set to the TTnCCR1 register, the cycle is set to the TTnCCR0
register, and TTnCE = 1 is set, variable duty PWM output is performed from pin TOTn1.
Simultaneously with the start of count up operation, pin TOTn1 becomes high level, and upon a match
between the counter and the TTnCCR1 register, becomes low level. Next, the TOTn1 pin becomes high
level upon a match with the TTnCCR0 register. The TOTn0 pin performs toggle output upon a match
with the TTnCCR0 buffer register.
During count operation, a compare match interrupt (INTTTnCC0) is output upon a match between the
counter and TTnCCR0 register, and a compare match interrupt (INTTTnCC1) is output upon a match
between the counter and TTnCCR1 register.
The TTnCCR0 and TTnCCR1 registers can be rewritten during count operation. Compare register
reload occurs upon a match between the counter value and the TTnCCR0 buffer register. However,
since the next reload timing becomes valid when the TTnCCR1 register is written to, write the same
value to the TTnCCR1 register even when wishing to rewrite only the value of the TTnCCR0 register.
Reloading is not performed if only the TTnCCR0 register is rewritten.
In the PWM mode, the TTnCCR0 and TTnCCR1 registers have their function fixed as compare
registers, so the capture function cannot be used.
Figure 11-27:
Basic Operation Mode in PWM Mode (1/2)
(a) When values of TTnCCR0 and TTnCCR1 registers are rewritten during timer operation
Remark:
n = 0, 1
m = 0, 1
START
INTTTnCC0 occurrence
Timer operation enable
Transfer of value of
TTnCCRm to TTnCCRm buffer
TOTn1 outputs low level upon a
match between counter and
TTnCCR1 buffer.
Upon a match between counter
and TTnCCR0 buffer, counter
clear & start, and TOTn1 outputs
high level.
INTTTnCC1 occurrence
Initial settings
Clock selection
(TTnCTL0: TTnCKS2 to TTnCKS0)
PWM mode setting
(TTnCTL1: TTnMD3 to TTnMD0 = 0100)
Compare register setting
(TTnCCR0, TTnCCR1)
•
•
•
→
Содержание 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: ......