TMPM4K Group(1)
Product Inromation
2018-09-18
18 / 89
Rev. 2.1
2.2.2. Operation and setting
When using TRGSEL, please set an applicable clock enable bit to "1" (clock supply) in fsys supply stop register A
(
[CGFSYSENA]
,
[CGFSYSMENA]
), fsys supply stop register B (
[CGFSYSENB]
,
[CGFSYSMENB]
), and fc
supply stop registers (
[CGFCEN]
).
An applicable register and the bit position vary according to a product. Therefore, the register may not exist with
the product. Please refer to "Clock Control and Operation Mode" of the reference manual for the details.
Setting procedure of Trigger selector is as following.
(1) Selection of an input trigger (
[TSEL0CRn]
<INSELm>)
Selection of the input trigger used for the trigger source is performed.
Please set up selection of the input trigger by the input trigger subdevice bit (
[TSEL0CRn]
<INSELm>)
of the control register. (n: register number, m: trigger number)
(2) Selection of edge detection conditions (
[TSEL0CRn]
<UPDNm>)
For the input trigger signal which needs edge detection, selection of rising edge or falling edge detection
is performed.
Please set up selection of edge detection conditions in the selection bit (
[TSEL0CRn]
<UPDNm>) of a
control register.
The following shows the trigger signal which needs edge detection.
- External trigger input (TRGIN0, TRGIN1, and TRGIN2)
(3) Selection of a trigger output (
[TSEL0CRn]
<OUTSELm>)
Selection of an output without or with edge detection is performed.
Please set up selection of a trigger output in the selection bit (
[TSEL0CRn]
<OUTSELm>) of a control
register.
(4) Output enable (
[TSEL0CRn]
<ENm>)
The output (enable/disable) of the selected trigger signal is chosen.
Please set up selection of output (enable/disable) in the setting bit (
[TSEL0CRn]
<ENm>) of a control
register. A trigger output will be enabled if
[TSEL0CRn]
<ENm> is set as "1".