BAT32G1x9 user manual | Chapter 10 Timer M
372 / 1149
Rev.1.02
10.4.5
Event inputs from the Event Linkage Controller (EVENTC).
For events entered by EVENTC, timer M performs 2 operations.
(a)
Input capture for TMIOD0/TMIOD1
With event input from EVENTC, timer M performs input capture of TMIOD0/TMIOD1. At this point,
the IMFD bit of the TMSRi register is "1".
To use this function, you must select the input capture function of the timer mode and change the ELCICE0
bit of the TMELC register or the ELCICE1 position "1". In other modes (output comparison function for timer mode,
PWM function, reset synchronous PWM mode, complementary PWM mode, PWM3 mode), this function is
invalid.
(b)
Force cutoff pulse output of the run note
The output of the forced cutoff pulse is forced through the event input of the EVENTC. To use this
function, the pulse output mode (PWM function, reset synchronous PWM mode, complementary
PWM mode, PWM3 mode) must be selected and ELCOBE 0 bit or ELCOBE1 position "1". This
feature has no effect when using the input capture feature in timer mode.
Note The forced cutoff function of the
INTP0
pin cuts off the pulse output during
the "L"
level input, but
the forced
cutoff function for
event
1
for
event of event CSV
input, cutoff
1 Secondary pulse output.
Setup steps
(1) Set the EVENTC event linkage target to timer M.
(2) Combine the ELCICEi bits of the TMELC registers (i=0, 1) and the ELCOBEi bits (i=0 ,1) Set "1".
10.4.6
Event output to the Event Linkage Controller (EVENTC)/Data Transfer Controller
(DMA).
The mode of timer M and the events output to EVENTC/DMA are shown in Table 10-11.
Table 10-11
Timer M Modes and Events Output to ELC/DMA
Usage patterns
Output source
EVENTC
DMA
Enter the capture
function
TMIOA0 edge detection through IOA1 bit and IOA0 bit settings of
TMIORA0 registers
○
○
TMIOB0 edge detection through IOB1 bit and IOB0 bit settings of
TMIORA0 registers
○
○
TMIOC0 edge detection through IOC1 bit and IOC0 bit settings of
TIORC0 registers
—
○
TMIOD0 edge detection by IOD1 bit and IOD0 bit settings of TMIORC0
registers
—
○
TMIOA1 edge detection through TMIORA1 registerSO1 bits and IOA0
bit settings
○
○
TMIOB1 edge detection through IOB1 bit and IOB0 bit settings of
TMIORA1 registers
○
○
TMIOC1 edge detection by TMIOC1 edge detection of IOC1 bit and
IOC0 bit settings of TIORC1 registers
—
○
TMIOD1 edge detection by IOD1 bit and IOD0 bit settings of TMIORC1
registers
—
○
Output comparison
function,
PWM function,
Reset synchronous
PWM
mode,
complementary
PWM
mode,
PWM3
mode
Comparison matching of TM0 registers and TMGRA0 registers
○
○
Comparison matching of TM0 registers and TMGRB0 registers
○
○
Comparison matching of TM0 registers and TMGRC0 registers
—
○
Comparison matching of TM0 registers and TMGRD0 registers
—
○
Comparison matching of TM1 registers and TMGRA1 registers
○
○
Comparison matching of TM1 registers and TMGRB1 registers
○
○
Comparison matching of TM1 registers and TMGRC1 registers
—
○
Comparison matching of TM1 registers and TMGRD1 registers
—
○
Complementary PWM
mode
Underflow of TM1 registers
○
—