![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 243](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609243.webp)
BAT32G1x9 user manual | Chapter 7 Timer A
243 / 1149
Rev.1.02
7.3.8
Port mode register x (PMx).
This is the register that sets the port input/output.
To use the multiplex port of the timer output pin (TAIO, TAO, etc.) as the output of the timer, the bit of the port
mode register (PMxx) corresponding to each port and the position of the port register (Pxx) must be "0".
(Example) The case where P01 is used as a timer output TAIO, the PM01 position of the port mode register 0
is "0". Place the P01 position of port register 0 at "0".
To use the multiplexing port (P01/TAIO, etc.) of the timer input pin as the input to the timer, the position of the
port mode register (PMxx) corresponding to each port must be "1". At this point, the bit of the port register (Pxx) can
be "0" or "1".
(Example) The case where P01 is used as a timer input TAIO will place the PM01 position "1" of port mode
register 0. Place the P01 position of port register 0 at "0" or "1".
Set the PMxx register via the 8-bit memory operation instruction. After generating a reset signal, the values of
these registers become "FFH".
For the format of the port mode registers, refer to "PMxx, Pxx, Puxx, PIMxx, POMxx, PMxx, PMxx, PPMxx,
PPMxx, PXX, PMCxx registers and their bits".