![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 166](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609166.webp)
BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
166 / 1149
Rev.1.02
6.3.15
Registers that control the function of the timer input/output pin ports
When using a general-purpose timer unit, control registers for port functions that are multiplexed with the
target channel (port mode register (PMxx), port register (Pxx), and port mode control register (PMCxx)) must
be set. For details, please refer to "2.3.1 Port Mode Register (PMxx)", "2.3.2 Port Register (Pxx.) for details
and "2.3.6 Port Mode Control Registers (PMCxx)".
The set port mode registers (PMxx), port registers (Pxx), and port mode control registers (PMCxx) vary by
product. For details, please refer to "Register Settings when Using the Multiplexing Function in 2.5".
When using the multiplex port of the timer output pin as the output of the timer, the bit of the port mode
control register (PMCxx), the bit of the port mode register (PMxx), and the position of the port register (Pxx)
"0" must be used for each port.
(Example) When P01/TO00 is used as a timer output
Place the port mode control register 0 at PMC01 position "0".
Place the PORT mode register 0 at the PM01 position "0".
Place the P01 position of port register 0 at "0".
When using the multiplex port of the timer input pin as the input to the timer, the position of the
corresponding port mode register (PMxx) for each port must be "1" and the position of the port mode control
register (PMCxx) "0". At this point, the bit of the port register (Pxx) can be "0" or "1".
(Example) When P00/TI00 is used as a timer input
Place the port mode control register 0 at pmc00 position "0".
Place the PORT mode register 0 at PM00 position "1".
Place the P00 position of port register 0 at "0" or "1".