422
Chapter 10
16-bit Inverter Timer/Counter R
User’s Manual U16580EE3V1UD00
(3)
High-accuracy T-PWM mode settings
(a) Mode settings
The high-accuracy T-PWM mode is selected by setting TRnCTL1 register bits TRnMD4 to
0 = 1000B.
(b) Output level/output enable settings
Set bits TRnOL0-TRnOL7 and TRnOE0-TRnOE7
of the TRnIOC0, TRnIOC3 registers, to enable
output level/output enable.
Pin TORn0 indicates the counter’s and sub-counter’s up count/down count status. The counter/
sub-counter can be switched with TRnOPT7 register bit TRnTOR.
Pin TORn7 is the external A/D conversion output pin. Set this pin as required.
(c) Error interrupt output enable
Set error interrupt output enable upon detection of normal phase/inverted phase simultaneous
active. Error interrupt output is enabled by setting TRnIOC4 register bit TRnEOC to “1”. In the
high-accuracy T-PWM mode, when the dead time setting is other than “000H”, the error interrupt
(INTTRnER) never goes active, regardless of which value the TRnCCR0 to TRnCCR3 registers
are set. However, an error may be detected upon the occurrence of a timer Rn internal circuit fault.
If the dead time setting is “000H”, a glitch may occur upon occurrence of an error interrupt
(INTTRnER) at the normal phase and inverted phase switch timing.
(d) Rewrite timing for registers with reload function
Batch rewrite/anytime rewrite can be set for registers with the reload function. This setting is
performed with TRnOPT0 register bit RnCMS. (The default is “0” batch rewrite). To perform batch
rewrite, be sure to set TRnOPT1 register bit TRnICE or TRnIOE.
(If bit TRnICE and bit TRnIOE are both “0”, the reload timing does not occur.)
If anytime rewrite is selected, unintended output may occur depending on the rewrite timing.
(When using the anytime rewrite function, refer to cautions
(a)
to
(c)
(e) Interrupt and thinning out function settings
The interrupt and thinning out function settings are performed with the TRnOPT1 register. If a
peak interrupt (INTTRnCD) is required, set bit TRnICE to 1. If a valley interrupt (INTTRnOD) is
required, set bit TRnIOE to 1. To use the thinning out function for peak/valley interrupts, perform
settings with the TRnID4 to TRnID0 registers.
(f) Reload thinning out function setting
To set the reload timing to the same timing as the interrupt timing, set TRnOPT1 register bit
TRnRDE to 1.
Содержание V850E/PH2
Страница 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: ......