347
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
10.3.10 Precautions
Timer
Gn
(1)
When POWER bit of TMGMHn register is set
The rewriting of the CSEn2 to CSEn0 bits (n = 0, 1) of TMGMHn register is prohibited.
These bits set the prescaler for the Timer Gn counter.
The rewriting of the CCSGy bits (y = 0 to 5) is prohibited.
This bits (OCTLGnL and OCTLGnH registers) set the capture mode or the compare mode to the
GCCy register. For the GCCn0 register and the GCCn5 register these bits (TMGMLn register) set
the “free run” or “match and clear” mode of the TMGn0 and TMGn1 counter.
The rewriting of the TMGCMnL and the TMGCMHn register is prohibited.
These registers configure the counter (TMGn0 or TMGn1) for the GCCnm register (m = 1 to 4) and
define the edge detection for the TIGm input pins (falling, rising, both).
Even when POWER bit is set, TOGnm output is switched by switching the ALVGm bit of OCTLGnL
and OCTLGnH registers.
These bits configure the active level of the TOGnm-pins (m = 1 to 4).
(2)
When POWER bit and TMGxE bit are set (x = 0, 1)
The rewriting of ALVGm is prohibited (m = 1 to 4).
These bits configure the active level of the TOGnm-pins (m = 1 to 4).
When in compare-mode the rewriting of the GCCn0 or GCCn5 register is prohibited.
In compare mode these registers set the value for the “match and clear” mode of the TMGn0 and
TMGn1 counter.
(3)
Functionality
When the POWER bit is set to “0”, regardless of the SWFGm bit (OCTLGnL and OCTLGnH
registers), the TOGnm pins are tied to the inactive level.
The SWFGm bit enables or disables the output of the TOGnm pins. This bit can be rewritten
during timer operation.
The CLRGx bit (x = 0, 1) is a flag. If this bit is read, a "0" is read at all times.
This bit clears the corresponding counter (TMGn0 or TMGn1)
When GCCnm register (m = 1 to 4) are used in capture operation:
If two or more overflows of TMGn0 or TMGn1 occur between captures, a software-based measure
needs to be taken to count overflow interrupts (INTTMGn0 or INTTMGn1).
If only one overflow is necessary, the CCFGy bits (y = 0 to 5) can be used for overflow detection.
Only the overflow of the TMGn0 or TMGn1counter clears the CCFGy bit (TMGSTn register). The
software-based clearing via CLRG0 or CLRG1 bit (TMGMLn register) doesn’t affect these bits.
The CCFGy bit is set if a TMGn0 (TMGn1) overflow occurs. This flag is only updated if the
corresponding GCCny register was read, so first read the GCCny register and then read this flag if
necessary.
Содержание 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: ......