BAT32G1x9 user manual | Chapter 7 Timer A
251 / 1149
Rev.1.02
7.4.7
Collaboration with EVENTC
By working with EVENTC, events entered by EVENTC can be set as the count source.
Through the TCK0~TCK2 bits of the TAMR0 register, the count is made on the rising edge of the event at the
ELC input. However, the EVENTC input does not work in event counter mode.
The EVENTC setup steps are as follows.
• Steps to get started
(1) Sets event output destination selection registers (ELSELRn) for EVENTC.
(2) Sets the operating mode of the source where the event occurred.
(3) Sets the mode of timer A.
(4) Start counting of timer A.
(5) Start the run of the event occurrence source.
• Stop the running step
(1) Stops the running of the event occurrence source.
(2) Stop the count of timer A.
(3) Set the EVENTC's Event Output Destination Selection Register (ELSELRn) to "0".
7.4.8
Output settings for each mode
The status of the TAO pins and TAIO pins in each mode is shown in Table 7-6 and Table 7-7.
Table 7-6 TAO pin settings
Operating mode
TAIOC0 register
The output of the TAO
pin
TOENA bit
TEDGSEL bit
All mode
1
1
Inverting output
0
Normal phase output
0
0 or
1
Disable output
Table 7-7 TAIO pin settings
Operating mode
TAIOC0 register
Input/output
of the
TAIO
pin
PMXX bit
note
TEDGSEL bit
Timer mode
0 or
1
0 or
1
Input (not used)
Pulse output mode
1
0 or
1
Disable output (Hi-Z
output
).
0
1
Normal phase output
0
Inverting output
Event counter pattern
1
0 or
1
input
Pulse width measurement
mode
Pulse period measurement
mode
Note: This is the bit of the port mode register (PMxx
)
corresponding to the TAIO function multiplexing port.